sudo apt update sudo apt install gitsudo apt install curlsudo apt install docker.iosudo apt install docker - compose 下载gowget https: //dl.google.com/go/go1.10.3.linux- amd64.tar.gz解压go文件sudo tar -zxvf go1.10.3.linux-amd64.tar.gz
sudo apt update sudo apt install git sudo apt install curl sudo apt install docker.io sudo apt install docker-compose
下载go wget https://dl.google.com/go/go1.10.3.linux-amd64.tar.gz 解压go文件 sudo tar -zxvf go1.10.3.linux-amd64.tar.gz -C /usr/local/ 配置go的环境变量 sudo vim /etc/profile
export GOPATH=$HOME/go export GOROOT=/usr/local/go export PATH=$GOROOT/bin:$PATH
source /etc/profile
然后
go env查看环境是否配置成功
创建bootstrap.sh文件,然后拷贝下面的内容到该文件下
https://github.com/hyperledger/fabric/blob/master/scripts/bootstrap.sh chmod +x bootstrap.sh
赋予权限
chmod +x bootstrap.sh
sudo ./bootstrap.sh 1.2.0
该脚本会把镜像,跟编译文件都下载好,脚本下完后,进入到
cd fabric-samples/first-network
执行
sudo ./byfn.sh up
关闭
sudo ./byfn.sh down