Apache启动"httpd: Could not reliably determine the server's fully qualified domain name, using 127.0."

今天在启动Apache时候发现有一行警告:

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

可以修改Apache安装目录下的conf文件,我的是:

vi /opt/www/conf/httpd.conf

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

你可能感兴趣的:(UNIX学习,apache,domain,server)