apache启动失败Failed to start The Apache HTTP Server.

目录

【错误收集】

【错误分析】

【解决办法】

【运行结果】


【错误收集】

● httpd.service - The Apache HTTP Server

Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)

Active: failed (Result: exit-code) since 四 2025-10-30 21:36:41 CST; 7s ago

Docs: man:httpd(8)

man:apachectl(8)

Process: 31063 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)

Main PID: 31063 (code=exited, status=1/FAILURE)

10月 30 21:36:41 localhost.localdomain systemd1: Starting The Apache HTTP Server...

10月 30 21:36:41 localhost.localdomain httpd31063: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set ...his message

10月 30 21:36:41 localhost.localdomain httpd31063: (98)Address already in use: AH00072: make_sock: could not bind to address :::80

10月 30 21:36:41 localhost.localdomain httpd31063: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80

10月 30 21:36:41 localhost.localdomain httpd31063: no listening sockets available, shutting down

10月 30 21:36:41 localhost.localdomain httpd31063: AH00015: Unable to open logs

10月 30 21:36:41 localhost.localdomain systemd1: httpd.service: main process exited, code=exited, status=1/FAILURE

10月 30 21:36:41 localhost.localdomain systemd1: Failed to start The Apache HTTP Server.

10月 30 21:36:41 localhost.localdomain systemd1: Unit httpd.service entered failed state.

10月 30 21:36:41 localhost.localdomain systemd1: httpd.service failed.

【错误分析】

80端口被占用了

【解决办法】

sudo netstat -tlnp | grep :80

杀死80端口进程

docker占用80端口了

停止运行容器

复制代码
docker stop 411013ae0e96

【运行结果】

启动apache

复制代码
sudo systemctl start httpd

systemctl status httpd.service

root@localhost tmp# systemctl status httpd.service

● httpd.service - The Apache HTTP Server

Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)

Active: active (running) since 四 2025-10-30 21:44:00 CST; 9s ago

Docs: man:httpd(8)

man:apachectl(8)

Main PID: 41074 (httpd)

Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"

Tasks: 6

Memory: 6.4M

CGroup: /system.slice/httpd.service

├─41074 /usr/sbin/httpd -DFOREGROUND

├─41076 /usr/sbin/httpd -DFOREGROUND

├─41077 /usr/sbin/httpd -DFOREGROUND

├─41078 /usr/sbin/httpd -DFOREGROUND

├─41079 /usr/sbin/httpd -DFOREGROUND

└─41080 /usr/sbin/httpd -DFOREGROUND

10月 30 21:44:00 localhost.localdomain systemd1: Starting The Apache HTTP Server...

10月 30 21:44:00 localhost.localdomain httpd41074: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set ...his message

10月 30 21:44:00 localhost.localdomain systemd1: Started The Apache HTTP Server.

Hint: Some lines were ellipsized, use -l to show in full.

相关推荐
充钱大佬1 天前
Python测试基础教程
python·log4j·apache
SelectDB技术团队1 天前
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
阿里云云原生4 天前
乌镇大赛丨5 万奖金已备好!RocketMQ 等你一起打造全新 AI-Native 管控平台
apache·rocketmq
摇滚侠6 天前
Apache Skywalking 实战 阅读笔记 第三章
笔记·apache·skywalking
摇滚侠7 天前
Apache Skywalking 实战 阅读笔记 第二章
笔记·apache·skywalking
摇滚侠8 天前
Apache Skywalking 实战 阅读笔记 第一章
笔记·apache·skywalking