嗅nginx, service nginx start (restart) 箇暸蝥5詨航炊:
3 G& c, D$ _) q[emerg] 5048#0: bind() to x.x.x.x:80 failed (98: Address already in use)( ~% }2 t8 d* ], z% g( K8 B
敺蝯虫箇
0 m. x' i1 }/ S6 o# d1 Y7 J1 u3 B[emerg] 5048#0: still could not bind()
. T/ H( j4 F: V* y L6 h( c璈銋瘝
' N8 ]5 T, b6 x2 g B' v$ f雓"nginx嗡蝔摨甇其蝙 port 80" , 臭誑隞 netstat -pan | grep ":80" % n) L: x0 E; d
fuser 80/tcp (fuser 隞文臭誑 http://nixgeek.com/finding-out-what-process-is-listening-on-a-port-under-linux.html)
( X) _! L) ?5 y/ M8 v5 s亦航狐 port 80,雿nginx銋瘝(銝鈭嗥嗡)- l/ E6 B; E6 w/ e
& L* [+ L4 U' A7 h. e- B' s u
1 L; w+ F/ Q$ C敺 fuser -k 80/tcp 芷文 port 80 蝔摨(process): X5 l& k7 q; A1 F2 L4 m$ ?
嗅 service nginx restart ======> OK
3 G% M; J# g7 ?" P2 E) {$ P4 k
/ _, z! f# N' E7 J4 i; c* c |
|