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

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

人各有命,但命运也从来不是随机发牌,而是每个人主动选择的结果。

评论

^