解決httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName

CWP問題httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName解決方法

網絡營銷從業者在VPS安裝完CWP控制面板,使用Linux命令重啟httpd ▼

service httpd restart

之後,SSH就出現如下提示的問題 ▼

Stopping httpd: [ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully qualifie domain name, using ::1 for ServerName

解決方法

第1步:找到httpd.conf文件

這是CWP控制面板httpd.conf文件的具體路徑 ▼

/usr/local/apache/conf/httpd.conf

第2 步:編輯Apache文件

我們可以在CWP控制面板,點擊Apache Settings→Apache Configuration直接對此文件進行編輯。

第3 步:編輯httpd.conf文件

在httpd.conf文件中添加 ▼

ServerName localhost:80

第4步:接著,重啟httpd服務即可:

service httpd restart

第5 步:返回如下結果,表示此問題已經成功解決好了!

Stopping httpd: [ OK ]
Starting httpd: [ OK ]

希望陳溈亮博客( https://www.chenweiliang.com/ ) 分享的《解決httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName》,對您有幫助。

歡迎分享本文鏈接:https://www.chenweiliang.com/cwl-154.html

歡迎加入陳溈亮博客的Telegram 頻道,獲取最新更新!

🔔 率先在頻道置頂目錄獲取寶貴的《ChatGPT 內容行銷AI 工具使用指南》! 🌟
📚 這份指南蘊含價值巨大,🌟難逢的機遇,切勿錯失良機! ⏰⌛💨
喜歡就分享和按贊!
您的分享和按贊,是我們持續的動力!

 

發表評論

您的電子郵箱地址不會被公開。 必填項已用 * 標註

滾動到頂部