centos7 的httpd的问题

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
Syntax OK

解决办法:先用httpd -t 检查语法

出现

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
Syntax OK

没找到域名,域名设置有问题

修改/etc/httpd/conf/httpd.conf文件

把ServerName 那一行注释删掉·

在httpd -t

结果为:Syntax OK就好了

posted @ 2020-09-14 08:57  nanfengnan  阅读(399)  评论(0编辑  收藏  举报