|
|
|
@ -58,7 +58,7 @@ export GOROOT=/usr/local/go
|
|
|
|
|
export PATH=$GOROOT/bin:$PATH
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
6. $PATH 激活环境变量: source /etc/profile
|
|
|
|
|
6. 激活环境变量: source /etc/profile
|
|
|
|
|
7. 验证安装成功,使用 go version 结果如图所示:
|
|
|
|
|
|
|
|
|
|
![Golang 安装成功](https://img-blog.csdnimg.cn/d449c551a6d449d7a640752149be939c.png)
|
|
|
|
|