您的位置:首页 > 运维架构 > Apache

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

2013-06-21 14:02 525 查看
在Ubuntu上装完Apache后,每次启动apache服务器都会得到如下警告:

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

解决办法也很简单:

sudo echo "ServerName localhost" >> /etc/apache2/apache2.conf

或者

sudo vim /etc/apache2/apache2.conf

在里面最后加上一行:

ServerName localhost
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐