go linux基本 开发环境 安装(包含常用软件包)
发布时间:2020-12-14 02:11:32 所属栏目:Linux 来源:网络整理
导读:yum install go -y mkdir -p /data/go echo export GO111MODULE=on /etc/profile echo export GOPATH=/data/go /etc/profile echo export GOPROXY=https://goproxy.io /etc/profile source /etc/profile git clone https://github.com/golang/sys.git $GOPAT
yum install go -y mkdir -p /data/go echo export GO111MODULE=on >> /etc/profile echo export GOPATH=/data/go >> /etc/profile echo export GOPROXY=https://goproxy.io >> /etc/profile source /etc/profile
git clone https://github.com/golang/sys.git $GOPATH/src/github.com/golang/sys git clone https://github.com/golang/net.git $GOPATH/src/github.com/golang/net git clone https://github.com/golang/text.git $GOPATH/src/github.com/golang/text git clone https://github.com/golang/lint.git $GOPATH/src/github.com/golang/lint git clone https://github.com/golang/tools.git $GOPATH/src/github.com/golang/tools git clone https://github.com/golang/crypto.git $GOPATH/src/github.com/golang/crypto git clone https://github.com/golang/sync.git $GOPATH/src/github.com/golang/sync git clone https://github.com/golang/time.git $GOPATH/src/github.com/golang/time git clone https://github.com/golang/image.git $GOPATH/src/github.com/golang/image ln -s $GOPATH/src/golang.org/x $GOPATH/src/github.com/golang/ (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |