嗅nginx, service nginx start (restart) 箇暸蝥5詨航炊:
% z+ }/ y; |5 u[emerg] 5048#0: bind() to x.x.x.x:80 failed (98: Address already in use)
* R: D8 ~2 [7 q' S% m: |敺蝯虫箇4 }1 [ W( b& L w
[emerg] 5048#0: still could not bind()) Q- X' E6 G$ B$ w: t I5 ^
璈銋瘝
% J( l: X; H( ?$ I# l0 f, P2 h雓"nginx嗡蝔摨甇其蝙 port 80" , 臭誑隞 netstat -pan | grep ":80" ' }. O! s' J% c0 I+ I8 |9 _
fuser 80/tcp (fuser 隞文臭誑 http://nixgeek.com/finding-out-what-process-is-listening-on-a-port-under-linux.html)
" Y, @ J# K! D" F亦航狐 port 80,雿nginx銋瘝(銝鈭嗥嗡)
1 Y( C% A7 _1 S8 ]& t+ k& o1 x" ?
5 w6 z0 X1 u n. C# L, k& M5 g- Q- K) J# e* {, z$ A* i5 [. F5 x
敺 fuser -k 80/tcp 芷文 port 80 蝔摨(process)1 |/ ?! B; G& D5 _
嗅 service nginx restart ======> OK: w* V9 A) W. V- T6 v$ y
5 \$ I9 ^3 a/ @0 [& k& f |
|