[Unit]
Description=jexus – high performance web server
Documentation=http://www.jexus.org
After=network-online.target remote-fs.target nss-lookup.target
Wants=network-online.target
[Service]
Type=forking
PIDFile=/var/run/jexus/jws.pid
ExecStart=/usr/jexus/jws start
ExecReload=/usr/jexus/jws restart
ExecStop=/usr/jexus/jws stop
[Install]
WantedBy=multi-user.target

 

复制上面文本到/usr/lib/systemd/system/jexus.service 保存

 

执行

systemctl enable jexus
systemctl start jexus
systemctl stop jexus
systemctl restart jexus

即可



如果您对C#游戏开发感兴趣,可以扫下面二维码加入我们的QQ群来一起学习交流

原创文章,转载请注明本文链接地址(违者必究):CentOS7.4 Jexus开机启动脚本