Installing Go
- Download the Go source package. In this example, the source package is saved to the /home directory.
cd /home wget https://dl.google.com/go/go1.17.7.linux-arm64.tar.gz
- Decompress the source package to the /usr/local directory.
tar -zxvf go1.17.7.linux-arm64.tar.gz -C /usr/local
- Set environment variables.
- Open the /etc/profile file.
vim /etc/profile
- Press i to enter the insert mode, and add the following content to the end of the file:
export GOROOT=/usr/local/go export PATH=$PATH:$GOROOT/bin
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the /etc/profile file.
- Make the environment variables take effect.
source /etc/profile
- View the installation path.
ls /usr/local/go

- View the version.
go version

Parent topic: Deploying and Installing etcd 3.1.20