【linux命令】apache启动报错:httpd: Could not reliably determine the server’s fully qualified domain na

内容摘要
使用新搭建环境配置yum 了一个apache,配置多个虚拟主机以后,启动报错:httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.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,问题解决。

代码注释
[!--zhushi--]

作者:喵哥笔记

IDC笔记

学的不仅是技术,更是梦想!