当前位置: 代码迷 >> 综合 >> linux 端口冲突, bind: address already in use
  详细解决方案

linux 端口冲突, bind: address already in use

热度:40   发布时间:2024-01-25 10:27:13.0

经常有端口被占用了,但是进程已经被kill 了,还是提示:

listen tcp 0.0.0.0:8888 : bind: address already in use

解决如下:

iptables -A OUTPUT -p tcp --sport 8888 -j ACCEPT

iptables -A INPUT -p tcp --dport 8888 -j ACCEPT