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

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

再长的路,一步步也能走完,再短的路,不迈开双脚也无法到达

评论

^