嗅nginx, service nginx start (restart) 箇暸蝥5詨航炊:1 Y2 g( ]4 Y7 I- c) B4 Y" W
[emerg] 5048#0: bind() to x.x.x.x:80 failed (98: Address already in use)
9 L* y4 Q9 Q. t& O7 Y, F敺蝯虫箇" V$ f6 q* f. @+ o
[emerg] 5048#0: still could not bind()
' I/ E' Z/ Z' {- d3 z' R$ t璈銋瘝
% B5 P$ W; O( w5 c0 L6 s雓"nginx嗡蝔摨甇其蝙 port 80" , 臭誑隞 netstat -pan | grep ":80" % N( A" n+ W7 R7 \) y/ L
fuser 80/tcp (fuser 隞文臭誑 http://nixgeek.com/finding-out-what-process-is-listening-on-a-port-under-linux.html)- h r( s8 x1 s- x4 [! D5 ?- {
亦航狐 port 80,雿nginx銋瘝(銝鈭嗥嗡)0 B* w' _6 n1 T% ]* [
% r# p7 v2 V, g; s6 J
6 H, d- u( o# r' B
敺 fuser -k 80/tcp 芷文 port 80 蝔摨(process)
2 L! K" T7 Q9 x9 q' w O5 U+ Y嗅 service nginx restart ======> OK
7 c- M6 V# r& x" @+ ?4 s' u
- N7 G f* h3 r( [# _- S |
|