Apache无法自动启动,
1、将apachectl文件拷贝到/etc/rc.d/init.d 中,然后在/etc/rc.d/rc3.d/下加入链接即可。
命令如下:
cp /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd //如果有其他的版本的Apache存在,也可以直接覆盖掉
ln -s /etc/rc.d/init.d/httpd /etc/rc.d/rc5.d/S85httpd //建立链接
2、 运行chkconfig –list,发现没有linux服务列表中httpd,通过chkconfig –add httpd来添加,但是提示:httpd服务不支持 chkconfig。需要编辑/etc/rc.d/init.d/httpd,添加以下注释信息:
# chkconfig: 345 85 15
# description: Activates/Deactivates Apache Web Server
第一行3个数字参数意义分别为:哪些Linux级别需要启动httpd(3,4,5);启动序号(85);关闭序号(15)。
保存后执行:chkconfig –add httpd,成功添加。
在rc3.d、rc4.d、rc5.d路径中会出现S85httpd的链接文件,其他运行级别路径中会出现K61httpd的链接文件。
3、运行chkconfig –list httpd
此时Apache就可以自动启动了。
多位站长的实践数据显示,我们平台的用户转化率相当高,每1000IP平均可以为你带来50~60元收入,欢迎加
入。你可以通过网站、发帖、微博、QQ等任何方式进行推广,只要你能带来IP,收益就一定有保证。
I like to party, not look articles up online. You made it hepapn.
Tip top stuff. I’ll epcxet more now.
学习了,没遇到过这类情况。自己大多使用傻瓜化的平台
I’m so glad I found my soultoin online.
At last some raotnilaity in our little debate.
楼主见解很独到
Articles like these put the consumer in the driver seat-very impotrant.
Clear, informatvie, simple. Could I send you some e-hugs?
恭祝博主新年快乐,以后会常来看看的,(一淘比价网:www.cnoz.org)
Thanks for that! It’s just the ansewr I needed.
These tpoics are so confusing but this helped me get the job done.
又来了,春节都过去了…..无聊啊,进来看看文章(一淘网:www.cnoz.org)
博主的内容好强大,不过经常更新的话,会更好的。
Hey, subtle must be your midlde name. Great post!
Creetad the greatest articles, you have.
Stay informaivte, San Diego, yeah boy!