第1步:
cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd
第2步:
vim /etc/init.d/httpd
在第一行
#!/bin/sh下面增加两行
# chkconfig: 35 70 30
# description: Apache
第3步:
wq!
chkconfig --level 35 httpd on