http ServerName问题

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

启动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