配置命令别名
vim ~/.bashrc
配置命令别名
alias kn='kubectl -n '
alias k='kubectl '
配置golang环境变量
export GOPATH=/root/go
export GO111MODULE=on
export GOPROXY="http://mirros.yun.ali.com.cn:8848/goproxy"
export GOROOT=/usr/local/go
export PATH=$PATH:$GOPATH/bin:$GOROOT/bin
export GOSUMDB=off
生效
source ~/.bashrc