[英]Centos 5 restarts Apache server with different httpd.conf after I install yum php-devel
目前,我正在使用Centos 5運行linux服務器。
一天前,我通過在ssh上使用'yum php-devel'安裝了php-devel。
我嘗試使用此命令重新啟動Apache服務器
service httpd restart
但是,Apache服務器讀取不同的httpd.conf文件。
它假定讀取httpd.conf文件,該文件位於“ /usr/local/apache/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文件的方向?
我想通了。
問題是服務器使用了不同的httpd.conf文件。
因此,我再次檢查了該路由,並將其更改為原始的httpd.conf路由。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.