ZooKeeper 在windows的安裝

來源:互聯網
上載者:User

標籤:

     寫這篇隨筆的原因是公司項目用到了dubbo架構,需要安裝zookeeper,故查詢了一些文章,同時將安裝zookeeper的步驟記錄下來,感謝提供資料的博友,在文章最後具體感謝。

 

 

   1、概述   

            ZooKeeper是Hadoop的正式子項目,它是一個針對大型分布式系統的可靠協調系統,提供的功能包括:配置維護、名字服務、分布式同步、組服務等。

         ZooKeeper的目標就是封裝好複雜易出錯的關鍵服務,將簡單易用的介面和效能高效、功能穩定的系統提供給使用者。

 

   2、安裝與配置

        (1)下載: 在apache的官方網站提供了好多鏡像,然後找到對應的免安裝版本就行了。

       (2)安裝:將下載的包解壓放在自己相放的地方,比如:D:\Program Files (x86)\zookeeper-3.4.8

       (3)修改配置,路徑是D:\Program Files (x86)\zookeeper-3.4.8\conf

             a、conf下增加一個zoo.cfg

             b、檔案內容

                     # 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.  //鏡像資料位元置

                   dataDir=D:\\data\\zookeeper

                  #日誌位置

                  dataLogDir=D:\\logs\\zookeeper

                  # the port at which the clients willconnect  用戶端串連的連接埠

                  clientPort=2181

      (3)啟動

           啟動命令在D:\Program Files (x86)\zookeeper-3.4.8\bin 中

       這樣zookeeper 算是安裝成功了

 

   需要感謝http://blog.csdn.net/morning99/article/details/40426133提供的參考文章


 

 

 


 

ZooKeeper 在windows的安裝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.