1:copy apache的启动文件到linux的启动目录下
cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd
2:然后vi !$或者vi /etc/init.d/httpd
再第3行加入
# chkconfig: 345 85 15
# description: This is apache Web Server
3:加入自启动 chkconfig --add httpd
4:chkconfig httpd off
apache自启动
猜你喜欢
转载自shiguanghui.iteye.com/blog/1985026
今日推荐
周排行