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

使用新搭建环境配置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,问题解决。

转载请注明:西数超哥博客www.ysidc.top» apache启动报错:httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName解决办法

https://www.ysidc.top 西数超哥博客,数据库,西数超哥,虚拟主机,域名注册,域名,云服务器,云主机,云建站,ysidc.top

西数超哥学习乐园,西数超哥基础运维经验教程分享的学习乐园,西数超哥博客,运维经验教程交流学习分享的博客

原创文章,作者:zhang sir,如若转载,请注明出处:https://www.ysidc.top/5392.html