52AV手機A片王|52AV.ONE
標題:
[emerg] 5048#0: bind() to x.x.x.x:80 failed (98: Address already in use)
[打印本頁]
作者:
IT_man
時間:
2016-4-6 12:23
標題:
[emerg] 5048#0: bind() to x.x.x.x:80 failed (98: Address already in use)
當啟動nginx時, service nginx start (restart) 出現連續5個相同錯誤:
! v6 I5 N! ^( w/ m* C' e
[emerg] 5048#0: bind() to x.x.x.x:80 failed (98: Address already in use)
9 `8 C) T6 I) m, p [
最後再給你出現
, ?) H$ R7 {7 T9 t6 Y8 S, s
[emerg] 5048#0: still could not bind()
7 Y Q0 `; y4 x6 U5 u4 V2 j% K
重開機也沒用
3 \; C) f& ] ]- [0 j3 y c4 t/ c
這個意謂"nginx或其他程序正在使用 port 80" , 可以指令
netstat -pan | grep ":80" 或
# x" s$ t, S" z: m
fuser
80/tcp (fuser 指令可以參考
http://nixgeek.com/finding-out-what-process-is-listening-on-a-port-under-linux.html
)
, u- m' j/ r1 _" R; x$ k9 v. N8 y
查看是誰占用 port 80,但nginx也沒占用(啟動不了當然不會占用)
! K- W4 _! c& H, U8 w' c
9 \9 L& P$ C3 N( W* D, Y- ?& [; `5 V
! B/ G6 X! O9 A: G% R/ {/ c
最後 f
user -k 80/tcp 刪除占用 port 80 的的所有程序(process)
/ v1 C: m9 r4 Z% k
然後 service nginx restart ======> OK
[7 B- Y# I6 j% C
* m4 f5 i, k5 s9 U0 }$ a6 Z% e
歡迎光臨 52AV手機A片王|52AV.ONE (https://www.52av.one/)
Powered by Discuz! X3.2