计算机网络/计算机科学与应用/系统/运维/开发

CentOS7 安装 apache 出现AH00558


[root@localhost httpd-2.4.43]# /usr/local/apache2.4.43/bin/apachectl 

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


原因是因为没有配置好DNS,修改 

vim /usr/local/apache2/conf/httpd.conf

打开注释

ServerName www.example.com:80

顺,不妄喜;逆,不惶馁;安,不奢逸;危,不惊惧。--史记

评论

^