Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache2 Centos httpd 2.4.3服务不支持chkconfig_Apache2_Centos_Apache - Fatal编程技术网

Apache2 Centos httpd 2.4.3服务不支持chkconfig

Apache2 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

由于存在漏洞,必须在centos 5.9服务器上将apache更新为2.4.3

它工作正常,但我无法找到一种方法使它与chkconfig一起工作(如果可能的话)

我已经搜索了解决方案,并尝试按照所有网站的建议将“#chkconfig:-85 15”添加到apachectl中,但它仍然表示该服务不支持chkconfig


感谢您的帮助。

编辑文件/etc/init.d/httpd以设置Linux的运行级别,以替换以下行:

   # chkconfig: - 85 15
使用此行:#chkconfig:234 20 80

启动服务:-

   /sbin/chkconfig httpd on