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

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


[root@server 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.0.1 for ServerName

1)进入apache的安装目录:(视个人安装情况而不同)

[root@server ~]# cd /usr/local/apache/conf

2)编辑httpd.conf文件,搜索"#ServerName",添加ServerName
localhost:80

[root@server conf]# ls
extra  httpd.conf  magic  mime.types  original
[root@server conf]# vi httpd.conf
#ServerName www.example.com:80
ServerName localhost:80

3)再重新启动apache 即可。

[root@server ~]# /usr/local/apache/bin/apachectl restart
时间: 2024-11-08 20:09:47

解决apache启动错误"httpd:Could not reliably determine的相关文章

apache启动错误提示:httpd: Could not reliably determine the server

错误提示 在系统启动时apache,没有启动起来,查看"事件查看器"发现报一些错误: The Apache service named  reported the following error: >>> httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.200 for ServerName   解决办法 1)进入apach

Apache启动错误:(OS 10022)提供了一个无效的参数

今天上班启动WAMP显示橙色,按照一般惯例应该是白色的才表现正常启动.抱着侥幸的心理访问本地项目,果不其然无法访问.初步猜测端口问题,可后来查看并未有端口占用问题,于是查看Apache错误日志查看了一个错误-"[crit] (OS 10022)提供了一个无效的参数的".下面PHP程序员雷雪松详细的记录下Apache启动错误"[crit](OS 10022)提供了一个无效的参数"的解决办法. Apache启动错误日志: [Wed Jun 08 13:19:57 201

启动apache时出现httpd: Could not reliably determine the server

启动apache时出现 [root@centos apache2]# /usr/local/apache2/bin/apachectl starthttpd: Could not reliably determine the server's fully qualified domain http://www.aliyun.com/zixun/aggregation/11696.html">name, using 121.10.40.155 for ServerName 现在提供该问题的解

httpd: Could not reliably determine the server's fully qualified domain name

[root@luozhonghua sbin]# service httpd start Starting httpd: httpd: apr_sockaddr_info_get() failed for luozhonghua httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName (98)Address already in use

MySQL启动错误怎么解决 MySQL启动错误解决方法

一般情况下mysql的启动错误还是很容易排查的,但是今天我们就来说一下不一般的情况.拿到一台服务器,安装完mysql后进行启动,启动错误如下. 有同学会说,哥们儿你是不是buffer pool设置太大了,设置了96G内存.这明显提示无法分配内存嘛.如果真是这样也就不在这里进行分享了,哈哈. 我的服务器内存是128G.如下图: 服务器内存使用情况: 那么问题来了,既然还剩如此多的内存,为什么提示无法分配内存? 1. 首先想到会不会是有几条内存坏了?于是运维的同学进行了检查,给我的反馈是硬件一切正常

Ubuntu下Apache启动错误:Invalid command Order解决办法

解决办法:在终端里输入如下命令即可:  代码如下 复制代码 sudo a2enmod authz_host; 下面附上windows下解决办法  代码如下 复制代码 LoadModule   status_modulemodules/mod_status.so <Location /status>   SetHandler server-status   Order Deny,Allow   Allow from all   #allow from 127.0.0.1 </Locatio

完美解决:Apache启动问题—(OS 10022)提供了一个无效的参数_php技巧

今天启动apache2始终无法启动,本以为又是端口问题,可后来查看并未有端口占用问题,于是查看错误日志如下:[Sat Jun 20 03:12:52 2009] [notice] Apache/2.2.11 (Win32) PHP/5.2.9-2 configured -- resuming normal operations[Sat Jun 20 03:12:52 2009] [notice] Server built: Dec 10 2008 00:10:06[Sat Jun 20 03:1

Centos下apache启动时httpd: apr_sockaddr_info_get() failed for 报错

今天安装Apache httpd web服务器时,从官方网站上http://www.apache.org/dyn/closer.cgi下载httpd,然后在centos下解压,安装过程分为三部分:       (1)./configure       (2)make       (3)make install (需要root权限) 默认安装在/usr/sbin/下,执行apachectl start时候,提示如下错误: httpd: apr_sockaddr_info_get() failed

apache启动报错:httpd: apr_sockaddr_info_get() failed_Linux

重启apache:service httpd restart虽然重启成功,但却给出如下的提示信息:httpd: apr_sockaddr_info_get() failed for hoteelhttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName 究其原因是因为在配置DNS的时候hostname hoteel造成的,重新hostnam