??斗地主捕鱼电竞提现秒到 广告位招租 - 15元/月全站展示
??支付宝搜索579087183领大额红包 ??伍彩集团官网直营彩票
??好待遇→招代理 ??伍彩集团官网直营彩票
??络茄网 广告位招租 - 15元/月全站展示
zookeeper环境搭建与启动

转载   知止内明   2018-05-30   浏览量:134


上海天天彩选四开奖历史:解压

 彩票开奖查询 www.kbyp.net [[email protected] zookeeper-3.4.6]# tar zxvf zookeeper-3.4.6.tar.gz
[[email protected] zookeeper-3.4.6]# pwd
/home/zookeeper/zookeeper-3.4.6
[[email protected] zookeeper-3.4.6]#

新建目录:

[[email protected] zookeeper-3.4.6]# mkdir data
进入目录:cd conf
/home/zookeeper/zookeeper-3.4.6/conf

修改名字

[[email protected] conf]# mv zoo_sample.cfg zoo.cfg

编辑文件

vim zoo.cfg
----------------------------------------------
1 # The number of milliseconds of each tick
  2 tickTime=2000
  3 # The number of ticks that the initial
  4 # synchronization phase can take
  5 initLimit=10
  6 # The number of ticks that can pass between
  7 # sending a request and getting an acknowledgement
  8 syncLimit=5
  9 # the directory where the snapshot is stored.
 10 # do not use /tmp for storage, /tmp here is just
 11 # example sakes.
 12 dataDir=/home/zookeeper/zookeeper-3.4.6/data  
 13 # the port at which the clients will connect
 14 clientPort=2181
 15 # the maximum number of client connections.
 16 # increase this if you need to handle more clients
 17 #maxClientCnxns=60
 18 #
 19 # Be sure to read the maintenance section of the
 20 # administrator guide before turning on autopurge.
 21 #
 22 # //zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
 23 #
 24 # The number of snapshots to retain in dataDir
 25 #autopurge.snapRetainCount=3
 26 # Purge task interval in hours
 27 # Set to "0" to disable auto purge feature
 28 #autopurge.purgeInterval=1
~                                     

启动

[[email protected] bin]# ./zkServer.sh  start    =========(启动方式)
JMX enabled by default
Using config: /home/zookeeper/zookeeper-3.4.6/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED         ============(显示成功)
[[email protected] bin]# ./zkServer.sh status   =======(查看状态方式)
JMX enabled by default
Using config: /home/zookeeper/zookeeper-3.4.6/bin/../conf/zoo.cfg
Mode: standalone (单独的 --  解释问单利模式)  ===========(查看状态 )
[[email protected] bin]#

关闭

[[email protected] bin]# ./zkServer.sh  stop     =====(关闭)
JMX enabled by default
Using config: /home/zookeeper/zookeeper-3.4.6/bin/../conf/zoo.cfg
Stopping zookeeper ... STOPPED
[[email protected] bin]# 
[[email protected] bin]# ./zkServer.sh status    ====(关闭状态)
JMX enabled by default
Using config: /home/zookeeper/zookeeper-3.4.6/bin/../conf/zoo.cfg
Error contacting service. It is probably not running.
(错误联系服务。它可能不会运行。)
[[email protected] bin]#

转载自://blog.51cto.com/357712148/2122237

招聘 不方便扫码就复制添加关注:程序员招聘谷,微信号:jobs1024



微服务理念以及dobbo+zookeeper入门微服务架构
微服务理念以及dobbo+zookeeper入门微服务架构。微服务架构成了当下的技术热点,实现微服务是要付出很大成本的,但也许是因为微服务的优点太过于吸引人,以至于大部分开发者都将它当成未来的发展趋势。
ZooKeeper是按照CP原则构建的,不适合做Service服务发现
ZooKeeper是按照CP原则构建的,不适合做Service服务发现。
Zookeeper ACL 使用node-zookeeper-client
再分布式系统中,ACL(AccessControl)十分重要;Zookeeper也提供了十分好用的ACL接口,下面我记录一下在nodejs下如何实现zookeeper的访问控制。Zookeeper的ACL通常表示为:Scheme:Id:Permission,即S
zookeeper环境搭建与启动
解压[[email protected]]#tarzxvfzookeeper-3.4.6.tar.gz[[email protected]]#pwd/home/zookeeper/zookeeper-3.4.6[[email protected]]#新建目录:[[email protected]]#mk
Hbase和Zookeeper分开管理
Hbase和Zookeeper分开管理,第一步:编辑confhbase-envsh,找到HBASE_MANAGES_ZK,加入如下一行:exportHBASE_MANAGES_ZK=false,HBase,不自动维护Zookeeper。
CentOS7下配置Hadoop集群和Zookeeper集群
1.版本centos764位,VM虚拟机12.0,jdk1.8.0hadoop2.9.0zookeeper3.4.62.Hadoop集群的配置0.下载解压安装文件解压命令tar-xzvf压缩文件名文件夹路径1.修改hadoop-env.sh添加jdk环境exportJAVA_HOME=/usr/java/jdk1.8.0_144文...
docker overlay network 使用ZooKeeper
docker通常情况下使用的是bridge网络,这种无法进行跨主机通讯,即,一台主机上的docker容器是不能直接访问另一台主机上的容器的内部IP。如果我们想要通DNS
SpringCloud用Zookeeper搭建配置中心的方法
本篇文章主要介绍了SpringCloud用Zookeeper搭建配置中心的方法,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
配置一个ZooKeeper伪分布式集群
配置一个ZooKeeper伪分布式集群,确定dataDir,创建目录,分别创建myid文件修改三份配置文件启动三个服务器。