linux中apache服务不可用。

来源:百度知道 编辑:UC知道 时间:2024/06/22 23:48:48
[root@linuxpumc root]#service httpd restart
停止httpd: 【失败】
启动httpd: 【失败】
现在已解决。。。
还是由于之前没有将Apache服务的一些文件没有安装完整。。。所以以后大家如果和我遇到一样的问题时。要小心哟。。。在这里非常感谢百度给我们大家提供这样一个平台。。谢谢。

添加删除程序? 你以为是windows? 要用apachectl -restart重启

dont use add/remove, just download source file from http://www.apache.org and compile it yourself.
then you'll find the real problem.

不知道你的linux是哪个发行版。

比如ubuntu是sudo /etc/init.d/apache2 restart

只有很早的发行版才是service httpd restart
如果用ubuntu,答案和上面一样。