1. 程式人生 > >Ubuntu 重啟apache2未成功,AH00558錯誤

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

重啟即可成功!