Linux 安装Go环境
官方地址: https://go.dev/
镜像地址: https://golang.google.cn/dl/
1,下载Golang
下载tar包并解压到 /usr/local目录
1 | wget https://go.dev/dl/go1.23.1.linux-amd64.tar.gz |
2,配置环境变量
在/etc/profile
或者.bashrc
中配置Go的环境变量
1 | export GO111MODULE=on |
最后使用 source
命令更新一下环境变量就可以了
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
Comments