转载路径:http://www.linuxidc.com/Linux/2010-07/27144.htm
Ubuntu 环境,当apache2重启提示:
* Starting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name,
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

解决的问题是:
sudo vim /etc/apache2/sites-available/000-default.conf
ServerName 127.0.0.1
重启apache2 就不会提示上述错误了。
Ubuntu Apache2 FQDN 错误

本文解决了一个常见的Ubuntu环境下Apache2启动时出现的FQDN(完全限定域名)无法可靠确定的问题。通过修改配置文件000-default.conf中的ServerName字段为正确的主机名或IP地址,可以避免启动时的警告。
4758

被折叠的 条评论
为什么被折叠?



