经常有端口被占用了,但是进程已经被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
本文介绍了一种解决端口被占用但进程已kill的问题的方法,通过iptables规则设置,允许特定端口的输入输出流量,确保服务正常启动。
经常有端口被占用了,但是进程已经被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
1361
8511
3935
1168

被折叠的 条评论
为什么被折叠?