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

相关推荐
Fireworkitte1 小时前
org.apache.kafka.clients 和 org.springframework.kafka 的区别
kafka·apache
wei_shuo6 小时前
时序数据库 Apache IoTDB:从边缘到云端Apache IoTDB 全链路数据管理能力、部署流程与安全特性解读
物联网·apache·时序数据库·iotdb
Riu_Peter21 小时前
【记录】Apache SeaTunnel 系统监控信息
apache
喂完待续1 天前
【Tech Arch】Hive技术解析:大数据仓库的SQL桥梁
大数据·数据仓库·hive·hadoop·sql·apache
SelectDB1 天前
5000+ 中大型企业首选的 Doris,在稳定性的提升上究竟花了多大的功夫?
大数据·数据库·apache
喂完待续2 天前
Apache Hudi:数据湖的实时革命
大数据·数据仓库·分布式·架构·apache·数据库架构
数据爬坡ing3 天前
过程设计工具深度解析-软件工程之详细设计(补充篇)
大数据·数据结构·算法·apache·软件工程·软件构建·设计语言
运维行者_3 天前
使用Applications Manager进行 Apache Solr 监控
运维·网络·数据库·网络安全·云计算·apache·solr
皓空揽月3 天前
php+apache+nginx 更换域名
nginx·php·apache
求知若渴,虚心若愚。5 天前
高可用实战之Nginx + Apache篇
运维·nginx·apache