Apache2 Centos httpd 2.4.3服务不支持chkconfig
由于存在漏洞,必须在centos 5.9服务器上将apache更新为2.4.3 它工作正常,但我无法找到一种方法使它与chkconfig一起工作(如果可能的话) 我已经搜索了解决方案,并尝试按照所有网站的建议将“#chkconfig:-85 15”添加到apachectl中,但它仍然表示该服务不支持chkconfigApache2 Centos httpd 2.4.3服务不支持chkconfig,apache2,centos,apache,Apache2,Centos,Apache,由于存在漏洞,必须在centos 5.9服务器上将apache更新为2.4.3 它工作正常,但我无法找到一种方法使它与chkconfig一起工作(如果可能的话) 我已经搜索了解决方案,并尝试按照所有网站的建议将“#chkconfig:-85 15”添加到apachectl中,但它仍然表示该服务不支持chkconfig 感谢您的帮助。编辑文件/etc/init.d/httpd以设置Linux的运行级别,以替换以下行: # chkconfig: - 85 15 使用此行:#chkconfig
感谢您的帮助。编辑文件/etc/init.d/httpd以设置Linux的运行级别,以替换以下行:
# chkconfig: - 85 15
使用此行:#chkconfig:234 20 80
启动服务:-
/sbin/chkconfig httpd on