首页 > Web开发 > 详细

apache报Permission denied: make_sock: could not bind to address 解决方案

时间:2015-05-14 14:26:36      阅读:341      评论:0      收藏:0      [点我收藏+]

启动Apache时报错信息:

[root@guest-4-205 httpd]# /etc/init.d/httpd start
Starting httpd: (13)Permission denied: make_sock: could not bind to address [::]:8000
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:8000
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]
查看selinux状态:

[root@guest-4-205 httpd]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   permissive
Mode from config file:          enforcing
Policy version:                     24
Policy from config file:        targeted


解决方案:
增加selinux中http的端口
semanage port -l|grep http #查看SELinux下http相关端口
semanage port -a -t http_port_t -p tcp 8000 #增加这个非标准端口即可

[root@guest-4-205 httpd]# /etc/init.d/httpd status     
httpd (pid  32061) is running...

本文出自 “信息安全||运维||云计算” 博客,请务必保留此出处http://infosec.blog.51cto.com/226250/1651214

apache报Permission denied: make_sock: could not bind to address 解决方案

原文:http://infosec.blog.51cto.com/226250/1651214

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!