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

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

照顾好自己,如果尚有余力,记得保护美好的东西,不畏不惧赤诚善良。

评论

^