Linux下zookeeper的安装

1)zookeeper的安装:
	
	# 解压
	tar -zxvf zookeeper-3.4.6.tar.gz
	
	# 进入zookeeper的家目录
	cd zookeeper-3.4.6
	
	# 配置文件改名
	cd conf
	mv zoo_sample.cfg zoo.cfg
	
	# 修改快照的存储目录
	cd zookeeper-3.4.6
	mkdir data
	
	vim zoo.cfg
		dataDir=/data/cloud/zookeeper/zookeeper-3.4.6/data
	
	# 启动zookeeper
	cd bin
	./zkServer.sh start

	# 查看zookeeper的状态
	./zkServer.sh status
	
	# 停止zookeeper
	./zkServer.sh stop
	
	


你可能感兴趣的:(Linux,分布式)