啟動apache錯誤提示httpd: Could not reliably determine the server's fully qualified domain name
Apache出現錯誤提示
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to suppress this message
谷歌翻譯:AH00558:httpd:使用:: 1無法可靠地確定服務器的完全限定域名。設置全局的“ServerName”指令以抑制此消息。
解決方法
1)SFTP客戶端登錄apache的安裝路經(不同系統程序路經不同),這里以CWP控制面板為例:
/usr/local/apache/conf/
2)編輯httpd.conf文件
3)搜尋“ServerName”
4)在#ServerName http://www.example.com:80下添加:
ServerName localhost:80
注意事項
“#”表示註釋代碼,不要有“#”。
5)按CTRL+SAVE儲存。
6)SSH重新啟動apache:
service httpd restart
希望陳溈亮博客( https://www.chenweiliang.com/ ) 分享的《Apache錯誤提示httpd: Could not reliably determine the server's fully qualified domain name》,對您有幫助。
歡迎分享本文鏈接:https://www.chenweiliang.com/cwl-329.html
歡迎加入陳溈亮博客的Telegram 頻道,獲取最新更新!
🔔 率先在頻道置頂目錄獲取寶貴的《ChatGPT 內容行銷AI 工具使用指南》! 🌟
📚 這份指南蘊含價值巨大,🌟難逢的機遇,切勿錯失良機! ⏰⌛💨
喜歡就分享和按贊!
您的分享和按贊,是我們持續的動力!
📚 這份指南蘊含價值巨大,🌟難逢的機遇,切勿錯失良機! ⏰⌛💨
喜歡就分享和按贊!
您的分享和按贊,是我們持續的動力!