在脚本的开头添加下面两行即可: # chkconfig: - 85 15 # description: xxxx is a xxxxx server. It is used to serve Published by WizNote 转载于:https://my.oschina.net/ryuhi/blog/731533