# cp /usr/local/apache/bin/apachectl /etc/init.d/httpd
# vi /etc/init.d/httpd (在#!/bin/sh下加入)
# chkconfig: 345 85 15
# description: start and stop the apache http server
# chmod +x /etc/init.d/httpd
# chkconfig --add httpd
# chkconfig --level 35 httpd on
本文转自linux博客51CTO博客,原文链接http://blog.51cto.com/yangzhiming/835082如需转载请自行联系原作者