# fabric **Repository Path**: inetcommunity/fabric ## Basic Information - **Project Name**: fabric - **Description**: fabric1.4.1 国密改造项目 - **Primary Language**: Go - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-26 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 国密fabric base1.4.1 ### 单机测试 #### 第一步:源码编译(Makefile做过修改,编译过程到报出err为止,必要的镜像已制作完成) $: mkdir -p $GOPATH/src/hyperledger && cd $GOPATH/src/hyperledger $: git clone http://gogs.server.chentreasure.com/cbxx.org/fabric-1.4.git $: mv fabric-1.4 fabric && cd fabric $: chmod 775 scripts/* $: make #### 第二步:测试工具(fabric-samples) $: cd ~ && git clone https://github.com/hyperledger/fabric-samples.git $: cd fabric-samples && checkout -f v1.4.1 $: cp -r $GOPATH/src/hyperledger/fabric/.build/bin ./ $: cd first-network 启动网络 $: ./byfn.sh up #直接启动或因启动顺序问题会有报错, 直接运行下一步 $: ./byfn.sh restart #### 附录:fabric-samples/first-network/byfn.sh 命令参数 Taking all defaults: byfn.sh generate #生成证书 byfn.sh up #启动 byfn.sh down #关闭 DIY network. e.g.: byfn.sh up #默认反式启动 byfn.sh up -c mychannel -s couchdb #设置数据库为couchdb byfn.sh up -c mychannel -s couchdb -o kafka #设置共识模式为kafka模式,支持solo,kafka, etcdraft