AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localh

来源:互联网 发布:alchemy软件 编辑:程序博客网 时间:2024/06/05 19:58
Linux安装Apache2.4出现 : AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message

httpd (pid 7615) already running  表名Apache2.4已经运行,上面的信息应该在 /etc/http/conf/httpd.cnf 下编辑http.cnf ,在#ServerName www.example.com:80添加

ServerName localhost:80即可

在浏览器测试不能出现 It works

此时将centos7的防火墙关闭: systemctl stop firewalld.service

再在ie浏览器中测试就可以出现it works

有关centos7的防火墙设置,请参考: 点击打开链接
阅读全文
0 0
原创粉丝点击