现在的位置: 首页 > 综合 > 正文

Ubuntu 下修改 Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName

2013年09月22日 ⁄ 综合 ⁄ 共 252字 ⁄ 字号 评论关闭

在Ubuntu上安装Apache,每次重启,都会出现以下错误提示:

Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName

解决办法

修改 httpd.conf 文件

打开终端,输入以下命令:

sudo vim /etc/apache2/httpd.conf

默认情况下,这个是一个空文件,在文件中加入以下内容:

ServerName localhost

保存文件退出,再次重启apache,错误提示没有了。

抱歉!评论已关闭.