[root@localhost httpd-2.2.21]# service apache start
报错httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
解决方法
[root@localhost httpd-2.2.21]# vim /usr/local/apache2/conf/httpd.conf
97行 #ServerName localhost 去掉
或者在你的hosts的文件里面添加一条对本机的解析