解决apache启动错误:httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

启动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 127.0.0.1 for ServerName

原文地址:https://www.cnblogs.com/su-root/p/11186456.html

时间: 2024-10-22 18:53:22

解决apache启动错误:httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName的相关文章

解决apache启动错误httpd: Could not reliably determine the server's fully qualified domain name

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this messagehttpd (pid 1068) already running 编辑httpd.conf文件,搜索"#ServerName",添

解决apache启动错误:Could not reliably determine the server's fully qualified domain name

启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name [[email protected] httpd-2.2.4]# /usr/local/apache2/bin/apachectl start httpd: Could not reliably determine the server's fully qualified domain name, using ::1

测试Apache服务器及httpd: Could not reliably determine the server's fully qualified domain name解决办法

测试Apache服务器: 重启apache: sudo /usr/local/apache/bin/apachectl restart 若出现错误: httpd: Could not reliably determine the server's fully qualified domain name...... 解决办法: 1)进入apache的安装目录:(视个人安装情况而不同) [[email protected]]# cd /usr/local/apache/conf 2)编辑httpd.

apache AH00558错误: Could not reliably determine the server's fully qualified domain name

/usr/local/httpd/bin/apachectl start AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message apache 启动出现这种错误的解决方法:将 apache 的配

重启Apache报错apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName ... waiting的解决方法

启动apache提示 : apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName (1)

apache启动问题: Could not reliably determine the server's fully qualified domain name

[[email protected]]# service httpd startStarting httpd: httpd: apr_sockaddr_info_get() failed for ruskyhttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName *********************** 解决方法: 修改httpd.

工作经验 部署阿帕奇的时候出现 Starting httpd: httpd: apr_sockaddr_info_get() failed for server1 httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

service httpd restart Starting httpd: httpd: apr_sockaddr_info_get() failed for server1 httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName 出现这种原因是因为  httpd.config  的 配置文件出现错 应该把 ServerName  这行

解决apache启动错误"httpd:Could not reliably determine..."

启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name [[email protected] httpd-2.2.4]# /usr/local/apache/bin/apachectl start httpd: Could not reliably determine the server's fully qualified domain name, using 127.0

如何解决apache启动时错误:Could not reliably determine the server's fully qualified domain name

启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name [[email protected] httpd-2.2.4]# /usr/local/apache/bin/apachectl start httpd: Could not reliably determine the server's fully qualified domain name, using 127.0