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 推荐注册

本文网址: https://golangnote.com/topic/27.html 转摘请注明来源

Related articles

Golang phantomjs 动态代理实现

phantomjs 是个很优秀的软件,虽然现在被chrome headless 抢了风头,但在某些特定场合,使用phantomjs 还是很方便,这里是介绍使用Go 实现动态代理。...

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

Submit Comment Login
Based on Golang + fastHTTP + sdb | go1.22.3 Processed in 2ms