apache 开机自启动
# 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
:wq
# chmod +x /etc/init.d/httpd # chkconfig --add httpd # chkconfig --level 35 httpd on