找回密码
 注册
查看: 3839|回复: 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
& X1 I5 r( t+ n
& ~, C; ?0 h. J1 \6 Y' ?Nov  3 22:33:54 controller systemd: Starting The Apache HTTP Server...) G7 `7 s: W. [* @% o! v* w
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 message9 C0 c. X) o) z$ H4 t
Nov  3 22:33:54 controller httpd: (13)Permission denied: AH00072: make_sock: could not bind to address [::]:5000
( U$ b: q2 L7 J2 q! I) ~6 lNov  3 22:33:54 controller httpd: (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:5000
, A" d6 H5 ~2 b2 _Nov  3 22:33:54 controller httpd: no listening sockets available, shutting down: `* W% S5 `) B+ t1 m" M5 Z. y
Nov  3 22:33:54 controller httpd: AH00015: Unable to open logs' {: J3 n! J' p# Z. V0 Y- l
Nov  3 22:33:54 controller systemd: httpd.service: main process exited, code=exited, status=1/FAILURE
! F0 i4 N* v" W. nNov  3 22:33:54 controller kill: kill: cannot find process ""
8 K2 i2 c9 ^4 BNov  3 22:33:54 controller systemd: httpd.service: control process exited, code=exited status=16 j) Q% w4 \, v! r+ ?, l
Nov  3 22:33:54 controller systemd: Failed to start The Apache HTTP Server.
3 Z. E& v0 U) r$ w7 w& C; uNov  3 22:33:54 controller systemd: Unit httpd.service entered failed state.& ~- @& X, W0 J2 n; ?
Nov  3 22:33:54 controller systemd: httpd.service failed.
: G" s6 ~4 G  c) G' M9 Q  HNov  3 22:34:43 controller systemd: Starting The Apache HTTP Server...
! c' z: W$ ]( A0 v$ N3 h/ aNov  3 22:34:43 controller httpd: (13)Permission denied: AH00072: make_sock: could not bind to address [::]:5000
; H% u4 @" G6 w$ a) C- k3 YNov  3 22:34:43 controller httpd: (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:5000
6 M! B3 i$ R2 f2 |Nov  3 22:34:43 controller httpd: no listening sockets available, shutting down
! M0 b8 M6 M- G0 p8 L8 `4 R/ ?% f# p* r0 Q
  f3 d& O+ ?5 X
原因是selinux并未关闭,检查关闭selinux 即可
# X: B( @$ h+ c3 n$ b#getenforce
5 c: G$ P& w* Y7 A# l2 g: j2 L% m9 G5 n
Enforcing
4 C+ r2 ^0 s, a1 W7 `
' V; [: {  N1 P; B' u, F( b1 b1 ySElinux未禁用。' v0 ?4 t9 C! J( k2 U
6 b& j, j# x/ d5 [/ [6 D
1、临时禁用SELinux:# c9 B0 ~+ ]6 x! z
# setenforce 0
% c5 H4 p6 u2 l( U: u这样重启服务器之后,还是会启动SELinux;" q" Z4 T6 V* {) o

9 ~5 q* v" s; h( K) f/ Q备注:setenforce 1 临时启用SELinux6 P$ o5 j4 J) x+ O* Z/ e0 H# N

4 a, T6 d! d7 k$ P, Y2、临时禁止后还是会启动,有需要的可以永久禁止。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 02:48 , Processed in 0.019603 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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