zookeeper 3.4.6安装

[shxd@iZbp10vmnn5rfggtb6aec4Z src]$ cd zookeeper-3.4.6
[shxd@iZbp10vmnn5rfggtb6aec4Z zookeeper-3.4.6]$ ll
total 1564
drwxr-xr-x  2 shxd shxd    4096 Feb 20  2014 bin
-rw-rw-r--  1 shxd shxd   82446 Feb 20  2014 build.xml
-rw-rw-r--  1 shxd shxd   80776 Feb 20  2014 CHANGES.txt
drwxr-xr-x  2 shxd shxd    4096 Feb 20  2014 conf
drwxr-xr-x 10 shxd shxd    4096 Feb 20  2014 contrib
drwxr-xr-x  2 shxd shxd    4096 Feb 20  2014 dist-maven
drwxr-xr-x  6 shxd shxd    4096 Feb 20  2014 docs
-rw-rw-r--  1 shxd shxd    1953 Feb 20  2014 ivysettings.xml
-rw-rw-r--  1 shxd shxd    3375 Feb 20  2014 ivy.xml
drwxr-xr-x  4 shxd shxd    4096 Feb 20  2014 lib
-rw-rw-r--  1 shxd shxd   11358 Feb 20  2014 LICENSE.txt
-rw-rw-r--  1 shxd shxd     170 Feb 20  2014 NOTICE.txt
-rw-rw-r--  1 shxd shxd    1770 Feb 20  2014 README_packaging.txt
-rw-rw-r--  1 shxd shxd    1585 Feb 20  2014 README.txt
drwxr-xr-x  5 shxd shxd    4096 Feb 20  2014 recipes
drwxr-xr-x  8 shxd shxd    4096 Feb 20  2014 src
-rw-rw-r--  1 shxd shxd 1340305 Feb 20  2014 zookeeper-3.4.6.jar
-rw-rw-r--  1 shxd shxd     836 Feb 20  2014 zookeeper-3.4.6.jar.asc
-rw-rw-r--  1 shxd shxd      33 Feb 20  2014 zookeeper-3.4.6.jar.md5
-rw-rw-r--  1 shxd shxd      41 Feb 20  2014 zookeeper-3.4.6.jar.sha1
[shxd@iZbp10vmnn5rfggtb6aec4Z zookeeper-3.4.6]$ cd con
-bash: cd: con: No such file or directory
[shxd@iZbp10vmnn5rfggtb6aec4Z zookeeper-3.4.6]$ cd con
-bash: cd: con: No such file or directory
[shxd@iZbp10vmnn5rfggtb6aec4Z zookeeper-3.4.6]$ cd conf/
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ ll
total 12
-rw-rw-r-- 1 shxd shxd  535 Feb 20  2014 configuration.xsl
-rw-rw-r-- 1 shxd shxd 2161 Feb 20  2014 log4j.properties
-rw-rw-r-- 1 shxd shxd  922 Feb 20  2014 zoo_sample.cfg
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ vi zoo_sample.cfg ^C
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ cd ..
[shxd@iZbp10vmnn5rfggtb6aec4Z zookeeper-3.4.6]$ ll
total 1564
drwxr-xr-x  2 shxd shxd    4096 Feb 20  2014 bin
-rw-rw-r--  1 shxd shxd   82446 Feb 20  2014 build.xml
-rw-rw-r--  1 shxd shxd   80776 Feb 20  2014 CHANGES.txt
drwxr-xr-x  2 shxd shxd    4096 Feb 20  2014 conf
drwxr-xr-x 10 shxd shxd    4096 Feb 20  2014 contrib
drwxr-xr-x  2 shxd shxd    4096 Feb 20  2014 dist-maven
drwxr-xr-x  6 shxd shxd    4096 Feb 20  2014 docs
-rw-rw-r--  1 shxd shxd    1953 Feb 20  2014 ivysettings.xml
-rw-rw-r--  1 shxd shxd    3375 Feb 20  2014 ivy.xml
drwxr-xr-x  4 shxd shxd    4096 Feb 20  2014 lib
-rw-rw-r--  1 shxd shxd   11358 Feb 20  2014 LICENSE.txt
-rw-rw-r--  1 shxd shxd     170 Feb 20  2014 NOTICE.txt
-rw-rw-r--  1 shxd shxd    1770 Feb 20  2014 README_packaging.txt
-rw-rw-r--  1 shxd shxd    1585 Feb 20  2014 README.txt
drwxr-xr-x  5 shxd shxd    4096 Feb 20  2014 recipes
drwxr-xr-x  8 shxd shxd    4096 Feb 20  2014 src
-rw-rw-r--  1 shxd shxd 1340305 Feb 20  2014 zookeeper-3.4.6.jar
-rw-rw-r--  1 shxd shxd     836 Feb 20  2014 zookeeper-3.4.6.jar.asc
-rw-rw-r--  1 shxd shxd      33 Feb 20  2014 zookeeper-3.4.6.jar.md5
-rw-rw-r--  1 shxd shxd      41 Feb 20  2014 zookeeper-3.4.6.jar.sha1
[shxd@iZbp10vmnn5rfggtb6aec4Z zookeeper-3.4.6]$ ll
total 1564
drwxr-xr-x  2 shxd shxd    4096 Feb 20  2014 bin
-rw-rw-r--  1 shxd shxd   82446 Feb 20  2014 build.xml
-rw-rw-r--  1 shxd shxd   80776 Feb 20  2014 CHANGES.txt
drwxr-xr-x  2 shxd shxd    4096 Feb 20  2014 conf
drwxr-xr-x 10 shxd shxd    4096 Feb 20  2014 contrib
drwxr-xr-x  2 shxd shxd    4096 Feb 20  2014 dist-maven
drwxr-xr-x  6 shxd shxd    4096 Feb 20  2014 docs
-rw-rw-r--  1 shxd shxd    1953 Feb 20  2014 ivysettings.xml
-rw-rw-r--  1 shxd shxd    3375 Feb 20  2014 ivy.xml
drwxr-xr-x  4 shxd shxd    4096 Feb 20  2014 lib
-rw-rw-r--  1 shxd shxd   11358 Feb 20  2014 LICENSE.txt
-rw-rw-r--  1 shxd shxd     170 Feb 20  2014 NOTICE.txt
-rw-rw-r--  1 shxd shxd    1770 Feb 20  2014 README_packaging.txt
-rw-rw-r--  1 shxd shxd    1585 Feb 20  2014 README.txt
drwxr-xr-x  5 shxd shxd    4096 Feb 20  2014 recipes
drwxr-xr-x  8 shxd shxd    4096 Feb 20  2014 src
-rw-rw-r--  1 shxd shxd 1340305 Feb 20  2014 zookeeper-3.4.6.jar
-rw-rw-r--  1 shxd shxd     836 Feb 20  2014 zookeeper-3.4.6.jar.asc
-rw-rw-r--  1 shxd shxd      33 Feb 20  2014 zookeeper-3.4.6.jar.md5
-rw-rw-r--  1 shxd shxd      41 Feb 20  2014 zookeeper-3.4.6.jar.sha1
[shxd@iZbp10vmnn5rfggtb6aec4Z zookeeper-3.4.6]$ cd ..
[shxd@iZbp10vmnn5rfggtb6aec4Z src]$ ll
total 229148
-rw-rw-r--  1 shxd shxd   11830603 Sep 29 23:38 alibaba-rocketmq-3.2.6.tar.gz
-rw-rw-r--  1 shxd shxd    9270590 Sep 29 23:38 apache-tomcat-8.0.18.tar.gz
-rw-rw-r--  1 shxd shxd    1367117 Jul 10  2014 gperftools-2.2.tar.gz
drwxr-xr-x  8 uucp   143      4096 Dec 18  2014 jdk1.8.0_31
-rw-rw-r--  1 shxd shxd  160901914 Sep 29 16:40 jdk-8u31-linux-x64.tar.gz
-rw-rw-r--  1 shxd shxd    1098603 Jun 11  2014 libunwind-1.1.tar.gz
drwxr-xr-x 35 7161 wheel      4096 Sep 29 22:46 mysql-5.6.28
-rw-rw-r--  1 shxd shxd   32182980 Jan  3  2016 mysql-5.6.28.tar.gz
drwxr-xr-x 10 shxd shxd       4096 Feb 20  2014 zookeeper-3.4.6
-rw-rw-r--  1 shxd shxd   17699306 Sep 29 23:38 zookeeper-3.4.6.tar.gz
[shxd@iZbp10vmnn5rfggtb6aec4Z src]$ mv zookeeper-3.4.6 /home/shxd/webapps/
[shxd@iZbp10vmnn5rfggtb6aec4Z src]$ ll
total 229144
-rw-rw-r--  1 shxd shxd   11830603 Sep 29 23:38 alibaba-rocketmq-3.2.6.tar.gz
-rw-rw-r--  1 shxd shxd    9270590 Sep 29 23:38 apache-tomcat-8.0.18.tar.gz
-rw-rw-r--  1 shxd shxd    1367117 Jul 10  2014 gperftools-2.2.tar.gz
drwxr-xr-x  8 uucp   143      4096 Dec 18  2014 jdk1.8.0_31
-rw-rw-r--  1 shxd shxd  160901914 Sep 29 16:40 jdk-8u31-linux-x64.tar.gz
-rw-rw-r--  1 shxd shxd    1098603 Jun 11  2014 libunwind-1.1.tar.gz
drwxr-xr-x 35 7161 wheel      4096 Sep 29 22:46 mysql-5.6.28
-rw-rw-r--  1 shxd shxd   32182980 Jan  3  2016 mysql-5.6.28.tar.gz
-rw-rw-r--  1 shxd shxd   17699306 Sep 29 23:38 zookeeper-3.4.6.tar.gz
[shxd@iZbp10vmnn5rfggtb6aec4Z src]$ cd ..
[shxd@iZbp10vmnn5rfggtb6aec4Z ~]$ ll
total 36
drwxrwxr-x 2 shxd  shxd  4096 Sep 29 23:37 app
drwxrwxr-x 2 shxd  shxd  4096 Sep 29 23:37 bin
drwxrwxr-x 2 shxd  shxd  4096 Sep 29 23:37 conf
drwxrwxr-x 2 shxd  shxd  4096 Sep 29 23:37 local
drwxr-xr-x 3 mysql mysql 4096 Sep 29 22:57 mysql
drwxr-xr-x 3 root  root  4096 Sep 29 22:28 server
drwxr-xr-x 4 shxd  shxd  4096 Sep 29 23:41 src
drwxrwxr-x 2 shxd  shxd  4096 Sep 29 23:37 tomcat
drwxrwxr-x 3 shxd  shxd  4096 Sep 29 23:41 webapps
[shxd@iZbp10vmnn5rfggtb6aec4Z ~]$ cd webapps/
[shxd@iZbp10vmnn5rfggtb6aec4Z webapps]$ ll
total 4
drwxr-xr-x 10 shxd shxd 4096 Feb 20  2014 zookeeper-3.4.6
[shxd@iZbp10vmnn5rfggtb6aec4Z webapps]$ cd zookeeper-3.4.6/
[shxd@iZbp10vmnn5rfggtb6aec4Z zookeeper-3.4.6]$ ll
total 1564
drwxr-xr-x  2 shxd shxd    4096 Feb 20  2014 bin
-rw-rw-r--  1 shxd shxd   82446 Feb 20  2014 build.xml
-rw-rw-r--  1 shxd shxd   80776 Feb 20  2014 CHANGES.txt
drwxr-xr-x  2 shxd shxd    4096 Feb 20  2014 conf
drwxr-xr-x 10 shxd shxd    4096 Feb 20  2014 contrib
drwxr-xr-x  2 shxd shxd    4096 Feb 20  2014 dist-maven
drwxr-xr-x  6 shxd shxd    4096 Feb 20  2014 docs
-rw-rw-r--  1 shxd shxd    1953 Feb 20  2014 ivysettings.xml
-rw-rw-r--  1 shxd shxd    3375 Feb 20  2014 ivy.xml
drwxr-xr-x  4 shxd shxd    4096 Feb 20  2014 lib
-rw-rw-r--  1 shxd shxd   11358 Feb 20  2014 LICENSE.txt
-rw-rw-r--  1 shxd shxd     170 Feb 20  2014 NOTICE.txt
-rw-rw-r--  1 shxd shxd    1770 Feb 20  2014 README_packaging.txt
-rw-rw-r--  1 shxd shxd    1585 Feb 20  2014 README.txt
drwxr-xr-x  5 shxd shxd    4096 Feb 20  2014 recipes
drwxr-xr-x  8 shxd shxd    4096 Feb 20  2014 src
-rw-rw-r--  1 shxd shxd 1340305 Feb 20  2014 zookeeper-3.4.6.jar
-rw-rw-r--  1 shxd shxd     836 Feb 20  2014 zookeeper-3.4.6.jar.asc
-rw-rw-r--  1 shxd shxd      33 Feb 20  2014 zookeeper-3.4.6.jar.md5
-rw-rw-r--  1 shxd shxd      41 Feb 20  2014 zookeeper-3.4.6.jar.sha1
[shxd@iZbp10vmnn5rfggtb6aec4Z zookeeper-3.4.6]$ mkdir data log
[shxd@iZbp10vmnn5rfggtb6aec4Z zookeeper-3.4.6]$ ll
total 1572
drwxr-xr-x  2 shxd shxd    4096 Feb 20  2014 bin
-rw-rw-r--  1 shxd shxd   82446 Feb 20  2014 build.xml
-rw-rw-r--  1 shxd shxd   80776 Feb 20  2014 CHANGES.txt
drwxr-xr-x  2 shxd shxd    4096 Feb 20  2014 conf
drwxr-xr-x 10 shxd shxd    4096 Feb 20  2014 contrib
drwxrwxr-x  2 shxd shxd    4096 Sep 29 23:42 data
drwxr-xr-x  2 shxd shxd    4096 Feb 20  2014 dist-maven
drwxr-xr-x  6 shxd shxd    4096 Feb 20  2014 docs
-rw-rw-r--  1 shxd shxd    1953 Feb 20  2014 ivysettings.xml
-rw-rw-r--  1 shxd shxd    3375 Feb 20  2014 ivy.xml
drwxr-xr-x  4 shxd shxd    4096 Feb 20  2014 lib
-rw-rw-r--  1 shxd shxd   11358 Feb 20  2014 LICENSE.txt
drwxrwxr-x  2 shxd shxd    4096 Sep 29 23:42 log
-rw-rw-r--  1 shxd shxd     170 Feb 20  2014 NOTICE.txt
-rw-rw-r--  1 shxd shxd    1770 Feb 20  2014 README_packaging.txt
-rw-rw-r--  1 shxd shxd    1585 Feb 20  2014 README.txt
drwxr-xr-x  5 shxd shxd    4096 Feb 20  2014 recipes
drwxr-xr-x  8 shxd shxd    4096 Feb 20  2014 src
-rw-rw-r--  1 shxd shxd 1340305 Feb 20  2014 zookeeper-3.4.6.jar
-rw-rw-r--  1 shxd shxd     836 Feb 20  2014 zookeeper-3.4.6.jar.asc
-rw-rw-r--  1 shxd shxd      33 Feb 20  2014 zookeeper-3.4.6.jar.md5
-rw-rw-r--  1 shxd shxd      41 Feb 20  2014 zookeeper-3.4.6.jar.sha1
[shxd@iZbp10vmnn5rfggtb6aec4Z zookeeper-3.4.6]$ cd conf/
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ ll
total 12
-rw-rw-r-- 1 shxd shxd  535 Feb 20  2014 configuration.xsl
-rw-rw-r-- 1 shxd shxd 2161 Feb 20  2014 log4j.properties
-rw-rw-r-- 1 shxd shxd  922 Feb 20  2014 zoo_sample.cfg
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ cp zoo_sample.cfg zoo.cfg
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ ll
total 16
-rw-rw-r-- 1 shxd shxd  535 Feb 20  2014 configuration.xsl
-rw-rw-r-- 1 shxd shxd 2161 Feb 20  2014 log4j.properties
-rw-rw-r-- 1 shxd shxd  922 Sep 29 23:42 zoo.cfg
-rw-rw-r-- 1 shxd shxd  922 Feb 20  2014 zoo_sample.cfg
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ vi zoo.cfg 

# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial 
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between 
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just 
# example sakes.
dataDir=/home/shxd/webapps/
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the 
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
"zoo.cfg" 28L, 927C written                                                                             
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ pwd
/home/shxd/webapps/zookeeper-3.4.6/conf
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ ll
total 16
-rw-rw-r-- 1 shxd shxd  535 Feb 20  2014 configuration.xsl
-rw-rw-r-- 1 shxd shxd 2161 Feb 20  2014 log4j.properties
-rw-rw-r-- 1 shxd shxd  927 Sep 29 23:43 zoo.cfg
-rw-rw-r-- 1 shxd shxd  922 Feb 20  2014 zoo_sample.cfg
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ vi zoo.cfg 

# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial 
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between 
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just 
# example sakes.
dataDir=/home/shxd/webapps/zookeeper-3.4.6/data
dataLogDir=/home/shxd/webapps/zookeeper-3.4.6/log
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the 
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1
"zoo.cfg" 29L, 997C written                                                                             
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ ^C
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ ^C
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ ^C
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ cat /etc/in
init/    init.d/  inittab  inputrc  
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ cat /etc/init.d/
cat: /etc/init.d/: Is a directory
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ cat /etc/rc.local 
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ /home/sh/webapps/zookeeper-3.4.6/bin/zkServer.sh start
-bash: /home/sh/webapps/zookeeper-3.4.6/bin/zkServer.sh: No such file or directory
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ /home/shxd/webapps/zookeeper-3.4.6/bin/zk
zkCleanup.sh  zkCli.cmd     zkCli.sh      zkEnv.cmd     zkEnv.sh      zkServer.cmd  zkServer.sh   
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ /home/shxd/webapps/zookeeper-3.4.6/bin/zk
zkCleanup.sh  zkCli.cmd     zkCli.sh      zkEnv.cmd     zkEnv.sh      zkServer.cmd  zkServer.sh   
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ /home/shxd/webapps/zookeeper-3.4.6/bin/zk^C
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ ll
total 16
-rw-rw-r-- 1 shxd shxd  535 Feb 20  2014 configuration.xsl
-rw-rw-r-- 1 shxd shxd 2161 Feb 20  2014 log4j.properties
-rw-rw-r-- 1 shxd shxd  997 Sep 29 23:44 zoo.cfg
-rw-rw-r-- 1 shxd shxd  922 Feb 20  2014 zoo_sample.cfg
[shxd@iZbp10vmnn5rfggtb6aec4Z conf]$ cd ..
[shxd@iZbp10vmnn5rfggtb6aec4Z zookeeper-3.4.6]$ ll
total 1572
drwxr-xr-x  2 shxd shxd    4096 Feb 20  2014 bin
-rw-rw-r--  1 shxd shxd   82446 Feb 20  2014 build.xml
-rw-rw-r--  1 shxd shxd   80776 Feb 20  2014 CHANGES.txt
drwxr-xr-x  2 shxd shxd    4096 Sep 29 23:44 conf
drwxr-xr-x 10 shxd shxd    4096 Feb 20  2014 contrib
drwxrwxr-x  2 shxd shxd    4096 Sep 29 23:42 data
drwxr-xr-x  2 shxd shxd    4096 Feb 20  2014 dist-maven
drwxr-xr-x  6 shxd shxd    4096 Feb 20  2014 docs
-rw-rw-r--  1 shxd shxd    1953 Feb 20  2014 ivysettings.xml
-rw-rw-r--  1 shxd shxd    3375 Feb 20  2014 ivy.xml
drwxr-xr-x  4 shxd shxd    4096 Feb 20  2014 lib
-rw-rw-r--  1 shxd shxd   11358 Feb 20  2014 LICENSE.txt
drwxrwxr-x  2 shxd shxd    4096 Sep 29 23:42 log
-rw-rw-r--  1 shxd shxd     170 Feb 20  2014 NOTICE.txt
-rw-rw-r--  1 shxd shxd    1770 Feb 20  2014 README_packaging.txt
-rw-rw-r--  1 shxd shxd    1585 Feb 20  2014 README.txt
drwxr-xr-x  5 shxd shxd    4096 Feb 20  2014 recipes
drwxr-xr-x  8 shxd shxd    4096 Feb 20  2014 src
-rw-rw-r--  1 shxd shxd 1340305 Feb 20  2014 zookeeper-3.4.6.jar
-rw-rw-r--  1 shxd shxd     836 Feb 20  2014 zookeeper-3.4.6.jar.asc
-rw-rw-r--  1 shxd shxd      33 Feb 20  2014 zookeeper-3.4.6.jar.md5
-rw-rw-r--  1 shxd shxd      41 Feb 20  2014 zookeeper-3.4.6.jar.sha1
[shxd@iZbp10vmnn5rfggtb6aec4Z zookeeper-3.4.6]$ cd bin/
[shxd@iZbp10vmnn5rfggtb6aec4Z bin]$ ll
total 36
-rwxr-xr-x 1 shxd shxd  238 Feb 20  2014 README.txt
-rwxr-xr-x 1 shxd shxd 1937 Feb 20  2014 zkCleanup.sh
-rwxr-xr-x 1 shxd shxd 1049 Feb 20  2014 zkCli.cmd
-rwxr-xr-x 1 shxd shxd 1534 Feb 20  2014 zkCli.sh
-rwxr-xr-x 1 shxd shxd 1333 Feb 20  2014 zkEnv.cmd
-rwxr-xr-x 1 shxd shxd 2696 Feb 20  2014 zkEnv.sh
-rwxr-xr-x 1 shxd shxd 1084 Feb 20  2014 zkServer.cmd
-rwxr-xr-x 1 shxd shxd 5742 Feb 20  2014 zkServer.sh
[shxd@iZbp10vmnn5rfggtb6aec4Z bin]$ ./zkServer.sh start
JMX enabled by default
Using config: /home/shxd/webapps/zookeeper-3.4.6/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
[shxd@iZbp10vmnn5rfggtb6aec4Z bin]$ ps -aux |grep java
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
shxd     17412  1.3  1.3 3484624 52536 pts/1   Sl   23:45   0:00 java -Dzookeeper.log.dir=. -Dzookeeper.root.logger=INFO,CONSOLE -cp /home/shxd/webapps/zookeeper-3.4.6/bin/../build/classes:/home/shxd/webapps/zookeeper-3.4.6/bin/../build/lib/*.jar:/home/shxd/webapps/zookeeper-3.4.6/bin/../lib/slf4j-log4j12-1.6.1.jar:/home/shxd/webapps/zookeeper-3.4.6/bin/../lib/slf4j-api-1.6.1.jar:/home/shxd/webapps/zookeeper-3.4.6/bin/../lib/netty-3.7.0.Final.jar:/home/shxd/webapps/zookeeper-3.4.6/bin/../lib/log4j-1.2.16.jar:/home/shxd/webapps/zookeeper-3.4.6/bin/../lib/jline-0.9.94.jar:/home/shxd/webapps/zookeeper-3.4.6/bin/../zookeeper-3.4.6.jar:/home/shxd/webapps/zookeeper-3.4.6/bin/../src/java/lib/*.jar:/home/shxd/webapps/zookeeper-3.4.6/bin/../conf:.:/home/shxd/src/jdk1.8.0_31/lib/tools.jar:/home/shxd/src/jdk1.8.0_31/lib/dt.jar -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false org.apache.zookeeper.server.quorum.QuorumPeerMain /home/shxd/webapps/zookeeper-3.4.6/bin/../conf/zoo.cfg
shxd     17434  0.0  0.0 103252   844 pts/1    S+   23:46   0:00 grep java
[shxd@iZbp10vmnn5rfggtb6aec4Z bin]$ 

你可能感兴趣的:(JAVA)