go 环境

# ~/.bashrc里面加入
export GOROOT=/root/go
export GOPATH=/root/workspace
export PATH=$GOROOT/bin:$GOPATH/bin:$PATH

安装go

# 下载
cd root
wget http://ops:123123@soft2.ops.ac.cn:78/go/go1.7.4.linux-amd64.tar.gz
tar xzvf go1.7.4.linux-amd64.tar.gz

下载grafana文件

#
grafana/workspace.grafana.2.6.tar.gz

编译

cd /opt/gohome/workspace/src/github.com/grafana/grafana  
go run build.go setup  
go run build.go build
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-11 11:32:48

results matching ""

    No results matching ""