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.

相关推荐
Norris Huang8 小时前
Icevue:为 Apache Iceberg REST Catalog 打造一个轻量、只读的可视化入口
apache
ajassi20001 天前
AI语音智能体开发日记(三)解决小程序配网中的蓝牙命名与MAC地址获取问题
ai·apache·ai编程
SelectDB技术团队1 天前
当 PostgreSQL 面临性能瓶颈:80TB 电商业务迁移至 Apache Doris 的实践思考
数据库·postgresql·apache
sbjdhjd1 天前
安全初级 | Upload 文件上传漏洞实操
android·经验分享·安全·网络安全·开源·php·apache
阿里云云原生2 天前
RocketMQ-A2A 创新论文入选 ACM FSE,定义 AI Agent 可靠协作新范式
apache·rocketmq
味悲4 天前
Apache HTTP 服务器配置
服务器·http·apache
万岳科技系统开发5 天前
AI赋能互联网医院小程序开启智慧医疗新时代
人工智能·小程序·apache
愤怒的苹果ext6 天前
Apache Superset 使用
apache·doris·bi·superset·ai bi
qq_185198696 天前
骆驼任务Flowable + Apache Camel 集成
spring·apache·flowable
ClickHouseDB6 天前
ClickHouse 十年开源,今非昔比!
clickhouse·开源·apache