centos中怎么安装ZooKeeper

本篇文章为大家展示了centos中怎么安装ZooKeeper,内容简明扼要并且容易理解,绝对能使你眼前一亮,通过这篇文章的详细介绍希望你能有所收获。

成都创新互联主要从事网站设计、成都网站制作、网页设计、企业做网站、公司建网站等业务。立足成都服务鸡西,10多年网站建设经验,价格优惠、服务专业,欢迎来电咨询建站服务:028-86922220


##1.解压zookeeper-3.4.14到/usr/java/zookeeper目录下
centos中怎么安装ZooKeeper
##2.拷贝配置文件
进入/usr/java/zookeeper/zookeeper-3.4.14/conf目录,拷贝配置文件zoo_sample.cfg,命名为zoo.cfg
centos中怎么安装ZooKeeper
##3.改配置文件
vim /usr/java/zookeeper/zookeeper-3.4.14/conf
centos中怎么安装ZooKeeper
/usr/java/zookeeper/apache-zookeeper-3.5.9/dataDir
/usr/java/zookeeper/apache-zookeeper-3.5.9/dataLogDir
##4.配置zookeeper环境变量
vi /etc/profile
在jdk环境变量下面添加zookeeper环境变量
ZOOKEEPER_HOME=/usr/java/zookeeper/zookeeper-3.4.14
PATH=$PATH:$ZOOKEEPER_HOME/bin
export PATH ZOOKEEPER_HOME PATH
修改后如下图
centos中怎么安装ZooKeeper
##5.测试zookeeper
5.1 启动zookeeper
/usr/java/zookeeper/zookeeper-3.4.14/bin
centos中怎么安装ZooKeeper
5.2 启动客户端连接zookeeper
centos中怎么安装ZooKeeper
5.3 查看zookeeper信息
centos中怎么安装ZooKeeper
5.4 jps查看进行
centos中怎么安装ZooKeeper

上述内容就是centos中怎么安装ZooKeeper,你们学到知识或技能了吗?如果还想学到更多技能或者丰富自己的知识储备,欢迎关注创新互联行业资讯频道。


标题名称:centos中怎么安装ZooKeeper
分享地址:http://azwzsj.com/article/posogi.html