单机版配置
1. 配置
zookeeper-3.4.5/conf/zoo.cfg
dataDir=/home/ttji/zookeeper/zookeeper 此配置 为zookeeper存储目录
clientPort=21810 此配置为 监听端口
#server.1=172.16.10.207:2888:3888
#server.2=172.16.10.142:2888:3888
#server.3=172.16.10.64:2888:3888
#server.4=172.16.10.186:2888:3888
//这些配置 注释掉 表示为单机版
2. 启动
zookeeper-3.4.5/bin
./zkServer.sh start
查看 ./zkServer.sh status
[ttji@mpp3 bin]$ ./zkServer.sh status
JMX enabled by default
Using config: zookeeper-3.4.5/bin/../conf/zoo.cfg
Mode: standalone
1. 配置
zookeeper-3.4.5/conf/zoo.cfg
dataDir=/home/ttji/zookeeper/zookeeper 此配置 为zookeeper存储目录
clientPort=21810 此配置为 监听端口
#server.1=172.16.10.207:2888:3888
#server.2=172.16.10.142:2888:3888
#server.3=172.16.10.64:2888:3888
#server.4=172.16.10.186:2888:3888
//这些配置 注释掉 表示为单机版
2. 启动
zookeeper-3.4.5/bin
./zkServer.sh start
查看 ./zkServer.sh status
[ttji@mpp3 bin]$ ./zkServer.sh status
JMX enabled by default
Using config: zookeeper-3.4.5/bin/../conf/zoo.cfg
Mode: standalone