apache作为linux的启动就运行服务程序

     执行如下操作:cp /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpd
     确认linux以前安装的httpd(apache)不需要了,你可覆盖掉以前apache的httpd文件。
     chkconfig --add httpd
 chkconfig --level 35 httpd on 

    到现在,你就可用另一种方式来启动、关闭apache了。如service httpd start
 
 
 chkconfig --level 35 httpd on
service httpd does not support chkconfig
 
解决:
 
service httpd does not support chkconfig

# daizhongxian
# chkconfig: 35 85 15
# description: Apache is a World Wide Web server.

在文件中加入上面的即可!!!