window7環境下ZooKeeper的安裝及執行

2021-08-02 14:10:29 字數 835 閱讀 6850

zookeeper是乙個分布式開源框架,供了協調分布式應用的基本服務。這些天在使用dubbo,由於開發環境是在windows環境下,需要能夠先執行zookeeper,然後在此基礎上實現服務的位址分配。

在下面,先搭建乙個單機模式的的zookeeper環境。

再將包解壓進入檔案目錄,可以看到

進入到conf目錄下,將裡面的.cfg檔案重新命名為zoo.cfg.

# the directory where the snapshot is stored.

# do not use /tmp for storage, /tmp here is just 

# example sakes.

datadir=d:\\zookeeper-3.4.6\\data

datalogdir=d:\\zookeeper-3.4.6\\log

#datadir=/tmp/zookeeper

從上面**可以看到新增了兩行。在本機裡。zookeeper放在d盤裡,然後就新增了datadir及datalogdir兩個變數。與此同時在zookeeper檔案目錄下新建data及log兩個資料夾,如果不建立,後面執行指令碼是地會報錯。

完成後,進入bin目錄,執行zkserver.cmd指令碼,讓後就可以在單機上將zookeeper跑起來了。

剩下來的事情就是去配置dubbo的xml檔案了,通過ip位址的設定,提供本地的服務

github在window7環境搭建

1.註冊github帳號 2.建立github專案 a.新建倉庫 b.填寫資訊 github windows 客戶端,安裝完成之後會有 a.開啟git shell b.輸入使用者名稱 git config global user.name your name here git config glob...

window7搭建nfs環境

一 伺服器 1 安裝hanewin,使用管理員身份執行,進行註冊 2 exports頁面下進行edit exports file 3 編輯儲存。e nfs 共享資料夾路徑 public 公共許可權 name nfs 顯示名稱 4 重啟nfs服 5 掛載成功 二 客戶端 1 控制面板 程式 程式與功能...

window7下安裝python記錄

雙擊執行,選擇路徑。finish.新增環境變數 安裝路徑 f 1mlt python pythona python27 f 1mlt python pythona python27 scripts 中直接有easy install.exe 和 pip.exe 把f 1mlt python pytho...