背景:
CentOS7
Mono (Mono JIT compiler version 5.4.0.201 ) 安装(http://www.mono-project.com/download/#download-lin-centos)
1、下载jexus 在 Linux DotNET大本营: https://linuxdot.net/index.aspx?p=3#_d 重要下载 处找到最新版本
2、解压并启动,这个版本不用安装
3、设置Jexus服务开机自启动
按 i 键进入编辑模式添一句
/usr/jexus/jws start
按ESC退出编辑模式,输入 :wq保存文件
下面方法也可以:
[root@loclhost ~]# vi /etc/init.d/jws
#!/bin/bash
#chkconfig: 2345 80 05
#description:jws
#
. /etc/rc.d/init.d/functions
case "$1" in
start)
echo "Jexus Start.."
/usr/jexus/jws start
;;
stop)
echo "Jexus Stop.."
/usr/jexus/jws stop
;;
restart)
echo "Jexus Restart"
/usr/jexus/jws restart
;;
status)
/usr/jexus/jws status
;;
*)
exit 1
;;
esac
exit $RETVAL
[root@loclhost ~]# chmod 766 /etc/init.d/jws
[root@loclhost ~]# chkconfig --add /etc/init.d/jws
4、网站测试及修改端口
Hello jexus index 7777
可以了