1.添加到启动项:
vi /etc/rc.d/rc.local
增加:/usr/local/httpd/bin/apachectl start

2.注册为Service:
cp /usr/local/httpd/bin/apachectl /etc/rc.d/init.d/httpd
vi httpd
找到:#!/bin/sh
另起一行,增加:
# chkconfig: 35 70 30
# description: Apache
Ok~
然后注册服务:chkconfig --add httpd
----
启动服务:service httpd start
停止服务:service httpd stop
重新启动:service httpd restart