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