当前位置首页 > Apache知识

重启Apache报错apache2:Couldnotreliablydeterminetheserver'sfully

阅读次数:388 次  来源:admin  发布时间:

启动apache提示 :

apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

重启Apache报错apache2:Couldnotreliablydeterminetheserver'sfullyqualifieddomainname,using127.0.1.1forServerName...waiting的解决方法

(1)、进入apache的安装目录: cd /etc/apache2/

(2)、编辑http.conf文件,添加ServerName localhost:80

udo vim httpd.conf

(3)、最后,再次重启apache

udo /etc/init.d/apache2 restart

重启Apache报错apache2:Couldnotreliablydeterminetheserver'sfullyqualifieddomainname,using127.0.1.1forServerName...waiting的解决方法

上一篇:解决CentOS7Ping不了外网的问题ping:baidu.com:未知的名称或服务
下一篇:centos7默认安装没有连接网络