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

今天同事在配置apache的时候遇到一个问题,在apahce启动的时候抛出
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

网上搜了一下解决办法:

#vi /usr/local/apache/conf/httpd.conf

找到#ServerName www.example.com:80   把#去掉,再重启apache即可没事了。

你可能感兴趣的:(apache,ServerName)