Environment Win10 install VM running Ubuntu20.04 install zookeeper (Ubuntu is a new machine)

--------------------zookeeper environment configuration and installation -----------------------
environment Win10 Install VM and run Ubuntu20.04 (Ubuntu is a new machine) (Tucao is installed for the Nth time)

1. Just go in and ask for sudo apt-get update (otherwise the sudo apt install net-tools command cannot be used to query the IP, and there may be other commands that cannot be used)
2. Install sudo apt install net-tools
3. Install the java environment sudo apt install openjdk-8-jre-headless
4, ifconfig query IP
5, install ssh server: sudo apt-get install openssh-server (if apt-get cannot be used, try apt) (this is for remote shell connection)
6, create Folder: sudo mkdir /data cd /data
7, wget https://mirrors.estointernet.in/apache/zookeeper/zookeeper-3.6.2/apache-zookeeper-3.6.2-bin.tar.gz

8. sudo apt install vim-gtk3 (new machine requires step 1 update to install vim) (I don't know which vim is good for other blogs and use this for vim-gtk3)

9 、 tar -xvzf apache-zookeeper-3.6.2-bin.tar.gz

				gzip: stdin: unexpected end of file
				tar: Unexpected EOF in archive
				tar: Unexpected EOF in archive
				tar: Error is not recoverable: exiting now
				即使我第N次装还是报错了(我出现的原因:换了一下了一下WiFi,wget命令下载不完全)
				命令是没问题的

10. mv apache-zookeeper-3.6.2-bin zookeeper (change the file name to look more comfortable) 11.ls
zookeeper/conf/
12. cp ./zookeeper/conf/zoo_sample.cfg ./zookeeper/conf/zoo. cfg
13, ls zookeeper/conf/
14, vim zookeeper/conf/zoo.cfg (change according to your requirements)
15, ./zookeeper/bin/zkServer.sh start

Change to the win10 system
16, enter
Telnet 192.168.37.*** 2181 (test port is connected or not) on the command line (you are not sure what the connection looks like, you can try Telnet 192.168.37.*** 22 Step 5 will open port 22 ) (win10 Telnet needs to open the service)

Reference:
How to install Apache ZooKeeper on Ubuntu 20.04: https://www.cnblogs.com/a5idc/p/13772654.html
Detailed tutorial on enabling Telnet on Windows 10

Guess you like

Origin blog.csdn.net/qq_37596010/article/details/114408135