Installation and erection of zookeeper under CentOS

Source: Internet
Author: User

Pick up Linux again, first of all, zookeeper installation.

System: Centos6.5

Tool SECURECRT

Virtual machines: Oracle VMS

1. Use SFTP to zookeeper-3.4.5.tar.gz,put the Linux system

Right-click the connection session, then click the Connect sftp tab, then CD to the directory where you want to put the package, then in the LCD to the local system's compression package directory, then

Commands for put compressed packages

Eg:put d:/temp/zookeeper-3.4.5.tar.gz

OK, the premise is that your system has been connected to Haha, the network has been bored for a long time, with the way of bridging the network card

Input ifconfig, will come out Lo

Vi/etc/sysconfig/network-scripts/ifcfg-eth0

Configure eth0, put onboot=yes, indicate boot start

Ifup eth0 Open Network

Service network start to turn on Web services

Again ifconfig, see if there is no eth0 information, no Baidu itself with DNS, and then ping www.baidu.com, see if can connect the outside network

2. Unzip the Zookeeper compression pack

TAR-ZXVF zookeeper-3.4.5.tar.gz

CD zookeeper-3.4.5/conf

CP Zoo_sample.cfg Zoo.cfg

VI zoo.cfg

Replace the following with the original

ticktime=2000
Datadir=tmp/zoopkeeper
clientport=2181
Initlimit=5
synclimit=2
server.1=ip:2888:3888

IP into the virtual machine

Build zookeeper folders and myID files in the zookeeper-3.4.5/tmp/directory

Put a 1 in the myID.

3. Start the Zookeeper service

CD bin/

./zkserver.sh Start

It worked without an error.

In SecureCRT you can view the process with JPS

The Quorumpeermain instructions appear zookeeper start running ~ ~

Recommend a good installation and test tutorial: http://topmanopensource.iteye.com/blog/1879463

^^

Installation and erection of zookeeper under CentOS

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.