centos 開啓httpd service 出現ServerName error

當我們第一次對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 這樣基本上就可以了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章