您好,登錄后才能下訂單哦!
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.229.152 for ServerName
(2)No such file or directory: httpd: could not open error log file /etc/httpd/logs/error_log.
Unable to open logs
第一個(gè)問題解決辦法:
vi /etc/httpd/conf/httpd.conf 加入一句 ServerName localhost:80
首先進(jìn)入目錄:
cd /etc/httpd
通過ls查看目錄文件,能夠看到logs目錄一直在閃,說明這個(gè)有問題(根據(jù)我這邊的情況,可能還有其他情況,待會(huì)再說)
通過ls -l 查看權(quán)限,能夠看到logs目錄對(duì)應(yīng)的鏈接:
logs -> ../../var/log/httpd
然后通過命令進(jìn)入:cd /var/log
進(jìn)入后發(fā)現(xiàn),httpd目錄不存在,于是創(chuàng)建httpd目錄,并在其目錄下創(chuàng)建errir_log文件。
創(chuàng)建完成之后,記得執(zhí)行以下命令:chown root:monkey /var/log,將其所有者轉(zhuǎn)到root下
chown root:monkey /var/log,
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。