解决apache启动错误 AH00558: httpd: Could not reliably determine...

[root@localhost httpd-2.4.7]# /usr/local/httpd/bin/apachectl start

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

apache 启动出现这种错误的解决方法:

将 apache 的配置文件httpd.conf中的 ServerName 改成可用域名或如下配置

ServerName localhost:80


原文地址:https://www.cnblogs.com/moqiang02/p/4061511.html