apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
問題情況:
[c-sharp] view plaincopy
$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
解決步驟:
爲了解決這個問題,你需要編輯下面這個httpd.conf文件,打開它並根據如下操作進行編輯:
[c-sharp] view plaincopy
sudo gedit /etc/apache2/httpd.conf
默認的httpd.conf是個空文件,現在向裏面加入如下內容:
[c-sharp] view plaincopy
ServerName localhost
這裏可以改成自己網站域名如www.baidu.com
保存並退出。
最後重啓服務器:
[c-sharp] view plaincopy
sudo /etc/init.d/apache2 restart
http://blog.csdn.net/firstboy0513/article/details/5866133