(1) download and install zookeeper, basic configuration, detailed tutorial: https://www.cnblogs.com/excellencesy/p/11956485.html
(2) are arranged in the above manner is mounted on the three virtual machines.
(3) perform the following operations on the basis of the above:
1) modify the configuration file zoo.cfg
Configure the log directory: free configuration, directory exists to
2) Create a file in a directory on myid showing the arrangement of dataDir, the configuration in which an id
(4) End Modify starts or restarts zookeeper
Start: in the bin directory: ./ zkServer.sh start
Restart: In the bin directory: ./ zkServer.sh restart