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.

相关推荐
网络豆4 天前
Apache Maven 鸿蒙 PC 适配全记录:把 JVM 构建工具交付到 HiShell
maven·apache·harmonyos
网络豆4 天前
Apache Hive 鸿蒙 PC 适配全记录:以 Qt 客户端打通 HiveQL、监控与元数据访问
hive·apache·harmonyos
网络豆4 天前
Apache HBase 鸿蒙 PC 适配全记录:用 Qt 原生客户端打通 REST 管理与数据读写
apache·hbase·harmonyos
无巧不成书02185 天前
Apache Tomcat 9 下载全指南(Windows,Linux,macOS):版本选型、国内镜像、SHA-512 与 PGP 完整性校验
windows·tomcat·apache
Dream-Y.ocean5 天前
鸿蒙平台 Apache Tomcat 管理控制台适配实战:基于 Electron 壳方案的真实 HTTP 服务器实现
tomcat·apache·harmonyos
betazhou5 天前
Apache seatunel常用配置参数解析说明
apache·seatunnel
凤山老林6 天前
Spring Boot 集成 Apache Kafka Streams 构建流处理应用:状态存储、窗口聚合与
spring boot·kafka·apache
DolphinScheduler社区6 天前
Apache DolphinScheduler 8 月报:权限安全加固,调度补火上线,性能与稳定性持续提升
大数据·安全·开源·apache·任务调度·海豚调度
sbjdhjd7 天前
从 7 字符文件名拼接到二维数组取值:PHP 无参函数限制下的受控靶场复盘 | (7字符绕过)
网络·nginx·安全·网络安全·云计算·php·apache
Jackyzhe8 天前
Apache Iceberg Variant 类型:v3 半结构化数据不再「二选一」
apache