httpd启动显示Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName'

AH00557: httpd: apr_sockaddr_info_get() failed for master
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.conf中未设置ServerName

修改如下:vim httpd.conf

#ServerName www.example.com:80

去掉前面的#并修改 后面的域名为自己指定的ip或自定义的域名

如:ServerName localhost:80

原文地址:https://www.cnblogs.com/ddgen/p/7106534.html