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