天天看点

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

   启动apache的服务时,出现如下信息: 

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

解决办法: 

    1.进入apache安装目录下,编辑配置文件./conf/httpd.conf 

     将httpd.conf文件中的一行: 

           # ServerName www.example.com:80 前的注释#去掉。 

      或者增加一行: 

           ServerName localhost:80

本文转自 holy2009 51CTO博客,原文链接:http://blog.51cto.com/holy2010/355035