Could not reliably determine the server’s fully qualified domain name?

當前的 apache2 啟動時常見這個錯誤訊息:


Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2:
Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

在 Ubuntu 14.04 之後的版本,解決方法如下:


echo "ServerName localhost" | sudo tee /etc/apache2/conf-available/fqdn.conf
sudo ln -s /etc/apache2/conf-available/fqdn.conf /etc/apache2/conf-enabled/fqdn.conf

更多細節可以參考:Could not reliably determine the server’s fully qualified domain name?

Comments

comments

發佈留言

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料