Could not reliably determine the server's fully qualified domain name

启动apache服务器时出现错误(标红部分)

[root@localhost ~]# cd /usr/local/apache/bin

[root@localhost bin]#  ./apachectl -k start
httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName

[root@localhost bin]#

解决办法:

进入/usr/local/apapche2/conf目录修改配置文件

[root@localhost bin]# cd /usr/local/apapche2/conf

[root@localhost conf]# gedit httpd.conf

将ServerName 后边的值改为localhost:80并去掉前边的注释

保存后重新启动apache服务器在浏览器中输入:http://localhost:80

wKioL1ZSjaSQAM8oAABOnrY7xqQ072.png 




本文出自 “DOSOM” 博客,谢绝转载!

你可能感兴趣的:(domain,name,could,the,not,reliably,determine,fully,qualified,server's)