apache启动报错:httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName解决办法 – 21运维
通知: .-...

apache启动报错:httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName解决办法

apache 21运维 6225浏览 0评论

使用新搭建环境配置yum 了一个apache,配置多个虚拟主机以后,启动报错:httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
当然这个报错并不影响我们使用,只是有报错肯定看着不舒服。下边说下解决办法:

vi /etc/httpd/conf/httpd.conf   配置文件找个位置加入一行代码  ServerName  localhost:80 重启httpd,问题解决。

转载请注明:21运维 » apache启动报错:httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName解决办法

发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址