嗅nginx, service nginx start (restart) 箇暸蝥5詨航炊:9 E4 P4 J P# r& g4 p
[emerg] 5048#0: bind() to x.x.x.x:80 failed (98: Address already in use)* M# }6 U* v) _% g* V2 H0 O- ]
敺蝯虫箇" p6 N9 @+ t c# Z
[emerg] 5048#0: still could not bind()0 u9 g+ z3 Q4 z- u; y, s
璈銋瘝1 ^5 u, Y. I0 F% U" C6 e
雓"nginx嗡蝔摨甇其蝙 port 80" , 臭誑隞 netstat -pan | grep ":80"
* P( F- {: W, L! g7 N+ f! ^. ^) pfuser 80/tcp (fuser 隞文臭誑 http://nixgeek.com/finding-out-what-process-is-listening-on-a-port-under-linux.html)
& W. N, x# c. v3 d2 {; t亦航狐 port 80,雿nginx銋瘝(銝鈭嗥嗡)
9 A$ l$ l. ^2 C( I! S0 v8 \0 J! j2 u
$ q2 D; W9 g6 W) j8 C9 W4 k$ _5 R0 Y; P& l$ @
敺 fuser -k 80/tcp 芷文 port 80 蝔摨(process)
Q6 I b- _, w' t2 l嗅 service nginx restart ======> OK
% W, S$ {9 T& D/ S2 T* A( a& m) b; x/ N
|
|