标签:limit back syn server dir table code init mode
拆分环境
主机名 | 角色 | ip |
HDSS7-11.host.com | zk1.fx.com | 10.4.7.11 |
HDSS7-12.host.com | zk2.fx.com | 10.4.7.12 |
重配zookeeper
HDSS7-11.host.com上:
[root@hdss7-11 ~]# sh /opt/zookeeper/bin/zkServer.sh stop [root@hdss7-11 ~]# rm -rf /data/zookeeper/data/* [root@hdss7-11 ~]# rm -rf /data/zookeeper/logs/* [root@hdss7-11 ~]# vim /opt/zookeeper/conf/zoo.cfg tickTime=2000 initLimit=10 syncLimit=5 dataDir=/data/zookeeper/data dataLogDir=/data/zookeeper/logs clientPort=2181 [root@hdss7-11 ~]# sh /opt/zookeeper/bin/zkServer.sh start [root@hdss7-11 ~]# sh /opt/zookeeper/bin/zkServer.sh status ZooKeeper JMX enabled by default Using config: /opt/zookeeper/bin/../conf/zoo.cfg Mode: standalone
HDSS7-12.host.com上:
[root@hdss7-12 ~]# sh /opt/zookeeper/bin/zkServer.sh stop [root@hdss7-12 ~]# rm -rf /data/zookeeper/data/* [root@hdss7-12 ~]# rm -rf /data/zookeeper/logs/* [root@hdss7-12 ~]# vim /opt/zookeeper/conf/zoo.cfg tickTime=2000 initLimit=10 syncLimit=5 dataDir=/data/zookeeper/data dataLogDir=/data/zookeeper/logs clientPort=2181 [root@hdss7-12 ~]# sh /opt/zookeeper/bin/zkServer.sh start [root@hdss7-12 ~]# sh /opt/zookeeper/bin/zkServer.sh status ZooKeeper JMX enabled by default Using config: /opt/zookeeper/bin/../conf/zoo.cfg Mode: standalone
标签:limit back syn server dir table code init mode
原文地址:https://www.cnblogs.com/fxxy/p/13162043.html