在因为其他情况系统重新启动的情况下,为了服务能够自动接续,需要将服务添加到这个文件里

/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.