美文网首页
安装kingshard

安装kingshard

作者: 张大胆_6a19 | 来源:发表于2019-05-21 19:31 被阅读0次

一、安装go

1、CentOS7安装go语言环境

yum install golang -y

2、查看版本

go version
image.png

3、设置环境变量
在/etc/profile中添加GOROOT和GOPATH,如下:

export GOROOT=/usr/lib/golang
export GOPATH=/usr/local/go

生效配置

source /etc/profile

相关文章

网友评论

      本文标题:安装kingshard

      本文链接:https://www.haomeiwen.com/subject/whrszqtx.html