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.

相关推荐
SelectDB6 小时前
驾驭 CPU 与编译器:Apache Doris 实现极致性能的底层逻辑
运维·数据库·apache
鲨莎分不晴17 小时前
大数据的“大动脉”:深度剖析 Apache Kafka 的高性能之道
大数据·kafka·apache
oMcLin18 小时前
如何在 RHEL 7 上通过配置 Apache Kafka 集群的分区机制,提升消息传递系统的吞吐量与数据流处理能力?
分布式·kafka·apache
鲨莎分不晴18 小时前
给 Hadoop 插上 SQL 的翅膀:Apache Hive 架构与实战全解
hadoop·sql·apache
oMcLin18 小时前
如何在CentOS 8上配置并调优Apache Spark集群,确保大规模数据分析任务的高效运行与资源分配?
spark·centos·apache
SelectDB1 天前
从 Greenplum 到 Doris:集群缩减 2/3、年省数百万,度小满构建超大规模数据分析平台经验
数据库·数据分析·apache
それども2 天前
Apache POI XSSFWorkbook 和 SXSSFWorkbook 的区别
apache·excel
xifangge20253 天前
PHP 错误日志在哪里看?Apache / Nginx / PHP-FPM 一次讲清
nginx·php·apache
潇凝子潇3 天前
Apache Kafka 跨集群复制实现方案
分布式·kafka·apache
大厂技术总监下海3 天前
数据湖加速、实时数仓、统一查询层:Apache Doris 如何成为现代数据架构的“高性能中枢”?
大数据·数据库·算法·apache