嗅nginx, service nginx start (restart) 箇暸蝥5詨航炊:
4 X, s$ D/ z" U4 n R[emerg] 5048#0: bind() to x.x.x.x:80 failed (98: Address already in use)
* g. v5 C0 W- s: p: e3 W; C6 j敺蝯虫箇
; t9 F: o4 x) ^5 l( i H. c[emerg] 5048#0: still could not bind()
: v9 l5 q i8 o; u, U璈銋瘝
& H y; s! u. z雓"nginx嗡蝔摨甇其蝙 port 80" , 臭誑隞 netstat -pan | grep ":80" 7 C; q' S" I; Y; R& e3 V6 @
fuser 80/tcp (fuser 隞文臭誑 http://nixgeek.com/finding-out-what-process-is-listening-on-a-port-under-linux.html)8 @' A$ [/ w: }% j. {, m
亦航狐 port 80,雿nginx銋瘝(銝鈭嗥嗡)
! y) n2 p: d, o( p# c" `% V
, i) V+ b. M/ O$ H# p- s0 K3 G' l4 w8 J% N9 W
敺 fuser -k 80/tcp 芷文 port 80 蝔摨(process)
. W0 n- N+ w- O4 C8 x! w4 [/ X嗅 service nginx restart ======> OK
. R0 X* V3 D ~" |. U
( {1 X! I0 W6 s$ L, D |
|