#https://blog.golang.org/go1.17
mv /usr/local/go /usr/local/go_bak$(date +%Y%m%d%H%M)
wget -c https://dl.google.com/go/go1.18beta1.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