Ubuntu 重啓apache2未成功,AH00558錯誤

Ubuntu 重啓apache2未成功,錯誤如下:

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message。


解決方案爲:

$ sudo vim /etc/apache2/apache2.conf

最後加一句:

 ServerName localhost:80


重啓即可成功!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章