Apache启动提示 httpd: apr_sockaddr_info_get() failed for xxx

httpd: apr_sockaddr_info_get() failed for xxx

httpd: Could not reliably determine the server‘s fully qualified domain name, using 127.0.0.1 for ServerName

在/usr/local/apache2/bin/apachectl start启动Apache服务的时候出现的错误

解决办法

vi /etc/hosts
127.0.0.1 localhost.localdomain localhost xxx

主要原因是:

apache的conf目录下的配置文件httpd.conf中关于hostname设置和/etc/sysconfig/network中的HOSTNAME设置不统一导致的,修改成统一的主机名即可解决该问题。

注:/etc/sysconfig/network 默认主机名是:HOSTNAME=localhost.localdomain

时间: 2024-10-08 10:17:21

Apache启动提示 httpd: apr_sockaddr_info_get() failed for xxx的相关文章

如何解决linux下apache启动时httpd: apr_sockaddr_info_get() failed for 报错

今天在家里的RHLE5.5上安装apache的时候,先用user1用户./configure命令配置,然后才用root用户make && make install,结果apache起来的时候就报如下错误: httpd: apr_sockaddr_info_get() failed for bogon httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 fo

Apache启动不了httpd: apr_sockaddr_info_get() failed xgp

httpd: apr_sockaddr_info_get() failed for hoteel httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName 我在service httpd restart的时候提示上述信息的.虽然启动成功了,但是也是很郁闷的. 这是因为我在配置DNS的时候hostname hoteel造成的. 重新host

启动apache报httpd: apr_sockaddr_info_get() failed for 103.localdomain错误问题

在启动或重启apache时报以下错误,虽然没有影响,但总感觉怪怪的.httpd: apr_sockaddr_info_get() failed for 103.localdomainhttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName 解决方法: 1)进入apache的安装目录:(视个人安装情况而不同) /etc/httpd/conf

未apachectl -t错误 httpd: apr_sockaddr_info_get() failed for www

[[email protected] abc]# apachectl -thttpd: apr_sockaddr_info_get() failed for wwwhttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerNameSyntax OK 解决办法

解决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",添

工作经验 部署阿帕奇的时候出现 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启动错误: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 -thttpd: apr_sockaddr_info_get() failed for bqh-119httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerNameSyntax OK[[email protected] conf]#

Apache主配置文件httpd.conf 详解

http://www.linuxidc.com/Linux/2015-02/113921.htm Apache的主配置文件:/etc/httpd/conf/httpd.conf 默认站点主目录:/var/www/html/Apache服务器的配置信息全部存储在主配置文件/etc/httpd/conf/httpd.conf中,这个文件中的内容非常多,用wc命令统计一共有1009行,其中大部分是以#开头的注释行.[[email protected] ~]# wc -l /etc/httpd/conf