`

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

阅读更多



解决方案:

进入apache的安装目录:

  Windows : D:\Program Files\Apache Software Foundation\Apache2.2\conf

  linux : /etc/httpd/conf

打开编辑httpd.conf

将里面的#ServerName localhost:80注释去掉即可。

再重新启动httpd

然后可以通过浏览器访问http://localhost:80,如果页面显示“It works!”,即表示apache已安装并启动成功。

 

 

 

 

如果启动还是失败,并且没有报任何异常,那就要看一下日志,如果有下列字样

曾经遇到同样的问题,试试如下解决方法:

已经找到原因,是mod_nss证书过期导致,修复方法如下:

首先检查apache的error_log,我在/var/log/httpd/nss_error_log文件中看到如下错误。

[Fri May 31 20:33:04 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 31 20:38:02 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 31 20:41:58 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 31 20:50:02 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 31 20:51:47 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 31 20:56:20 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 31 20:57:18 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 31 20:57:45 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 31 21:07:35 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)



找到/etc/httpd/conf.d/nss.conf文件,配置文件中有个如下配置,其实需要将 SSLEngine 置为”off”就行了。









 

2
0
分享到:
评论

相关推荐

    Apache启动错误Permission denied: httpd: could not open error log file解决方法

    启动 httpd:(13)Permission denied: httpd: could not open error log file /home/wwwroot/jb51.net/logs/error_log. Unable to open logs [失败] 三、问题原因 因为新安装的系统,所以SELinux默认是开启状态,...

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

    httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

    apache安装

    httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.2.116 for ServerName错误 在#ServerName www.example.com:80 添加 ServerName www.example.com:80

    AppServ2.6.0的安装

    httpd.exe: Could not reliably determine the server's fully qualified domain name, using 10.0.0.109 for ServerName的处理办法 AppServ2.6.0是由Apache、PHP、mhsql、phpMyAdmin组成的安装包适合初学者使用。...

    “httpd未被被识别的服务”的解决办法.docx

    "httpd未被识别的服务"解决办法 在Linux操作系统中,Apache HTTP Server是一个常用的Web服务器软件,但是有时候在安装完成后,输入`#service httpd restart`命令时,系统却提示“httpd未被识别的服务”,这是因为...

    运维必备!linux查看端口占用情况

    Mar 21 21:25:02 VM_0_9_centos httpd: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 Mar 21 21:25:02 VM_0_9_centos httpd: (98)Address already in use: AH00072: make_...

    w.c.gz_HTTPD://W_httpd_httpd server_world

    simple httpd server hello world

    Apache的status相关问题解决办法

    /etc/init.d/httpd: line 112: lynx: command not found 或者 Error 403 Access forbidden! 解决方法: 出现lynx: command not found错误提示的需要完成Step1&Step2 出现Error 403 Access forbidden!错误提示的

    httpd_httpd//kmdl1p.com_httpd://khu99.com_httpd/.628787.com_http

    HTTPD is the main program for the Apache hypertext transfer protocol (HTTP) server

    安装lamp报错信息及解决方法

    /use/lib//usr/lib/libdb-4.2.so: could not read symbols: File in wrong format Notice: Following unknown configure options were used: usr/bin/ld: cannot find -lltdl /usr/bin/ld: cannot find -...

    httpd.conf

    Name : httpd Version : 2.4.6 Release : 18.el7.centos Architecture: x86_64 Install Date: Mon 11 Aug 2014 02:44:55 PMCST Group : System Environment/Daemons Size : 9793373 License : ASL 2.0 Signature : ...

    B0Httpd:基于Go语言开发的超级简便(无任何依赖,一个文件,快速开启)的自建文件服务器.zip

    B0Httpd:基于Go语言开发的超级简便(无任何依赖,一个文件,快速开启)的自建文件服务器Go语言(也称为Golang)是由Google开发的一种静态强类型、编译型的编程语言。它旨在成为一门简单、高效、安全和并发的编程...

    harmonyos源代码-httpd:httpd

    harmonyos源代码 ...将其中的//applications/sample/wifi-iot/app替换为//third_party/httpd:app; 在openharmony源码的顶层目录,执行python build.py wifiiot; HTTP 服务器特性 目前已测试通过的

    httpd-2.4.50.tar.gz

    The Apache HTTP Server Project is pleased to announce the release of version 2.4.50 of the Apache HTTP Server ("Apache" and "httpd"). This version of Apache is our latest GA release of the new ...

    f5-demo-httpd:容器中的简单NGINX演示应用程序

    这是要求码头工人用法# simple pagedocker run -p 8080:80 f5devcentral/f5-demo-httpd:nginx# simple websitedocker run --rm -e F5DEMO_APP=website f5devcentral/f5-demo-httpd:nginx# simple frontenddocker ...

    httpd:适用于Apache HTTP Server的Docker官方映像打包

    这是的的Git存储库(不要与httpd上游提供的任何官方httpd映像混淆)。 有关如何使用此Docker映像的完整自述文件以及有关贡献和问题的信息,请参阅。 的是在生成/维护的,尤其是。 看到此处合并的更改尚未出现在...

    httpd2.2.12.tar

    to reflect the group's perceived stability of the tree. Development releases may be made at any time by any committer. Please read the following link for a more detailed description of the ...

    apache server 不能成功启动

    apache server service不能成功启动的错误提示

Global site tag (gtag.js) - Google Analytics