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

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