Hyperledger Fabric服务启动与链码测试
目录 通过自动化脚本启动服务 通过手动方式启动服务 测试链码 一.通过自动化脚本启动服务 自动化脚本byfn.sh位于目录$HOME/hyfa/fabric-samples/first-network下,具体用途如下 $./byfn.sh -h //查看帮助说明 Usage: byfn.sh <mode> [-c <channel name>] [-t <timeout>] [-d <delay>] [-f <docker-compose-file>] [-s <dbtype>] [-l <language>] [-i <imagetag>] [-v] <mode> - one of 'up', 'down', 'restart', 'generate' or 'upgrade' - 'up' - bring up the network with docker-compose up - 'down' - clear the network with docker-compose down - 'restart' - restart the network - 'generate' - generate required certificates and genesis block - 'upgrade' - upgrade the network from version 1.1