在因為其他情況系統重新啟動的情況下,為了服務能夠自動接續,需要將服務添加到這個文件里

/etc/rc.d/rc.local

# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.