下載安裝包
go下載:docker
下載地址:https://golang.google.cn/dl/bash
lazydocker下載:markdown
下載地址:wget https://github.com/jesseduffield/lazydocker/releases/download/v0.2.4/lazydocker_0.2.4_Linux_x86_64.tar.gzide
建立安裝目錄移動並解壓到安裝目錄
mkdir -p ~/support/gopath mv go1.11.linux-amd64.tar.gz ~/support tar -xzvf go1.11.linux-amd64.tar.gz
添加環境變量
[ocetl@x666 ~]$ vi .bash_profile #go export GOROOT=~/support/go export GOPATH=~/support/gopath export PATH=${GOROOT}/bin:$PATH export PATH=${GOPATH}/bin:$PATH
source ~/.bash_profile
查看環境變量是否生效
[ocetl@x666 ~]$ go version go version go1.11 linux/amd64