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路径要与实际路径一致

相关推荐
充钱大佬1 天前
Python测试基础教程
python·log4j·apache
SelectDB技术团队2 天前
Agent 场景动态 JSON 性能拆解:Apache Doris 比 ClickHouse 快 7 倍、比 Elasticsearch 快 2 倍
数据库·clickhouse·elasticsearch·json·apache·日志分析·apache doris
DolphinScheduler社区2 天前
Apache DolphinScheduler 6 月治理优化,补齐调度运维全链路细节
大数据·运维·云原生·apache·海豚调度
SelectDB技术团队2 天前
AB 实验指标计算场景:Apache Doris / SelectDB 的技术能力、选型对比与实践
大数据·数据库·数据分析·apache·用户运营·apache doris·selectdb
weixin_440058313 天前
2026知识付费小程序:年费全包零抽成,录播题库全功能覆盖
小程序·apache·小程序开发
Apache Flink4 天前
从结构化到多模态:Apache Flink,多模态数据处理的流式底座
大数据·flink·apache
阿里云云原生5 天前
乌镇大赛丨5 万奖金已备好!RocketMQ 等你一起打造全新 AI-Native 管控平台
apache·rocketmq
摇滚侠6 天前
Apache Skywalking 实战 阅读笔记 第三章
笔记·apache·skywalking
摇滚侠7 天前
Apache Skywalking 实战 阅读笔记 第二章
笔记·apache·skywalking
摇滚侠8 天前
Apache Skywalking 实战 阅读笔记 第一章
笔记·apache·skywalking