环境变量备份

❯ cat /etc/my.bashrc

# ------------------------ golang 配置 ------------------------
# export GOROOT="/usr/local/go/1.16.6"
export GOROOT="/usr/local/go/1.17.3"
export GOPATH="/home/john/wsp/gowork"
export GOBIN="/home/john/wsp/gowork/bin"
export PATH="$PATH:$GOROOT/bin:$GOBIN"

# ------------------- nodejs -----------------
export NODEJS_HOME=/usr/local/node/node-v14.17.3-linux-x64
export PATH=$PATH:$NODEJS_HOME/bin

# zsh
#
alias gf=gf

# --------------- 区块链超级账本 ------------------
export FABRIC_HOME=/opt/my-apps/fabric/2.2.1
export FABRIC_CFG_PATH=$FABRIC_HOME/config
export PATH=$FABRIC_HOME/bin:$FABRIC_CFG_PATH:$PATH

# ----------------- python --------------
export PYTHON_BIN=/home/john/.local/bin
export PATH=$PYTHON_BIN:$PATH
上一篇:区块链Fabric 之共识机制


下一篇:fabric node.js调用智能合约