进入ZooKeeper安装目录
cd {安装目录}/conf/
# 使用Vim编辑
vim
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
dataDir=/tmp/zookeeper
# the port at which the clients will connect
clientPort=2181
admin.serverPort=8084 # 8080端口占用可修改
# 进入bin目录
cd {安装目录}/bin
# 启动
./zkServer.sh start
# 进入bin目录
cd {安装目录}/bin
# 启动测试
./zkCli.sh
测试成功截图
4. 启动Kafka
# 进入安装目录
cd 安装目录
# 启动kafka
./bin/kafka-server-start.sh {安装目录}/config/server.properties
参与评论
手机查看
返回顶部