嗅nginx, service nginx start (restart) 箇暸蝥5詨航炊:
" T& v; A, _7 k, V+ g[emerg] 5048#0: bind() to x.x.x.x:80 failed (98: Address already in use)
) I. ?8 a+ M* j3 L敺蝯虫箇
% C* [; J7 \( S[emerg] 5048#0: still could not bind()
2 p) M4 ~& j" N" E' Z: }* t1 H& f璈銋瘝
' g& o; K3 q/ t5 X' S雓"nginx嗡蝔摨甇其蝙 port 80" , 臭誑隞 netstat -pan | grep ":80" ( `& r9 a8 V" @( q4 i
fuser 80/tcp (fuser 隞文臭誑 http://nixgeek.com/finding-out-what-process-is-listening-on-a-port-under-linux.html)+ b1 i; f6 Z! L6 ^4 |
亦航狐 port 80,雿nginx銋瘝(銝鈭嗥嗡)% q# O9 r, J6 v
+ m6 j( r* s. J4 @, \3 I
3 L `: m4 f# ]5 }" H' K$ O2 E( l敺 fuser -k 80/tcp 芷文 port 80 蝔摨(process)
3 ]3 I* I1 ~* W- P0 Y嗅 service nginx restart ======> OK9 R9 W" `- _9 b
( B. A. F+ x5 f* L! m9 K3 `6 i |
|