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

【linux命令】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,问题解决。

hmoban主题是根据ripro二开的主题,极致后台体验,无插件,集成会员系统
自学咖网 » apache启动报错:httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName解决办法