嗅nginx, service nginx start (restart) 箇暸蝥5詨航炊:1 w9 G, r9 ?# G, l8 T' A y! J) \
[emerg] 5048#0: bind() to x.x.x.x:80 failed (98: Address already in use)
; C5 s" Q( V/ d# Y# j敺蝯虫箇
/ p# I' f, `0 I. L0 c[emerg] 5048#0: still could not bind(). S5 D0 k; A# U
璈銋瘝. ]1 t$ d! M+ M2 Q5 @) [1 X1 e& Q
雓"nginx嗡蝔摨甇其蝙 port 80" , 臭誑隞 netstat -pan | grep ":80"
9 n7 U% J9 y) K/ S1 w( O2 j( ]9 e9 j* wfuser 80/tcp (fuser 隞文臭誑 http://nixgeek.com/finding-out-what-process-is-listening-on-a-port-under-linux.html)
- u( x! M& C( g7 e" f) o亦航狐 port 80,雿nginx銋瘝(銝鈭嗥嗡)& o6 O& `- g* P9 U9 E5 {: x! w9 H0 C9 i
/ A7 \3 J7 l: G, I7 c% ~! n7 g" R# E, p. |
敺 fuser -k 80/tcp 芷文 port 80 蝔摨(process)# s5 r4 m2 ?) g9 L
嗅 service nginx restart ======> OK8 p% O o, y0 c1 p+ H# d" K
' n" |3 _. Y9 y/ R* V& ~ |
|