Ubuntu 12.04 Apache2重启提示could not reliably determine the server's fully…问题解决

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/default

打开default文件后,在default文件顶端(第一行)加入:

ServerName www.mobibrw.com

重启Apache2就不会提示上述错误了。

参考链接
Ubuntu Apache2重启提示could not reliably determine the server’e fully…问题解决

发布者

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注