當我們第一次對centos6.5自帶的apache做出啓動的操作時候(沒有對/etc/httpd/conf/httpd.conf 文件做出任何改動),會提示一段代碼錯誤
httpd:httpd: apr_sockaddr_info_get() failed for zero httpd: Could not reliably
determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
基本意思就是沒有配置ServerName。 在/etc/httpd/conf/httpd.conf 文件中 vi httpd.conf 命令行的模式下 /ServerName 找 #ServerName www.example.com:80 放開或者 yy p 複製到下一行然後放開修改成ServerName localhost:80
這樣基本上就可以了