嗅nginx, service nginx start (restart) 箇暸蝥5詨航炊:
( E2 E, n7 E" M) L+ t2 R; B[emerg] 5048#0: bind() to x.x.x.x:80 failed (98: Address already in use)
. \' ]3 u `9 y! x敺蝯虫箇 \3 r) G% u3 N1 S! s2 h) @# t/ b) F
[emerg] 5048#0: still could not bind(). X& m( W: a. R' r& x0 l
璈銋瘝2 W. J; B% R4 O& y
雓"nginx嗡蝔摨甇其蝙 port 80" , 臭誑隞 netstat -pan | grep ":80"
; D0 M2 s [9 _* d2 N" afuser 80/tcp (fuser 隞文臭誑 http://nixgeek.com/finding-out-what-process-is-listening-on-a-port-under-linux.html)% g2 G' U! p0 j! o
亦航狐 port 80,雿nginx銋瘝(銝鈭嗥嗡)
" j4 w* Q m- q; C4 P9 _# T/ ~) {' v* u* t
0 i/ T; B, W' F6 c" R! z! ]' [敺 fuser -k 80/tcp 芷文 port 80 蝔摨(process)
* I- h# b6 q7 J嗅 service nginx restart ======> OK4 H4 C% Z' S, @! t! K
# a' z! R: n: ?3 b# v* ~/ h |
|