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