Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
由于存在漏洞,不得不在 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