嗅nginx, service nginx start (restart) 箇暸蝥5詨航炊:6 i( o S7 u# G- @% ~
[emerg] 5048#0: bind() to x.x.x.x:80 failed (98: Address already in use)
7 P$ O5 V0 e f0 M敺蝯虫箇% q) _; N; W8 d8 h" g; d8 k% }
[emerg] 5048#0: still could not bind()" a9 Z Y8 o, w/ y6 S" |$ m
璈銋瘝# I7 P, N- g0 j9 M3 {
雓"nginx嗡蝔摨甇其蝙 port 80" , 臭誑隞 netstat -pan | grep ":80" . V2 m% x/ A6 m0 m" J
fuser 80/tcp (fuser 隞文臭誑 http://nixgeek.com/finding-out-what-process-is-listening-on-a-port-under-linux.html)/ G8 R4 t+ M4 G4 n
亦航狐 port 80,雿nginx銋瘝(銝鈭嗥嗡). t# e \/ `# L7 C) ^
2 W9 D% ], d4 d c1 W! p0 N7 N8 c! D1 \1 ]1 x( r
敺 fuser -k 80/tcp 芷文 port 80 蝔摨(process)- }5 s+ E" g u, H4 b
嗅 service nginx restart ======> OK
0 n4 S" g" T5 J* q5 J, L& V
* L6 H% A2 [% C9 ]' B+ z |
|