Apache日志
来源:互联网 发布:freeVPN Plus for mac 编辑:程序博客网 时间:2024/05/16 08:51
默认安装在/usr/sbin/下,执行apachectl start时候,提示如下错误:
httpd: apr_sockaddr_info_get() failed for shiwei
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 中有没有主机的定义。
解决办法:
(1)可以设定httpd.conf文件中的 ServerName,如下:ServerName localhost:80
(2)在 /etc/hosts 中填入自己的主机名称 bogon,如下:127.0.0.1 shiwei (用户名称)
0 0
- apache 日志
- apache日志
- Apache日志
- Apache 日志
- Apache 日志
- Apache日志详解
- apache/IIS 日志分析
- Apache日志详解
- Apache日志详解
- apache日志解释
- 统计分析apache服务器日志
- Apache日志分析
- apache 定制日志
- Apache日志配置
- apache日志设置
- Apache日志配置
- [金步国]Apache日志文件
- Apache 日志的配置
- POJ 3249 Test for Job
- 研磨设计模式转载
- Android density与显示效果总结
- nyoj306 二分+dfs
- Android开发获取屏幕的宽高
- Apache日志
- Coder-Strike 2014 - Qualification Round B. Multi-core Processor(模拟题)
- VMware 锁定文件失败 开启模块 diskearly 的操作失败 未能启动虚拟机 .
- 创建虚拟桌面的代码(重启桌面进程)
- 二分法猜测100以内数字
- Cocos2dx3.0 疑难解答系列 (二) 编译android时,报 CocoStudio.h no such file or directory等类似错误
- SQL server 带走的方法
- 理解java.lang.Class类
- 如何把jar包发布到maven私服