Store the compressed file in the /opt/ directory of the virtual machine, unzip the file and delete it
Change the file name of the configuration file to zoo.cfg (this file name is recognized by default, this is required)
Create a data file, which is automatically stored in the file at runtime
Enter the zoo.cfg configuration file, change the content and change the usage path of the data file
Configure environment variables, enter profile to update environment variables
Add a path, configure its environment, and just go to the bin directory
Restart the configuration file to ensure that the configuration has been updated
jps to check whether it has succeeded, if there is OuorumPeerMain, it means success
After the environment variables are configured, you can directly use the command to close zookeeper
You can enter the zookeeper service, and you can use quit to exit
The internal command of zookeeper, after configuring the environment variables of zookeeper, enter zookeeper through zkCli.sh
Create a node: create [ -s: persistent node] [ -e: temporary node] / "node name" [node data] (if omitted, the default is a persistent node)
Modify node: set /"node name" [node data]
Delete a node: delete /"node name"
View node: get /"node name"