httpd: Could not reliably determine the server's fully

Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.229.152 for ServerNamedom

(2)No such file or directory: httpd: could not open error log file /etc/httpd/logs/error_log.ide

Unable to open logsserver



第一個問題解決辦法:it

vi /etc/httpd/conf/httpd.conf   加入一句  ServerName  localhost:80class


首先進入目錄:file

cd /etc/httpd權限


經過ls查看目錄文件,可以看到logs目錄一直在閃,說明這個有問題(根據我這邊的狀況,可能還有其餘狀況,待會再說)error


經過ls -l 查看權限,可以看到logs目錄對應的連接:di

logs -> ../../var/log/httpd文件


而後經過命令進入:cd /var/log


進入後發現,httpd目錄不存在,因而建立httpd目錄,並在其目錄下建立errir_log文件。


建立完成以後,記得執行如下命令:chown root:monkey /var/log,將其全部者轉到root下


chown root:monkey /var/log,

相關文章
相關標籤/搜索