zookeeper_linux 发表于 2015-12-29 | 分类于 技术 cd1cd /home/bob/server/zookeeper-3.4.6/bin zkCli.sh1./zkCli.sh -server 192.168.1.251:2181 ls1234567891011121314[zk: 192.168.1.251:2181(CONNECTED) 0] ls /[YINSHI.MONITOR.ALIVE.CHECK, funi, zookeeper][zk: 192.168.1.251:2181(CONNECTED) 1] ls /funi[configuration, test][zk: 192.168.1.251:2181(CONNECTED) 2] ls /funi/configuration[eic, fangchanyun][zk: 192.168.1.251:2181(CONNECTED) 3] ls /funi/configuration/eic[servers][zk: 192.168.1.251:2181(CONNECTED) 5] ls /funi/configuration/eic/servers[memcached, fastdfs][zk: 192.168.1.251:2181(CONNECTED) 6] ls /funi/configuration/eic/servers/memcached [][zk: 192.168.1.251:2181(CONNECTED) 7] get /funi/configuration/eic/servers/memcached 192.168.1.241:11213 create12345678910[zk: 192.168.1.251:2181(CONNECTED) 5] ls /funi/configuration[eic, fangchanyun][zk: 192.168.1.251:2181(CONNECTED) 6] ls /funi/configuration/eic[servers][zk: 192.168.1.251:2181(CONNECTED) 7] create /funi/configuration/eic/test testCreated /funi/configuration/eic/test[zk: 192.168.1.251:2181(CONNECTED) 8] ls /funi/configuration/eic/test[][zk: 192.168.1.251:2181(CONNECTED) 9] get /funi/configuration/eic/testtest set12[zk: 192.168.1.251:2181(CONNECTED) 8] set /funi/configuration/eic/servers/memcachedmemcached://192.168.1.250:11211,192.168.1.250:11211?poolName=default&initConn=50&minConn=5&maxConn=250&maintSleep=30&nagle=false&socketTO=3000&aliveCheck=true&failover=true&sessionTime=60 get12[zk: 192.168.1.251:2181(CONNECTED) 10] get /funi/configuration/eic/servers/memcachedmemcached://192.168.1.250:11211,192.168.1.250:11211?poolName=default&initConn=50&minConn=5&maxConn=250&maintSleep=30&nagle=false&socketTO=3000&aliveCheck=true&failover=true&sessionTime=60