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
重啓即可成功!