Apache二运维错误Could not reliably determine the server’s fully qualified domain name

荒谬情状:

错误意况:

AH00558: apache2: Could not reliably determine the server’s fully
qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive
globally to suppress this message 

AH00558: apache2: Could not reliably determine the server’s fully
qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive
globally to suppress this message 

 

 

出现上述意况只要修改一下Apache的配置文件就能够:

出现上述情状借使修改一下Apache的布局文件即可:

在配置文件 apache2.conf内部加入一行

在陈设文件 apache二.conf中间出席1行

 ServerName localhost:80

 ServerName localhost:80

 然后重启Apache服务就足以了

 然后重启Apache服务就足以了

sudo /etc/init.d/apache2 restart 

sudo /etc/init.d/apache2 restart 

发表评论

电子邮件地址不会被公开。 必填项已用*标注

网站地图xml地图