1:copy apache的启动文件到linux的启动目录下
cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd
2:然后vi !$或者vi /etc/init.d/httpd
再第3行加入
# chkconfig: 345 85 15
# description: This is apache Web Server
3:加入自启动 chkconfig --add httpd
4:chkconfig httpd off
cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd
2:然后vi !$或者vi /etc/init.d/httpd
再第3行加入
# chkconfig: 345 85 15
# description: This is apache Web Server
3:加入自启动 chkconfig --add httpd
4:chkconfig httpd off