52AV手機A片王|52AV.ONE

標題: [emerg] 5048#0: bind() to x.x.x.x:80 failed (98: Address already in use) [打印本頁]

作者: IT_man    時間: 2016-4-6 12:23
標題: [emerg] 5048#0: bind() to x.x.x.x:80 failed (98: Address already in use)
當啟動nginx時, service nginx start (restart) 出現連續5個相同錯誤:
; O3 _5 c1 _* ?[emerg] 5048#0: bind() to x.x.x.x:80 failed (98: Address already in use)
1 [( A5 a( m* H7 C) X7 f最後再給你出現
4 L9 n$ w  @5 m) |5 R: s5 ~( x; X[emerg] 5048#0: still could not bind()1 V. e4 L9 b, _0 H0 J) g, y! a
重開機也沒用; c1 G+ Q/ J! l  D+ ~
這個意謂"nginx或其他程序正在使用 port 80" , 可以指令 netstat -pan | grep ":80" 或 , [2 x: B( f6 Q# Q4 }3 a) M
fuser 80/tcp  (fuser 指令可以參考 http://nixgeek.com/finding-out-what-process-is-listening-on-a-port-under-linux.html)
% W  y* h: e9 t( O9 [查看是誰占用 port 80,但nginx也沒占用(啟動不了當然不會占用)6 z1 y: _6 ~. x8 [# y5 z5 _& d
+ L" B* R6 f- }6 J2 e' _
. b9 t# J3 U1 E% f8 A
最後  fuser -k 80/tcp  刪除占用 port 80 的的所有程序(process)
/ w8 r" t) c; g' q8 `; E& ]然後 service nginx restart  ======> OK1 ?) ^- G2 I% q# D

9 A( P8 N8 c" _, u# d* R7 x




歡迎光臨 52AV手機A片王|52AV.ONE (https://www.52av23.xyz/) Powered by Discuz! X3.2