嗅nginx, service nginx start (restart) 箇暸蝥5詨航炊:; }: N3 o4 o+ T: K# w0 D8 r+ z
[emerg] 5048#0: bind() to x.x.x.x:80 failed (98: Address already in use)3 I' e9 g1 U' ]1 h2 U
敺蝯虫箇
5 ], h; o. ]( W- X+ Y! P[emerg] 5048#0: still could not bind()
: b: C0 z) W: r# F" |璈銋瘝
% ~: N3 `" Q6 N# q) |+ C2 A( T! y雓"nginx嗡蝔摨甇其蝙 port 80" , 臭誑隞 netstat -pan | grep ":80"
# X0 l, K! {# T( Ofuser 80/tcp (fuser 隞文臭誑 http://nixgeek.com/finding-out-what-process-is-listening-on-a-port-under-linux.html)
/ j/ i3 d: K6 K, H4 n- N亦航狐 port 80,雿nginx銋瘝(銝鈭嗥嗡)- Z: i o3 C! n, X& R$ \' m
& }8 }% {/ P7 M& G! {* Z5 v
+ y5 I, t5 i) _- J3 U) {敺 fuser -k 80/tcp 芷文 port 80 蝔摨(process)
0 F& U9 W j* Z7 a6 i5 |+ T, }嗅 service nginx restart ======> OK4 K2 b, f/ {$ n' z I% h! r" g5 P
1 c( e9 D. X+ T9 o/ \( T% l |
|