CentOS使用chkconfig增加开机服务提示service xxx does not support chkconfig的问题解决

在shell文件的第二行增加如下内容即可:

# chkconfig: 2345 10 90  
#服务必须在运行级2,3,4,5下被启动或关闭,启动的优先级是90,关闭的优先级是10。
# description: Start and Stop xxx

猜你喜欢

转载自www.cnblogs.com/EasonJim/p/9178710.html