ubuntu 下apahce2错误解决

来源:互联网 发布:数据结构算法设计题 编辑:程序博客网 时间:2024/05/21 10:45

ubuntu 中重启apacher2服务的时候提示

"AH00558 : apache2: Could not reliably determine the server's fully qualified domain name,using127.0.1.1. Set the 'ServeName' directive globally to suppress this message”。

解决方案: 编辑/etc/apache2/apache2.conf文件,(而不是修改/etc/apache2/sites-enabled/000-default.conf文件,虽然这个文件中有servername项)

在文件中加上

ServerName 127.0.1.1

重启apache2服务:

可在终端输入:

sudo apache2ctl restart

或者:

sudo service apache2 restart

0 0