Windows Dubbo-admin and Zookeeper installation deployment

Source: Internet
Author: User
Tags zookeeper

1. Overview

Zookeeper is a full-fledged sub-project of Hadoop, a reliable coordination system for large distributed systems, with features such as configuration maintenance, name services, distributed synchronization, group services, and more. The goal of zookeeper is to encapsulate complex and error-prone services that provide users with easy-to-use interfaces and performance-efficient, robust systems.

2. Installation & Configuration

The official website of Apache provides a lot of mirrors, then find the corresponding version, the latest is 3.3.6

Http://mirrors.cnnic.cn/apache/zookeeper/zookeeper-3.3.6/zookeeper-3.3.6.tar.gz

Install under Windows

Extract the downloaded zookeeper files to the specified directory

D:\machine\zookeeper-3.3.6>

Modify the Conf to add a zoo.cfg

The contents are as follows:

# The number of milliseconds of each tick heartbeat interval milliseconds each time

ticktime=2000

# The number of ticks that 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. Mirrored Data location

Datadir=d:\\data\\zookeeper

#日志位置

Datalogdir=d:\\logs\\zookeeper

# The port at which the clients WillConnect client connection

clientport=2181

Note: If you start an error message that the CFG file has errors, you can use the contents of the zoo_sample.cfg can also be replaced

Go to the Bin directory and start Zkserver.cmd, this script will start a Java process

D:\MACHINE\ZOOKEEPER-3.3.6>CD bin

D:\machine\zookeeper-3.3.6\bin>

D:\machine\zookeeper-3.3.6\bin >zkserver.cmd

After startup JPs can see the quorumpeermain process

D:\machine\zookeeper-3.3.6\bin >jps

Start the client run and see for yourself

D:\machine\zookeeper-3.3.6\bin>zkcli.cmd-server 127.0.0.1:2181

This time zookeeper has been installed successfully,

Refer to the official documentation:

Http://zookeeper.apache.org/doc/trunk/zookeeperStarted.html

Refer to Single-machine mode, cluster, and pseudo-cluster posts

http://sqcjy111.iteye.com/blog/1741320

The Zkserver.cmd file can be modified on a single machine when it is running through a pseudo-cluster.

Set zoocfg=. \conf\zoo1.cfg this line, save as Zkserver-1.cmd


If you have more than one

Also need to be in the corresponding

/TMP/ZOOKEEPER/1,

/TMP/ZOOKEEPER/2,

/tmp/zookeeper/3

Create a text file named myID, and the content will be the corresponding ZOO.CFG server. Post-Digital

----------------------------------------------------------------------------------------------------------

    • Install Start zookeeper
    • Download zookeeper-3.4.6
Official address: http://mirrors.cnnic.cn/apache/zookeeper/zookeeper-3.4.6 Baidu network address: http://pan.baidu.com/s/ 1pKUYnur Other network disk (do not need to download Baidu Network disk client) https://page67.ctfile.com/fs/kYq172026246
    • Unzip zookeeper-3.4.6 to the specified directory
For example: G:\zhq_foresee\work\dubbo\zookeeper-3.4.6 copy zookeeper-3.4.6\conf directory zoo_sample.cfg file renamed to Zoo.cfg, no need to make other changes. Zoo.cfg configures the relevant parameter description for zookeeper: ClientPort: The port that listens for client connections. Ticktime: The base event unit, in milliseconds. It is used to control the heartbeat and timeout, by default the minimum session time-out is twice times the ticktime. We can configure the port of the configuration file or make Advanced configuration and cluster configuration for example: Maxclientcnxns: Limit the number of clients connected to ZooKeeper, etc. start ZooKeeper open cmd, go to Zookeeper-3.4.6\bin directory, Double-click the Zkserver.cmd file directly or perform the output after the Zkserver.cmd command starts successfully:
    • Download install Tomcat (Green edition)
Baidu Network address: Http://pan.baidu.com/s/1pKUYnur Other network disk (do not need to download Baidu Network disk client) https://page67.ctfile.com/fs/WME172391022 download, extract to the specified directory.
    • Installing Dubboadmin
    • Download dubbo-admin-2.5.3
Official website: http://dubbo.io/Download-zh.htm Baidu Network disk address: Http://pan.baidu.com/s/1pKUYnur Other network disk (do not need to download Baidu Network disk client) https:// page67.ctfile.com/fs/kxk172026186
    • Decompression dubbo-admin-2.5.3
Copy the extracted dubbo-admin-2.5.3 to the Tomcat Apache-tomcat-6.0.35\webapps directory and change the dubbo-admin-2.5.3 directory name to root A dubbo.properties file under Dubboadmin is configured with parameters that point to zookeeper
    • Start Tomcat
Open cmd, enter the Apache-tomcat-6.0.35\bin directory, enter the Startup.bat command to start Tomcat.
    • Access Dubboadmin Backstage
Open the browser, enter http://127.0.0.1:8080/, enter the account password Root/root. Enter
    • Dubbo official website
Http://dubbo.io/Home-zh.htm

Windows Dubbo-admin and Zookeeper installation deployment

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.