解决方案:
进入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”就行了。
相关推荐
启动 httpd:(13)Permission denied: httpd: could not open error log file /home/wwwroot/jb51.net/logs/error_log. Unable to open logs [失败] 三、问题原因 因为新安装的系统,所以SELinux默认是开启状态,...
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
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
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组成的安装包适合初学者使用。...
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_...
simple httpd server hello world
“httpd未被被识别的服务”的解决办法.docx
/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 is the main program for the Apache hypertext transfer protocol (HTTP) server
/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 -...
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 : ...
harmonyos源代码 ...将其中的//applications/sample/wifi-iot/app替换为//third_party/httpd:app; 在openharmony源码的顶层目录,执行python build.py wifiiot; HTTP 服务器特性 目前已测试通过的
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 ...
这是要求码头工人用法# 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 ...
这是的的Git存储库(不要与httpd上游提供的任何官方httpd映像混淆)。 有关如何使用此Docker映像的完整自述文件以及有关贡献和问题的信息,请参阅。 的是在生成/维护的,尤其是。 看到此处合并的更改尚未出现在...
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 service不能成功启动的错误提示
svn的安装,使用http访问svn资源库,使用https访问svn资源库