installation, operation and monitoring of zookeeper under WINDOW7 environment view

Source: Internet
Author: User

Original: http://www.cnblogs.com/RainAndWind/p/4668427.html

Zookeeper is a distributed, open-source framework for basic services for coordinating distributed applications. These days using Dubbo, because the development environment is in the Windows environment, you need to be able to run zookeeper first and then implement the service's address assignment on this basis.

In the following, first build a single-machine mode of the zookeeper environment.

First, download the code package from the open source Chinese society. Here is 3.4.6 (zookeeper-3.3.6.tar.gz)

Then unzip the package into the file directory, you can see

Go to the Conf directory and rename the. cfg file to zoo.cfg.

# The directory where the snapshot is stored.
# do not use/tmp for storage,/tmp here are just
# example Sakes.
Datadir=d:\\zookeeper-3.4.6\\data
Datalogdir=d:\\zookeeper-3.4.6\\log
#dataDir =/tmp/zookeeper

You can see that two lines are added from the code above. In this machine. The zookeeper is placed in the D drive and then added the DataDir and datalogdir two variables. At the same time in the Zookeeper file directory to create a new data and log two folders, if not created, the script will be run after the error.

When you are done, go to the bin directory and run the Zkserver.cmd script so that you can run zookeeper on a single machine.

Monitoring view

Zooinspector

Run the script

@echo off
CD D:\software\zookeeper-3.4.6\ZooInspector\build
D:
Java-dfile.encoding=utf-8-jar Zookeeper-dev-zooinspector.jar

installation, operation and monitoring of zookeeper under WINDOW7 environment view

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.