Centos7.5启动Apache Web 服务报错AH00072: make_sock: could not bind to address [::]:9096
2023-09-14 09:16:01 时间
环境:
本地华为桌面云服务器环境
Centos 7.5
问题描述:
启动Apache Web 服务报错AH00072: make_sock: could not bind to address [::]:9096
systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 五 2022-02-18 11:04:04 CST; 2h 13min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 13393 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 13391 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 13391 (code=exited, status=1/FAILURE)
2月 18 11:04:03 localhost.localdomain httpd[13391]: (13)Permission denied: AH00072: make_sock: could not bind to address [::]:9096
2月 18 11:04:03 localhost.localdomain httpd[13391]: (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:9096
2月 18 11:04:03 localhost.localdomain httpd[13391]: no listening sockets available, shutting down
2月 18 11:04:03 localhost.localdomain httpd[13391]: AH00015: Unable to open logs
2月 18 11:04:03 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
2月 18 11:04:04 localhost.localdomain kill[13393]: kill: cannot find process ""
2月 18 11:04:04 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
2月 18 11:04:04 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
2月 18 11:04:04 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
2月 18 11:04:04 localhost.localdomain systemd[1]: httpd.service failed.
解决方案:
本机selinux而导致的错误,调整selinux状态
1.修改配置文件
[root@localhost ~]# vim /etc/selinux/config
7 SELINUX=enforcing #把enforcing改为disabled
2.重启服务器
[root@localhost ~]# reboot
查看状态
#systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since 五 2022-02-18 13:21:45 CST; 4s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 13393 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Main PID: 55869 (httpd)
Status: "Processing requests..."
Tasks: 6
CGroup: /system.slice/httpd.service
├─55869 /usr/sbin/httpd -DFOREGROUND
├─55871 /usr/sbin/httpd -DFOREGROUND
├─55872 /usr/sbin/httpd -DFOREGROUND
├─55875 /usr/sbin/httpd -DFOREGROUND
├─55876 /usr/sbin/httpd -DFOREGROUND
└─55877 /usr/sbin/httpd -DFOREGROUND
2月 18 13:21:45 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
2月 18 13:21:45 localhost.localdomain httpd[55869]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ... message
2月 18 13:21:45 localhost.localdomain systemd[1]: Started The Apache HTTP Server.
Hint: Some lines were ellipsized, use -l to show in full.
相关文章
- sql2java-excel(二):基于apache poi实现数据库表的导出的spring web支持
- web服务:Nginx和Apache的区别
- 教你如何在centos 7 安装卸载apache(httpd)服务的方法
- Apache在Commons Compress简介和简单应用详解编程语言
- 服务Linux下访问Web服务的指南(linux访问web)
- 器步步俱升:手把手教你配置Linux Web服务器(linux配置web服务)
- Linux下部署Web项目:简单又高效(linux下部署web项目)
- 应用Linux服务器:打开Web应用的大门(linux服务器web)
- 器重启Web服务器:Linux下的快速操作(linux重启web服务)
- 器Linux快速启动Web服务器的指南(linux启动web服务)
- 解决多种web问题Linux下Apache解决多种Web问题:让你的网络更安全可靠(linux下apache)
- Redis Web UI:实现管理更轻松便捷(redis web ui)
- MSSQL管理Web,让您轻松上手(mssql管理web)
- 器Linux下搭建简易Web服务器(linux下web服务)
- 优化Web项目强力支持Redis缓存(web项目redis缓存)
- 新技术Web环境下Redis配置实战分享(web配置redis)
- Web端快速读取Redis数据的实现方案(web读取redis数据)
- 从Web端查看Redis的实时状态(web查看redis)
- Oracle Web服务上的开放端口(oracle web端口)
- 应用基于Redis的Web应用运行稳定性提升(redis运行web)
- Apache设置虚拟WEB
- linux下安装apache与php;Apache+PHP+MySQL配置攻略
- 让Apache支持cgi、SSI、shtml的配置方法
- apache服务器全局配置详解(全)