apache的常见报错

文章目录


一、httpd -k install -n Apache输入后,提示拒绝访问怎么办

解决方案

  • 使用管理员身份打开CMD,再输入一次命令,就可以解决了

二、命令行输入:httpd -t 报错

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::8d1c:aa1c:7625:3c47. Set the 'ServerName' directive globally to suppress this message


解决方案

  • 在文件路径下 D:\server\apache\Apache\conf,找到httpd.conf ,以记事本打开方式打开编辑


三、httpd -k install -n Apache输入后,另外一种报错

(OS 10013)以一种访问权限不允许的方式做了一个访问套接字的尝试。 : AH00072: make_sock: could not bind to address [::]:80

(OS 10013)以一种访问权限不允许的方式做了一个访问套接字的尝试。 : AH00072: make_sock: could not bind to address 0.0.0.0:80

AH00451: no listening sockets available, shutting down

AH00015: Unable to open logs



解决方案

  • 为防止80端口与其它软件冲突,无法启动服务,将端口改为88:

  • 打开httpd.conf文件,在里面加上ServerName localhost:88这句话:

测试是否成功

  • 打开浏览器,输入访问http://localhost:88,若出现如下图所示界面,那么恭喜你Apache安装配置就完成了,此时apache服务器已经可以运行。

四、路径问题引起报错

解决方案

  • 需要修改httpd.conf里面配置的ServerRoot路径跟实际路径一致,此时我们打开conf文件夹,找到httpd.conf,修改ServerRoot的路径:
    -修改后

  • ServerRoot路径要与实际路径一致

相关推荐
中科三方35 分钟前
APP和小程序需要注册域名吗?(国科云)
小程序·apache
Debug_TheWorld2 天前
Apache Flink 深度解析:流处理引擎的核心原理与生产实践指南
大数据·flink·apache
Apache IoTDB3 天前
Apache IoTDB V2.0.2/V1.3.4 发布|新增表模型权限管理、UDF、嵌套查询功能
apache·iotdb
ashane13143 天前
Apache PDFBox
apache
三次握手四次挥手3 天前
基于Python+Pytest实现自动化测试(全栈实战指南)
开发语言·python·自动化·k8s·apache·pytest·代码规范
自由如风7094 天前
Apache Atlas构建安装(Linux)
linux·运维·apache
techdashen5 天前
性能比拼: Nginx vs Apache
运维·nginx·apache
w23617346015 天前
解析三大中间件:Nginx、Apache与Tomcat
nginx·中间件·tomcat·apache
Minyy115 天前
使用注解方式整合ssm时,启动tomcat扫描不到resource下面的xxxmapper.xml问题,解决方法
java·spring boot·spring·apache·mybatis
斯普信专业组9 天前
二进制和docker两种方式部署Apache pulsar(standalone)
docker·容器·apache