243eqd 发表于 2015-11-24 09:22:04

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

启动apache服务器时出现错误(标红部分)
# cd /usr/local/apache/bin
#./apachectl -k start
httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
#
解决办法:
进入/usr/local/apapche2/conf目录修改配置文件
# cd /usr/local/apapche2/conf
# gedit httpd.conf
将ServerName 后边的值改为localhost:80并去掉前边的注释
保存后重新启动apache服务器在浏览器中输入:http://localhost:80




页: [1]
查看完整版本: Could not reliably determine the server's fully qualified domain name