美文网首页
first-network实践

first-network实践

作者: ccDown | 来源:发表于2019-06-10 17:20 被阅读0次

1.安装证书

[/go/src/github.com/hyperledger/fabric/common/configtx/tool/configtxgen] $ go install --tags=nopkcs11

[/go/src/github.com/hyperledger/fabric/common/tools/cryptogen] $ go install --tags=nopkcs11

2.切换版本

[fabric-samples]$ git checkout release-1.0
  1. 进入到first-network目录下创建名字为testchannel的渠道(可选择安装couchdb数据库)
cd first-network
./bync.sh -m generate -c testchannel 

如果需要连接couchdb数据库,则需要在后边添加-s couchdb

4.启动testchannel渠道(可选择启动couchdb数据库)

./byfn.sh -m up -c testchannel

如果需要连接couchdb数据库,则需要在后边添加-s couchdb

5.开启客户端cli

docker exec -it cli bash

Attention

注意啊,cli客户端默认是10秒钟就关闭了。需要使用时间长一点的得在开启通道的时候设置开启客户端的时间: ./byfn.sh -m up -c testchannel -t 时间

相关文章

网友评论

      本文标题:first-network实践

      本文链接:https://www.haomeiwen.com/subject/unluxctx.html