windows下dubbo-admin和zookeeper安装部署
1.???概述
ZooKeeper是Hadoop的正式子項(xiàng)目,它是一個(gè)針對(duì)大型分布式系統(tǒng)的可靠協(xié)調(diào)系統(tǒng),提供的功能包括:配置維護(hù)、名字服務(wù)、分布式同步、組服務(wù)等。ZooKeeper的目標(biāo)就是封裝好復(fù)雜易出錯(cuò)的關(guān)鍵服務(wù),將簡(jiǎn)單易用的接口和性能高效、功能穩(wěn)定的系統(tǒng)提供給用戶。
?
?
2.???安裝&配置
在apache的官方網(wǎng)站提供了好多鏡像下載地址,然后找到對(duì)應(yīng)的版本,目前最新的是3.3.6
下載地址:
http://mirrors.cnnic.cn/apache/zookeeper/zookeeper-3.3.6/zookeeper-3.3.6.tar.gz
?
Windows下安裝
?
?
把下載的zookeeper的文件解壓到指定目錄
D:\machine\zookeeper-3.3.6>
?
?
修改conf下增加一個(gè)zoo.cfg
內(nèi)容如下:
# 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 anacknowledgement
syncLimit=5
# the directory where the snapshot isstored.? //鏡像數(shù)據(jù)位置
dataDir=D:\\data\\zookeeper
#日志位置
dataLogDir=D:\\logs\\zookeeper
# the port at which the clients willconnect? 客戶端連接的端口
clientPort=2181
注:如果啟動(dòng)有報(bào)錯(cuò)提示cfg文件有錯(cuò)誤,可以用zoo_sample.cfg內(nèi)內(nèi)容替代也是可以的
?
?
進(jìn)入到bin目錄,并且啟動(dòng)zkServer.cmd,這個(gè)腳本中會(huì)啟動(dòng)一個(gè)Java進(jìn)程
D:\machine\zookeeper-3.3.6>cd bin
D:\machine\zookeeper-3.3.6\bin>
D:\machine\zookeeper-3.3.6\bin >zkServer.cmd
?
啟動(dòng)后jps可以看到QuorumPeerMain的進(jìn)程
D:\machine\zookeeper-3.3.6\bin?>jps
?
?
啟動(dòng)客戶端運(yùn)行查看一下
D:\machine\zookeeper-3.3.6\bin>zkCli.cmd-server 127.0.0.1:2181
?
?
?
這個(gè)時(shí)候zookeeper已經(jīng)安裝成功了,
參考官方文檔:
http://zookeeper.apache.org/doc/trunk/zookeeperStarted.html
?參考單機(jī)模式、集群和偽集群的帖子
http://sqcjy111.iteye.com/blog/1741320
?
在 一臺(tái)機(jī)器上通過偽集群運(yùn)行時(shí)可以修改?zkServer.cmd 文件在里面加入
set ZOOCFG=..\conf\zoo1.cfg ?這行,另存為 ?zkServer-1.cmd
?
如果有多個(gè)可以以此類推
?
?
?
?
還需要 在對(duì)應(yīng)的
/tmp/zookeeper/1,
/tmp/zookeeper/2,
/tmp/zookeeper/3
?建立一個(gè)文本文件命名為myid,內(nèi)容就為對(duì)應(yīng)的zoo.cfg里server.后數(shù)字
??
?
----------------------------------------------------------------------------------------------------------
?
- 安裝啟動(dòng)zookeeper
- 下載zookeeper-3.4.6
- 解壓zookeeper-3.4.6到指定目錄
- 下載安裝tomcat(綠色版)
- 安裝dubboadmin
- 下載dubbo-admin-2.5.3
- 解壓dubbo-admin-2.5.3
- 啟動(dòng)tomcat
- 訪問dubboadmin后臺(tái)
- dubbo官方網(wǎng)址
轉(zhuǎn)載于:https://www.cnblogs.com/therunningfish/p/6520468.html
總結(jié)
以上是生活随笔為你收集整理的windows下dubbo-admin和zookeeper安装部署的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 叉叉助手可以干嘛?
- 下一篇: Centos开机自己主动挂载window