Java Internship Diary (2-1) __ Internship

Source: Internet
Author: User
Tags time interval zookeeper zookeeper download

January 9, 2018, the second day of internship, today mainly includes two parts
The first part is the study and installation of zookeeper

Zookeeper Download Address: http://zookeeper.apache.org/releases.html
Open the link page below, click Download can download newer version, also can click Archive Download historical version

Click Download after the page below, the first link is the recommended download image

Click on the recommended link to download the stable version

After downloading, unpack, open zookeeper-3.4.11, modify the Zoo_sample.cfg in the Conf folder for Zoo.cfg (make backup before modification), as follows

Open Zoo.cfg, modify 12 lines of Datadir=/tmp/zookeeper for Datadir=d:/software/zookeeper-3.4.11/data (specific path please modify) as shown

The meaning of each parameter in Zoo.cfg:

# as the zookeeper server or between the client and the server to maintain the heartbeat of the time interval, that is, monitoring the heartbeat time.
ticktime=2000

# Configure the Zookeeper receive client (where the client is not a client of a user-linked zookeeper server, but a
Zookeeper server cluster connected to the leader follower server The initial connection is the longest number of times that can endure many hearts
# hops. When there is more than 10 heartbeat time (i.e. Ticktime) after the zookeeper server does not
receive the information returned by the client, then the client connection fails. The total length of time is 10*2000=20 seconds
initlimit=10

# Configuration Item identification leader and follower send messages between the length of the request and answer time, the longest can not exceed 5
# ticktime length of time, The total length of time is 5*2000=10 seconds.
synclimit=5

# Save the Directory of Data
# Datadir=/tmp/zookeeper
datadir=d:/software/zookeeper-3.4.11/data

# Connect the zookeeper port, which means that zookeeper will listen for the client's access request
clientport=2181

# Client Maximum number of connections
# Maxclientcnxns=60

Then, click Zkserver.cmd in the Bin folder to start zookeeper,

The results are as follows, and the following scenario indicates successful startup.

You can also use the JPS command to view the process through CMD, as described below to start successfully

The following will summarize the construction of the second part Dubbo-admin management platform

Reference Link:
http://blog.csdn.net/liuziyingbeidou/article/details/52629546
https://www.cnblogs.com/xiohao/p/ 5541093.html
http://blog.csdn.net/clementad/article/details/48057059

Related Article

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.