【发布时间】:2012-06-18 08:37:27
【问题描述】:
目前,我正在使用 Centos 5 运行 linux 服务器。
一天前,我在 ssh 上使用 'yum php-devel' 安装了 php-devel。
我尝试使用此命令重新启动 Apache 服务器
service httpd restart
但是,apache 服务器读取不同的 httpd.conf 文件。
假设读取'/usr/local/apache/conf/httpd.conf'文件所在的httpd.conf文件
但是,它现在显示为“/etc/httpd/conf/httpd.conf”。
因此,它会犯此错误。
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
你知道为什么会这样吗?
有没有办法在 Apache 服务器重启时重置 httpd.conf 文件的方向?
【问题讨论】: