Jexus如何配置开机自动启动,具体内容如下
?
| 1 2 | cd /etc/init .d/ vi jws |
按i编辑模式,粘贴下面内容
?
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #!/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 |
按ESC后,输入:wq保存文件
把这个脚本作为“服务”加入
?
| 1 2 | chmod 766 jws chkconfig --add jws |
搬瓦工中文网





