sudo apt-get zookeeper
Then create the default folder and config files which will be used by zookeeper.
1. Create "data" and "datalog" folder in the zookeeper root folder
2. Create a empty file and name it "myid"
3. Create zoo.cfg in conf/ folder
Here is one example about how to set configure files
# ZooKeeper server and its port no.
# ZooKeeper ensemble should know about every other machine in the ensemble
# specify server id by creating 'myid' file in the dataDir
# use hostname instead of IP address for convenient maintenance
# IP1, IP2 are your node IP or host name