私链搭建(Ubuntu)

安装需要的软件

#ubuntu18
sudo apt-get install curl docker docker-compose golang nodejs npm python

软件

版本

docker

17.06.2-ce+

docker-compose

1.14.0+

go

1.9.x+

nodejs

8.9.x

bon

5.6.0

python

2.7.x

设置环境变量

#~/.bashrc
export GOPATH=$HOME/gopath
export PATH=$PATH:$GOPATH/bin

准备环境

#下载脚本
wget https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh

#运行脚本,可以考虑将里面的docker命令前增加su
./bootstrap.sh

运行私链

查看容器列表

查看交易细节

清理工作

最后更新于