GolangNote

Golang笔记

在Koding 上搭建Golang 环境

Permalink

Golang 的包通过go get 安装,国内网络环境,好多包都下载不了或很慢,在Koding 上搭建Golang 环境是个不错的选择。

在Koding 上搭建Golang 环境

Koding.com 默认系统是ubuntu 64位,1G免费的内存,强劲的CPU

安装golang

到这里去下载 https://golang.google.cn/dl/

下面以go1.5.linux-amd64.tar.gz 为例

plaintext: Koding install golang
1
2
3
4
5
6
7
8
9
wget https://storage.googleapis.com/golang/go1.5.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.5.linux-amd64.tar.gz

vi ~/.profile

export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/goprojects
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin

几行命令搞定

Koding 推荐注册

Related articles

Write a Comment to "在Koding 上搭建Golang 环境"

Submit Comment Login
Based on Golang + fastHTTP + youdb | go1.16 Processed in 1ms