Skip to Main Content

zk

Configure meanings in zk cluster configuration file

vim zoo.cfg
plus the following three-line configuration
server.1=10.88.0.19:2888:388;2181
server.2 =10.88.0.20:2888:388;2181
server.3=10.88.0.28:388:388;2181
Here 10.88.0.X indicates the IP addresses of the three zookepers, 3888 is the port of correspondence between the zookepers, 3888 is the port of the zokeeper, which is generally fixed