Apache启动不了,httpd: apr_sockaddr_info_get() failed for apache 启动问题
2013-10-19 13:59
489 查看
CentOS 6.4 环境搭建出现的问题:
在启动 httpd 时出现
正在启动 httpd:httpd: apr_sockaddr_info_get() failed for hostname
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
去找 /etc/hosts 中有没有主机的定义
先查看自己的主机名 # hostname
vim /etc/hosts
将有127.0.0.1的那一行改为127.0.0.1 localhost.localdomain localhost [你自己的主机名]
修改/etc/httpd/conf/httpd.conf文件中的ServerName HOSTNAME为
ServerName 127.0.0.1:80 ,保存退出。
重启apache
/etc/init.d/httpd restart
successful!!
在启动 httpd 时出现
正在启动 httpd:httpd: apr_sockaddr_info_get() failed for hostname
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
去找 /etc/hosts 中有没有主机的定义
先查看自己的主机名 # hostname
vim /etc/hosts
将有127.0.0.1的那一行改为127.0.0.1 localhost.localdomain localhost [你自己的主机名]
修改/etc/httpd/conf/httpd.conf文件中的ServerName HOSTNAME为
ServerName 127.0.0.1:80 ,保存退出。
重启apache
/etc/init.d/httpd restart
successful!!
相关文章推荐
- Linux快速构建apache web服务器
- Awstats处理多apache日志
- 安装perl模块小窍门
- PHP+Apache在Windows 9x下的安装和配置
- Apache服务器配置全攻略
- Apache Web让JSP“动”起来
- Linux Apache+MySQL+PHP
- 建立Apache+PHP+MySQL数据库驱动的动态网站
- apache 环境下 php 的配置注意事项
- 在RedHat下安装apache jserv 1.1.2方法
- windows中PHP5.2.14以及apache2.2.16安装配置方法第1/2页
- 解析阿里云ubuntu12.04环境下配置Apache+PHP+PHPmyadmin+MYsql
- apache rewrite防盗链三例
- Apache 配置详解(最好的APACHE配置教程)
- Apache+php+mysql在windows下的安装与配置(图文)第1/2页
- apache rewrite_module模块使用教程
- Apache rewrite重写规则的常见应用
- 关于Apache默认编码错误 导致网站乱码的解决方案
- Linux Apache Web 服务器(续一)
- tomcat 5.0 + apache 2.0 完全安装步骤详解