解决apache启动错误:httpd: Could not reliably determine the server's fully qualified domain name, using
Posted su-root
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决apache启动错误:httpd: Could not reliably determine the server's fully qualified domain name, using相关的知识,希望对你有一定的参考价值。
启动apache遇到提示:
[[email protected] conf]# ../bin/apachectl -t
httpd: apr_sockaddr_info_get() failed for bqh-119
httpd: Could not reliably determine the server‘s fully qualified domain name, using 127.0.0.1 for ServerName
Syntax OK
[[email protected] conf]# ../bin/apachectl graceful
httpd: apr_sockaddr_info_get() failed for bqh-119
httpd: Could not reliably determine the server‘s fully qualified domain name, using 127.0.0.1 for ServerName
上面httpd:行内容的提示意思是不能确定服务器的FQDN,使用127.0.0.1代替
去掉上面提示的方法为:
输入命令vim ./conf/httpd.conf +99 回车,进入99行左右增加如下配置,然后从启apache即可
ServerName 127.0.0.1:80
快速解决方法:
[[email protected]119 apache]# sed -i ‘s#\\#ServerName www.example.com:80#ServerName 127.0.0.1:80#g‘ ./conf/httpd.conf [[email protected]-119 apache]# grep ServerName ./conf/httpd.conf # ServerName gives the name and port that the server uses to identify itself. ServerName 127.0.0.1:80
再次重启就不报提示信息了:
以上是关于解决apache启动错误:httpd: Could not reliably determine the server's fully qualified domain name, using的主要内容,如果未能解决你的问题,请参考以下文章
部署OpenStack问题汇总--解决apache启动错误"httpd:Could not reliably determine..."
解决apache启动错误:httpd: Could not reliably determine the server's fully qualified domain name, using
linux下apache启动问题(dummy-host.example.com does not exist, Could not..127.0.0.1 for ServerName)
Centos6 下启动httpd报错 Could not reliably determine the server's解决方法