[root@node1 ~]# chkconfig –add nginx
service nginx does not support chkconfig
很是奇怪,后经过查找资料,发现如果想添加脚本用service启动,必须要脚本里面包含这2行:
# chkconfig: – 85 15
# description: nginx is a World Wide Web server. It is used to serve
解决“service XXXX does not support chkconfig”