嗅nginx, service nginx start (restart) 箇暸蝥5詨航炊:% @; e6 e3 |7 g" J P1 h
[emerg] 5048#0: bind() to x.x.x.x:80 failed (98: Address already in use)
. U( q% K0 p& {3 y7 x敺蝯虫箇
t0 t* }2 G6 p4 O# X[emerg] 5048#0: still could not bind()
* i( X% P/ H( y* { P9 }4 D8 a璈銋瘝9 O9 {2 e3 ]& f7 f' x4 U, z: R
雓"nginx嗡蝔摨甇其蝙 port 80" , 臭誑隞 netstat -pan | grep ":80" 8 V8 z8 E; s; \9 k3 u
fuser 80/tcp (fuser 隞文臭誑 http://nixgeek.com/finding-out-what-process-is-listening-on-a-port-under-linux.html)
/ U2 K K* u6 }: z8 ~, N亦航狐 port 80,雿nginx銋瘝(銝鈭嗥嗡)4 P+ ?7 a& i0 Z& A( I- k
% |1 r# v+ S( K, Y
* k+ K5 O2 ]( @# r* j7 i
敺 fuser -k 80/tcp 芷文 port 80 蝔摨(process)# {! {% W9 t7 }4 r$ p& K6 h3 z
嗅 service nginx restart ======> OK( [1 h" @; C" g% L+ Y
" O1 @! R# a j6 |5 R# \$ e+ _
|
|