执行命令
peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f
说实话我到现在也没弄清楚这到底是个什么错误
搜了百度也没有搜到
2020-03-20 03:08:22.541 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
2020-03-20 03:08:23.989 UTC [common/tools/configtxgen/localconfig] Load -> INFO 002 Loaded configuration: /etc/hyperledger/fabric/configtx.yaml
Error: rpc error: code = Unavailable desc = transport is closing
后来换了个执行命令,立马ok
peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
开心的手舞足蹈
-rw-r--r-- 1 root root 15639 Mar 20 08:29 mychannel.block
参考链接如下:https://www.jianshu.com/p/14c06981882e