Chkconfig--add httpd Error service does not support

Source: Internet
Author: User

Apache cannot start automatically,
1, copy the Apachectl file to the/ETC/RC.D/INIT.D, and then add the link under/etc/rc.d/rc5.d/.
The order is as follows:
CP/USR/LOCAL/APACHE/BIN/APACHECTL/ETC/RC.D/INIT.D/HTTPD//If there are other versions of Apache, it can also be directly overwritten
Ln-s/ETC/RC.D/INIT.D/HTTPD/ETC/RC.D/RC5.D/S85HTTPD//links (85 of the meaning described later)
At this point, Apache can be started automatically.
2, run Chkconfig--list, found no Linux services list httpd, through the Chkconfig--add httpd to add, but the hint: httpd service does not support Chkconfig. You need to edit/etc/rc.d/init.d/httpd to add the following comment information:
# chkconfig:345 85 15
# description:activates/deactivates Apache Web Server
The first line of 3 numeric parameter meanings are: Which Linux levels need to start httpd (3,4,5), start sequence number (85), and close ordinal number (15).
Execute after Save: Chkconfig--add httpd, successfully added.
s85httpd linked files appear in the RC3.D, rc4.d, rc5.d paths, and k61httpd linked files appear in other run level paths.
3, run Chkconfig--list httpd

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.