标签:amp docke 介绍 systemctl arc linux star sys local
本文介绍如何在Ubuntu18.04中搭建Fabric1.4实验环境,默认使用root用户。
go1.13.4.linux-amd64.tar.gz。tar -zxvf go1.13.4.linux-amd64.tar.gz -C /usr/local/编辑$HOME/.bashrc,在末尾增加如下内容:
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH. $HOME/.bashrc查看go版本信息:go --version
apt install apt-transport-https ca-certificates software-properties-common curl添加GPG密钥,并添加Docker-ce软件源,这里使用中国科技大学提供的源
curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu $(lsb_release -cs) stable"apt update -y && apt install -y docker-ce docker-composesystemctl enable docker && systemctl start docker测试执行:docker run hello-world
wget https://nodejs.org/dist/v12.13.0/node-v12.13.0-linux-x64.tar.xztar -xvf node-v12.13.0-linux-x64.tar.xz -C /opt/$HOME/.bashrc,末尾添加如下内容:export NODEJS_HOME=/opt/node-v12.13.0-linux-x64
export PATH=$NODEJS_HOME/bin:$PATH
source $HOME/.bashrcmkdir -p $GOPATH/src/hyperledger && cd $GOPATH/src/hyperledgercurl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh > bootstrap.sh && chmod +x bootstrap.sh && ./bootstrap.shdocker images标签:amp docke 介绍 systemctl arc linux star sys local
原文地址:https://www.cnblogs.com/lianshuiwuyi/p/11819131.html