嗅nginx, service nginx start (restart) 箇暸蝥5詨航炊:
: h0 v1 A( F9 t0 r5 U8 a1 R9 G[emerg] 5048#0: bind() to x.x.x.x:80 failed (98: Address already in use)3 N5 |4 L# D2 m# t8 d. |$ r) x
敺蝯虫箇
; _6 P, I$ q) f+ y# _8 K5 A# A9 v[emerg] 5048#0: still could not bind(). S) G# y; m: C. L1 w- b
璈銋瘝8 [6 }2 k; @+ }( I W
雓"nginx嗡蝔摨甇其蝙 port 80" , 臭誑隞 netstat -pan | grep ":80" ' j, o% k' a# `' |* q) v5 M/ p* p+ [2 @
fuser 80/tcp (fuser 隞文臭誑 http://nixgeek.com/finding-out-what-process-is-listening-on-a-port-under-linux.html). B6 W+ |8 n$ h' k% }5 n! s
亦航狐 port 80,雿nginx銋瘝(銝鈭嗥嗡)! k6 w8 M* v9 a! a9 Z# C
4 H& o: D. X1 ]3 B9 V& J2 K- o# V0 P( G6 [& c( O6 y/ o; f7 X3 i
敺 fuser -k 80/tcp 芷文 port 80 蝔摨(process)
' @: _ K! A$ P6 ]5 ?0 u8 \4 p嗅 service nginx restart ======> OK5 d, u4 h) t$ r
- q% r5 M0 I9 c1 W% M) O: r5 C
|
|