Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 761 Bytes

golang-install-en.md

File metadata and controls

39 lines (27 loc) · 761 Bytes

Build Go environment

Download the installation package

Unzip the package and move it to /usr/local/go

$ mv golang-1.13 /usr/local/go

Configure environment variables

export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin

Add the preceding configurations to the ~/.bashrc file. Run the source ~/.bashrc command to take effect.

Verify your installation

$ go version

Compile nebula-importer

Go to the nebula-importer project directory and run the following commands:

$ cd nebula-importer/cmd
$ go build -mod vendor -o nebula-importer
$ ./nebula-importer --help