嗅nginx, service nginx start (restart) 箇暸蝥5詨航炊:2 d1 O g$ @ I' }4 [% e+ N
[emerg] 5048#0: bind() to x.x.x.x:80 failed (98: Address already in use)1 U1 ]: k% O0 F, X" M
敺蝯虫箇
6 M) U, H& I( Y+ Z; j3 m[emerg] 5048#0: still could not bind()
3 K3 T) v, R3 }+ G# ~璈銋瘝
# X' f Y5 \$ J1 O+ n! l4 }% J雓"nginx嗡蝔摨甇其蝙 port 80" , 臭誑隞 netstat -pan | grep ":80" ( Y7 ]; s7 a) X+ H6 O/ Y2 G6 D7 Q6 c
fuser 80/tcp (fuser 隞文臭誑 http://nixgeek.com/finding-out-what-process-is-listening-on-a-port-under-linux.html)
6 `9 F$ b' v" d- a亦航狐 port 80,雿nginx銋瘝(銝鈭嗥嗡)3 I+ P- v! D$ c( ]/ S; |
, @- ?1 c4 [. h6 G& N% ~$ D* X
* f$ _' V E7 n' q敺 fuser -k 80/tcp 芷文 port 80 蝔摨(process)
0 w. ^# W. c8 \嗅 service nginx restart ======> OK
; a& \, @7 h/ p E/ L% c
* R, J3 S1 p) U4 y8 R/ P6 u |
|