[ https://issues.apache.org/jira/browse/ZOOKEEPER-2910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16187200#comment-16187200 ]
Patrick Hunt commented on ZOOKEEPER-2910: ----------------------------------------- Not sure what you mean by "random". Could you elaborate? Perhaps show what is leading to you believe this? I ran 3.4.10/jdk8 on ubuntu 17.04 and see the following: {noformat} $ sudo netstat -anp 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 17/java tcp 0 0 0.0.0.0:2182 0.0.0.0:* LISTEN 18/java tcp 0 0 0.0.0.0:2183 0.0.0.0:* LISTEN 19/java tcp 0 0 127.0.0.1:3183 0.0.0.0:* LISTEN 19/java tcp 0 0 127.0.0.1:4181 0.0.0.0:* LISTEN 17/java tcp 0 0 127.0.0.1:4182 0.0.0.0:* LISTEN 18/java tcp 0 0 127.0.0.1:4183 0.0.0.0:* LISTEN 19/java tcp 0 0 127.0.0.1:58712 127.0.0.1:4181 ESTABLISHED 18/java tcp 0 0 127.0.0.1:4181 127.0.0.1:58708 ESTABLISHED 17/java tcp 0 0 127.0.0.1:3183 127.0.0.1:46588 ESTABLISHED 19/java tcp 0 0 127.0.0.1:3183 127.0.0.1:46590 ESTABLISHED 19/java tcp 0 0 127.0.0.1:4182 127.0.0.1:32794 ESTABLISHED 18/java tcp 0 0 127.0.0.1:4181 127.0.0.1:58712 ESTABLISHED 17/java tcp 0 0 127.0.0.1:58708 127.0.0.1:4181 ESTABLISHED 19/java tcp 0 0 127.0.0.1:32794 127.0.0.1:4182 ESTABLISHED 19/java tcp 0 0 127.0.0.1:46588 127.0.0.1:3183 ESTABLISHED 18/java tcp 0 0 127.0.0.1:46590 127.0.0.1:3183 ESTABLISHED 17/java {noformat} my config is {noformat} clientPort=2181 server.1=localhost:3181:4181 server.2=localhost:3182:4182 server.3=localhost:3183:4183 {noformat} > zookeeper listening on unknown random port > ------------------------------------------ > > Key: ZOOKEEPER-2910 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2910 > Project: ZooKeeper > Issue Type: Bug > Components: server > Affects Versions: 3.4.8 > Environment: CentOS 7 > Zookeeper 3.4.8 > JDK 1.8.0_111 > Reporter: ken huang > > when zookeeper start, it will listen on three port: > 2181 for client connnect > 3888 for leader election > random for what ? > three are three port config in zoo.cfg, 2181、2888、3888, but no 2888 listened > on. -- This message was sent by Atlassian JIRA (v6.4.14#64029)