Apache Httpd报错:AH00558

【现象】

httpd[1409]: AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1. Set the ‘ServerName’ directive globally to suppress this message

在这里插入图片描述

【原因】
httpd配置文件/etc/httpd/conf/httpd.conf中的ServerName配置有问题。

【解决】

#ServerName www.example.com:80
修改为
ServerName www.example.com:80

重启httpd

[root@server conf.d]# systemctl restart httpd
[root@server conf.d]# systemctl status httpd
在这里插入图片描述