linux下apache 服务自启动
root@localhost#cp /usr/local/apahe/bin/apachectl /etc/rc.d/init.d/httpd
root@localhost#vim /etc/rc.d/init.d/httpd
在httpd中加入
#chkconfig: 35 85 15
#description: apache
保存退出。
root@localhost# ln -s /etc/rc.d/init.d/httpd /etc/rc.d/rc5.d/S85httpd
root@localhost# chkconfig --add httpd
root@localhost# chkconfig httpd on
测试:
root@localhost# service httpd start