shell编写启动脚本
[root@confluence bin]# vim /etc/init.d/confluence
#!/bin/bash
# Confluence Linux service controller script
cd "/opt/atlassian/confluence/bin"
case "$1" in
start)
./start-confluence.sh
;;
stop)
./stop-confluence.sh
;;
restart)
./stop-confluence.sh
./start-confluence.sh
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
~
所有的问题都是最后一刻解决,如果没有解决,说明你还没有到最后