嗅nginx, service nginx start (restart) 箇暸蝥5詨航炊:5 [* R- x* x3 ?) |; Z
[emerg] 5048#0: bind() to x.x.x.x:80 failed (98: Address already in use)9 C0 ?! z. x0 r- v
敺蝯虫箇8 [; V$ d7 H2 W" V' S6 n7 c4 R
[emerg] 5048#0: still could not bind()! H1 z: ]' O3 t% |, g9 c
璈銋瘝 c3 L5 J( _4 a/ d
雓"nginx嗡蝔摨甇其蝙 port 80" , 臭誑隞 netstat -pan | grep ":80"
V5 o4 M4 `9 C7 ?fuser 80/tcp (fuser 隞文臭誑 http://nixgeek.com/finding-out-what-process-is-listening-on-a-port-under-linux.html)
" ~! t# k2 W* u% z! y+ K0 N亦航狐 port 80,雿nginx銋瘝(銝鈭嗥嗡)
$ R: @0 `/ V: m, G# u# A
" a9 K6 s8 U# k$ a- L' D6 ~- c8 a' p ?% s1 q" C- O) {
敺 fuser -k 80/tcp 芷文 port 80 蝔摨(process)
: W( ]2 |5 o3 b( a嗅 service nginx restart ======> OK/ L7 i( |3 s5 H" k, o$ r
0 a" k# e2 R$ {
|
|