解决启动httpd报: apr_sockaddr_info_get() failed for错误
我测试库里 service httpd start 时报 下面错误
httpd: apr_sockaddr_info_get() failed for fengxin.wzjzt.centos
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
转载于:https://www.cnblogs.com/felx521/p/3518377.html
解决启动httpd报: apr_sockaddr_info_get() failed for错误相关推荐
- 解决导出Excel报COM类工厂错误的办法--修改版
解决导出Excel报COM类工厂错误的办法 1.问题现象 (1)第一种:销售模板的一些报表(如日报.月报等)导出时提示如下信息 (2)第二种:有些模块的一些报表导出时,没有反应,前后台也没报错 如成本 ...
- 解决IntelliJ IDEA报错Failed to read candidate component class: file [ ]; nested exception is org.
解决IntelliJ IDEA报错Failed to read candidate component class: file [ ]; nested exception is org.springf ...
- 解决IntelliJ IDEA报错Error: java: 错误: 不支持发行版本 XX
解决IntelliJ IDEA报错Error: java: 错误: 不支持发行版本 XX 解决方法 1 解决方法 2 解决方法 3 笔者在做代码重构的时候,以前记得运行正常的代码,如今一直报错,百 ...
- 在CMD下使用sc命令,报openservice failed 1060错误
在CMD下使用sc命令,删除tomcat服务,报openservice failed 1060错误 原因:服务里的tomcat服务的状态是禁止状态,如果改为自动状态就可以用sc delete tomc ...
- 解决启动nginx报错问题:[warn] 4450#0: the “user“ directive makes sense only if the master process runs......
文章目录 一.解决启动nginx报[warn] 5052#0: the "user" directive makes sense only if the master proces ...
- Docker启动失败报错Failed to start Docker Application Container Engine解决方案
在给一台腾讯云机器安装docker后发现无法启动,总是报错Failed to start Docker Application Container Engine,解决思路分享一下,以免各位童鞋踩坑. ...
- 启动azkaban报错_解决启动Azkaban报错问题:java.lang.NoSuchMethodError: com.google.comm
问题描述: 启动Azkaban报错: java.lang.NoSuchMethodError:com.google.common.collect.ImmutableMap.toImmutableMap ...
- 启动virt-manager报错:Failed to open /var/lib/dbus/machine-id
[root@hyperStor ~]# virt-manager //启动KVM虚拟机管理工具报错 process 4619: D-Bus library appears to be incorrec ...
- 启动docker 报ERROR: failed to register layer: symlink
docker-compose up -d启动报错如下 [root@docker docker_nginx]# docker-compose up -d Creating network "d ...
最新文章
- 用vs2010编译vigra静态库及简单使用举例
- ICCV2021论文全汇总!附下载链接
- liferay7.0 mysql_Liferay7 BPM门户开发之6: Activiti数据库换为mysql
- 如何创建可变数量的变量?
- RuoYi-Vue————权限管理
- 使用Fedora之VMware 虚拟机安装Fedora
- DR模式 mysqlABB读写分离
- yum搭建lnmp的最简单方法
- js系列教程7-DOM操作全解
- 6.SOA架构:服务和微服务分析及设计--- Web服务的服务API与契约设计
- 强引用、软引用、弱引用、虚引用、终结器引用
- ceph mds的客户端告警记录
- sts背景色设置眼睛保护色
- 毕设/私活/bigold必备项目,一个挣钱的免费的全开源标准前后端分离后台管理权限系统【springboot+vue+redis+Spring Security】脚手架搭建:若依Ruo框架具体使用教程
- 走楼梯(斐波那契数列)
- 华为nova7se乐活版支持鸿蒙,华为nova7se乐活版和nova8se的详细对比参数对比
- base64 decode java_Java实现Base64编解码
- 尚硅谷-SpringCloud
- Graph Embedding模型【Node2Vec】学习笔记
- Chrome谷歌浏览器,清除css或js文件缓存的方法