#https://go.dev/dl/
mv /usr/local/go /usr/local/go_bak$(date +%Y%m%d%H%M)
wget -c https://dl.google.com/go/go1.18.3.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local
#echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bashrc 
source ~/.bashrc
go version

发表回复

您的电子邮箱地址不会被公开。

Captcha Code