启动apache时,出现httpd: Could not reliably determine the server\'s fully qualified domain name, using 127.0.0.1 for ServerName

1、通过vi打开apache的配置文件httpd.conf
> vi /data/apache/conf/httpd.conf

2、找到#ServerName www.example.com:80这行,去掉前面的#号,修改如下:
ServerName localhost:80 或者
ServerName 127.0.0.1:80