解决apache启动错误

问题描述:通过yum install -y httpd 安装好Apache后启动报错,如下:

[[email protected] ~]# service httpd start

正在启动 httpd:httpd: apr_sockaddr_info_get() failed for it3246

httpd: Could not reliably determine the server‘s fully qualified domain name, using 127.0.0.1 for ServerName                                                           [确定]

解决办法:

  1. 编辑hosts文件

[[email protected] html]# vi /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

127.0.0.1   it3246

注意:根据自己的机器主机名改 it3246是我自己的机器名称 [[email protected] html]里面@后面就是机器名

完成hosts文件编辑后,解决了一个问题。还有错误提示

[[email protected] etc]# service httpd restart

停止 httpd:                                               [确定]

正在启动 httpd:httpd: Could not reliably determine the server‘s fully qualified domain name, using 127.0.0.1 for ServerName

2.解决办法:

   编辑httpd.conf文件,搜索到"#ServerName",添加ServerName it3246:80或者去掉原本的

#ServerName www.example.com:80  前面的注释 后面改成 it3246:80

[[email protected] conf]# ls

extra  httpd.conf  magic  mime.types  original

[[email protected] conf]# vi httpd.conf

#ServerName www.example.com:80

ServerName it3246:80

3.重启apache。

[[email protected] etc]# service httpd status

httpd (pid  29506) 正在运行...

注意:文章中it3246是根据自己机器替换的 是自己的主机名

时间: 2024-10-24 22:34:59

解决apache启动错误的相关文章

解决apache启动错误httpd: Could not reliably determine the server's fully qualified domain name

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this messagehttpd (pid 1068) already running 编辑httpd.conf文件,搜索"#ServerName",添

解决apache启动错误:Could not reliably determine the server's fully qualified domain name

启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name [[email protected] httpd-2.2.4]# /usr/local/apache2/bin/apachectl start httpd: Could not reliably determine the server's fully qualified domain name, using ::1

解决apache启动错误:httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

启动apache遇到提示: [[email protected] conf]# ../bin/apachectl -thttpd: apr_sockaddr_info_get() failed for bqh-119httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerNameSyntax OK[[email protected] conf]#

解决apache启动错误"httpd:Could not reliably determine..."

启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name [[email protected] httpd-2.2.4]# /usr/local/apache/bin/apachectl start httpd: Could not reliably determine the server's fully qualified domain name, using 127.0

如何解决apache启动时错误:Could not reliably determine the server's fully qualified domain name

启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name [[email protected] httpd-2.2.4]# /usr/local/apache/bin/apachectl start httpd: Could not reliably determine the server's fully qualified domain name, using 127.0

解决Apache的错误日志巨大的问题以及关闭Apache web日志记录

调整错误日志的级别 这几天 apache错误日志巨大 莫名其妙的30G  而且 很多都是那种页面不存在的  网站太多了  死链接相应的也很多于是把错误警告调低了 因为写日志会给系统带来很大的损耗.关闭日志以后,甚至最高可以提高整体性能近40%(粗略估计)那么如何关闭日志呢? 可以通过降低log级别的办法来减少日志读写. 这里要提醒的是,这么做将给"入侵检测"以及其他基于日志分析的工作带来麻烦.所以请谨慎使用.网上相关文章很多,但说的都不详细,擦边而过,下面详细说一下具体操作步骤. 编辑

Centos安装Apache启动错误:

Apache启动错误:httpd.exe: Could not reliably determine the server's fully qualified 在自己电脑配置Apache开发环境问题的时候,可能会遇到apache的启动错误:httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168. x. x for ServerName,这个错误在error.lo

Apache启动错误解决方法

xampp启动时显示的错误为: 10:40:18 [Apache] Error: Apache shutdown unexpectedly.10:40:18 [Apache] This may be due to a blocked port, missing dependencies, 10:40:18 [Apache] improper privileges, a crash, or a shutdown by another method.10:40:18 [Apache] Press t

wampserver 的Apache启动错误提示:The requested URL / was not found on this server.

打开localhost显示以下错误 原因:之前我配置了虚拟主机,所以服务器是从虚拟环境访问的,localhost也就访问不到 解决方法:打开httpd.conf配置文件,将Include conf/extra/httpd-vhosts.conf改为#Include conf/extra/httpd-vhosts.conf(下次配置虚拟主机的时候要重新打开这个选项) 原文地址:http://www.wanysys.cc/coding/php/800.html