解决docker容器端口占用,启动失败
Error starting userland proxy: listen tcp4 0.0.0.0:2181: bind: address already in use解决:1.查看占用的端口的进程netstat -tanlp[root@iZa2hqrq6ehf4jZ zookeeper-tanhua]# netstat -tanlpActive Internet connections (se
·
Error starting userland proxy: listen tcp4 0.0.0.0:2181: bind: address already in use
解决:
1.查看占用的端口的进程
netstat -tanlp
[root@iZa2hqrq6ehf4jZ zookeeper-tanhua]# netstat -tanlp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:2181 0.0.0.0:* LISTEN 18161/java
tcp 0 0 0.0.0.0:27017 0.0.0.0:* LISTEN 11466/docker-proxy
tcp 0 0 0.0.0.0:9066 0.0.0.0:* LISTEN 32734/java
tcp 0 0 0.0.0.0:6379 0.0.0.0:* LISTEN 21471/docker-proxy
tcp 0 0 0.0.0.0:40491 0.0.0.0:* LISTEN 32734/java
tcp 0 0 0.0.0.0:37132 0.0.0.0:* LISTEN 18161/java
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 29421/docker-proxy
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 16328/docker-proxy
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 28879/sshd
tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN 15260/python
tcp 0 0 0.0.0.0:10010 0.0.0.0:* LISTEN 18161/java
tcp 0 0 0.0.0.0:44414 0.0.0.0:* LISTEN 32734/java
tcp 0 0 0.0.0.0:1984 0.0.0.0:* LISTEN 32734/java
tcp 0 0 127.0.0.1:32000 0.0.0.0:* LISTEN 32734/java
tcp 0 0 0.0.0.0:5601 0.0.0.0:* LISTEN 31628/./../node/bin
tcp 0 0 0.0.0.0:8066 0.0.0.0:* LISTEN 32734/java
2.杀死进程
[root@iZa2hqrq6ehf4jZ zookeeper-tanhua]# kill 18161
3.重新启动即可
[root@iZa2hqrq6ehf4jZ zookeeper-tanhua]# docker start 56d194be0379
更多推荐
已为社区贡献1条内容
所有评论(0)