install dependencies
golang
The version 15-17 is installed here
wget -c https://dl.google.com/go/go1.15.2.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local
Add environment variables
This can be done by adding the following line to /etc/profile (system-wide installation) or $HOME/.profile (current user installation)
vim /etc/profile
或者
vim ~/.profile
export PATH=$PATH:/usr/local/go/bin
Refresh environment variables
source ~/.profile
export GOPROXY=https://goproxy.cn,direct
git
sudo apt install -y git
curl
An error will be reported here, so download a
sudo apt install -y curl