简体   繁体   中英

Centos httpd 2.4.3 service does not support chkconfig

Had to update apache to 2.4.3 on a centos 5.9 server due to a vulnerability.

It is working properly, but I can not figure out a way to make it work with chkconfig (if possible).

I've searched for solutions and tried adding "#chkconfig: - 85 15" into apachectl as all of the websites suggest, but it still says service does not support chkconfig.

Any help appreciated.

Edit the file /etc/init.d/httpd to set the run level for Linux to replace the following line:

   # chkconfig: - 85 15

With this line: # chkconfig: 234 20 80

Start services:-

   /sbin/chkconfig httpd on

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM