httpd: apr_sockaddr_info_get() failed for centos1113

本文介绍了当httpd服务启动失败并出现apr_sockaddr_info_get() failed错误时的解决方法。通常情况下,此问题与hosts文件配置不当有关。通过正确配置hosts文件或修改httpd.conf中的ServerName设置可以有效解决问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

httpd: apr_sockaddr_info_get() failed for centos1113


[root@centos1113 html]# service httpd start
启动 httpd:httpd: apr_sockaddr_info_get() failed for centos1113
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                           [确定]
1、hosts文件没有配置正确。
如下配置就可以:
[root@centos1113 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.11.13           centos1113 localhost.localdomain localhost
127.0.0.1               centos1113 localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6

httpd启动,但是会报错,

2、[root@nagios-server var]# service httpd restart
Stopping httpd:                                            [ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                           [ OK ]


解决方法
[root@nagios-server var]# vi /etc/httpd/conf/httpd.conf

找到ServerName

改成

ServerName 127.0.0.1




更多参考:

AIX mount RedHat的NFS

误删除/dev/dsk 和/dev/rdsk 下的文件怎么办?

unary operator expected

bash: /root/.bash_profile: line 15: syntax error: unexpected end of file

Linux下如何查看文件秒级修改及访问时间

EM乱码解决

linux里端口转发

windows xp 下使用FileZilla密钥

java.net.SocketException: Too many open files 问题的解决办法

UNExcepted inconsistency; run fsck manually

如何修改linux的mac地址?

mysqldump: Got error: 1066: Not unique table/alias

rsync详解一

rsync详解二

更改mysql的默认安装目录

httpd: apr_sockaddr_info_get() failed for centos1113

Real domain name required for sender address

Connection refused by [127.0.0.1]

MySQL bin_log文件占用空间太大

Centos 5 多路径配置步骤

rpc mount export: RPC: Unable to receive; errno = No route to host

nohup和screen的比较

vmware workstation 8 共享磁盘



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值