找回密码
 注册
查看: 3842|回复: 0

httpd: Permission denied: could not bind to address [::]:5000

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2018-11-3 22:38:26 | 显示全部楼层 |阅读模式
controller httpd: (13)Permission denied: AH00072: make_sock: could not bind to address [::]:5000, ?( r) t6 k3 y, w: x" {3 c4 ^1 Y

0 k! Z* S; A! jNov  3 22:33:54 controller systemd: Starting The Apache HTTP Server...$ E  e+ O; W. x+ t
Nov  3 22:33:54 controller httpd: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.8.65. Set the 'ServerName' directive globally to suppress this message; X9 P& }# s' b9 {% q# Z  L
Nov  3 22:33:54 controller httpd: (13)Permission denied: AH00072: make_sock: could not bind to address [::]:5000
) k0 }. l4 A) D; Z. QNov  3 22:33:54 controller httpd: (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:50005 k, @& ?# A& g' L; s( }- a3 e
Nov  3 22:33:54 controller httpd: no listening sockets available, shutting down- q8 F8 x1 ~+ g
Nov  3 22:33:54 controller httpd: AH00015: Unable to open logs+ H8 D% u$ E) c3 E9 J+ M4 E- X/ T
Nov  3 22:33:54 controller systemd: httpd.service: main process exited, code=exited, status=1/FAILURE
  o; A+ {0 w  uNov  3 22:33:54 controller kill: kill: cannot find process "": P) H, F) S# {
Nov  3 22:33:54 controller systemd: httpd.service: control process exited, code=exited status=1
  o3 F4 h" z  INov  3 22:33:54 controller systemd: Failed to start The Apache HTTP Server., T) \6 Q+ i) B# D9 c
Nov  3 22:33:54 controller systemd: Unit httpd.service entered failed state.1 |; H/ Y3 h+ S1 n& S4 I
Nov  3 22:33:54 controller systemd: httpd.service failed.7 H0 j; k- x4 q- L
Nov  3 22:34:43 controller systemd: Starting The Apache HTTP Server...+ W: C5 ^4 x( p: o# Y& w6 O
Nov  3 22:34:43 controller httpd: (13)Permission denied: AH00072: make_sock: could not bind to address [::]:5000
0 E) b7 q4 h' r4 v+ G& LNov  3 22:34:43 controller httpd: (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:5000
  t/ a8 t9 d- e2 u9 l5 MNov  3 22:34:43 controller httpd: no listening sockets available, shutting down2 i" g) O8 |2 P, S/ v9 l9 p# e+ k  T
4 L6 m. k7 Q5 }3 y
% \/ Y" Z$ L/ b" M: Q! s
原因是selinux并未关闭,检查关闭selinux 即可
' I5 y$ o# H; ]  m2 i#getenforce
" ?9 U1 x% ?) O$ D* x: q9 q# S, W- w) _6 l( `) L
Enforcing  Q% k9 I3 w  E: a
! ^" H7 d' z  y, N2 H) L
SElinux未禁用。
* e0 A# g; j, ?- C, X  s" _
& A8 E' Q5 m, K$ _, x2 L' `1、临时禁用SELinux:9 b1 Z* b' h$ x& e9 F5 X7 F
# setenforce 04 g' {' H( E! t
这样重启服务器之后,还是会启动SELinux;
$ U, ]9 H( U/ v! l9 |9 }" K4 k: O) q: S* j
备注:setenforce 1 临时启用SELinux
- x, R6 F6 }4 \( f3 g. u4 `
6 W+ F) J' R* D/ Y: \2、临时禁止后还是会启动,有需要的可以永久禁止。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 04:08 , Processed in 0.018508 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表