今天在家里的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 for ServerName
虽然不妨碍使用,可是看着错误总觉得别扭,经过查找发现,这个问题应该是没有在 /etc/httpd/conf/httpd.conf 中设定 ServerName。所以apache会用主机上的名称来取代,首先会去找
/etc/hosts 中有没有主机的定义。
所以要解决这个问题可以设定httpd.conf文件中的 ServerName,如下:
(1) ServerName localhost:80
或者在 /etc/hosts 中填入自己的主机名称 bogon,如下:
(2)127.0.0.1 bogon
注意:
当前系统的主机名请以hostname命令为准,/etc/sysconfig/network中的HOSTNAME设置有可能不一致。
/etc/sysconfig/network 默认主机名是:HOSTNAME=localhost.localdomain
分享到:
相关推荐
重启apache:service httpd restart虽然重启成功,但却给出如下的提示信息:httpd: apr_sockaddr_info_get() failed for hoteelhttpd: Could not reliably determine the server’s fully qualified domain name, ...
Apache V2.0.15 Alpha For Linux\httpd-2_0_15-alpha.tar.Z
UNIX/Linux平台上的微型http服务器,实现网页浏览,cgi接口,php页面查看等功能
张中庆_Apache源代码全景分析_第1卷 (高清pdf,因为原文件太大,所以分成几个文件上传)
昨晚整合apache和php是实在找不到解决办法,Google 百度都转一圈了,总算在百度找回来解决方法,记录一下,这个问题是在apache启动时出现的: ./apachectl start提示下面的错误: 代码如下: httpd: Syntax error ...
Task11:“:Japanese_symbol_for_beginner:11.1使用Ansible Playbook配置Hadoop并启动集群服务:Japanese_symbol_for_beginner:11.2创建有关行业如何使用Ansible解决挑战的文章,博客或视频。:Japanese_symbol_for_...
启动 httpd:(13)Permission denied: httpd: could not open error log file /home/wwwroot/jb51.net/logs/error_log. Unable to open logs [失败] 三、问题原因 因为新安装的系统,所以SELinux默认是开启状态,...
apache httpd2.4.6 for linux
在Linux下安装Apache(httpd)的软件包,包含:apr-1.5.2.tar.gz, apr-util-1.5.4.tar.gz, httpd-2.2.31.tar.gz,pcre-8.31.tar.gz
Linux下安装Apache httpd.doc
connect(sockClient, (SOCKADDR*)&addrSrv, sizeof(SOCKADDR)); //3.和服务器进行通信,接收或是发送数据 char recvBuf[100]; recv(sockClient, recvBuf, 100, 0); if(SOCKET_ERROR == WSAGetLastError()) ...
simple httpd server hello world
原因三:httpd.conf配置错误 如果apache的配置文件httpd.conf搞错了,在windows里启动它,会提示the requested operation has failed ,这是比较郁闷的事,因为查错要看个半天。 其实可以用命令行模式启动apache
Linux(centos)下的Apache安装压缩包:httpd-2.2.34.tar.gz,结合我的博客http://blog.csdn.net/jing12062011/article/details/76850284使用,留存一下便于以后搭建系统用
做linux运维常常于见的问题! Mar 21 21:25:02 VM_0_9_centos httpd: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 Mar 21 21:25:02 VM_0_9_centos httpd: (98)Address ...
apache for linux apache for linux apache for linux apache for linux
“httpd未被被识别的服务”的解决办法.docx
apache-http源码编译 1、httpd-2.4.41.tar 2、apr-1.7.0.tar 报错: rm: cannot remove `libtoolT': No such ...httpd: ./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr/ --with-apr=/usr/local/apr
源码编译:亲测有效! 1、httpd-2.4.41.tar 2、apr-1.7.0.tar 报错: rm: cannot remove `libtoolT': No such file ..../configure --prefix=/usr/local/apache --with-apr=/usr/local/apr/ --with-apr=/usr/local/apr