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 systemd[1]: Starting The Apache HTTP Server...

10月 30 21:36:41 localhost.localdomain httpd[31063]: 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 httpd[31063]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80

10月 30 21:36:41 localhost.localdomain httpd[31063]: (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 httpd[31063]: no listening sockets available, shutting down

10月 30 21:36:41 localhost.localdomain httpd[31063]: AH00015: Unable to open logs

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

10月 30 21:36:41 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.

10月 30 21:36:41 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.

10月 30 21:36:41 localhost.localdomain systemd[1]: 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 systemd\[1\]: Starting The Apache HTTP Server... 10月 30 21:44:00 localhost.localdomain httpd\[41074\]: 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 systemd\[1\]: Started The Apache HTTP Server. Hint: Some lines were ellipsized, use -l to show in full.

相关推荐
一个天蝎座 白勺 程序猿21 小时前
Apache IoTDB(8):时间序列管理——从创建到分析的实战指南
数据库·apache·时序数据库·iotdb
SelectDB1 天前
更高效的数据处理解决方案:基于 MinIO 部署 Apache Doris 存算分离版本实践
数据库·数据分析·apache
Wang's Blog1 天前
Linux小课堂: Apache虚拟主机配置之基于IP与域名的服务器部署指南
linux·服务器·apache
Wang's Blog1 天前
Linux小课堂: Apache服务在CentOS上的安装与基础配置指南
linux·centos·apache
DolphinScheduler社区1 天前
小白指南:Apache DolphinScheduler 补数据功能实操演示
java·大数据·开源·apache·海豚调度·大数据工作流调度
北邮-吴怀玉1 天前
3.1.1.1 大数据方法论与实践指南-开源工具说明-Apache NiFi
大数据·开源·apache
Apache Flink2 天前
理想汽车基于 Hologres + Flink 构建万亿级车联网信号实时分析平台
阿里云·flink·apache
阿里云云原生2 天前
阿里云两大 AI 原生实践荣获 2025 年度 OSCAR “开源+”典型案例
apache·rocketmq
wudl55662 天前
Apache Flink Keyed State 详解之一
算法·flink·apache