golang 官网: https://go.dev/doc/install
# 创建目录mkdir -p /usr/local/softwares/packages && cd /usr/local/softwares/packages# 下载wget https://go.dev/dl/go1.19.3.linux-amd64.tar.gz# 修改目录mv /usr/local/softwares/packages/go /usr/local/softwares/go# 查看版本/usr/local/softwares/go/bin/go version
# 编辑vim /etc/profile# 配置# goexport GOLANG_HOME=/usr/local/softwares/goexport PATH=$PATH:$GOLANG_HOME/bin# 重载source /etc/profile