在cli终端中设置好环境变量之后运行创建通道的语句:
peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/msp/tlscacerts/tlsca.example.com-cert.pem
然后得到如下错误:
2023-05-06 07:37:47.207 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
Error: Error getting broadcast client: rpc error: code = Unavailable desc = transport: write tcp 172.19.0.7:53434->172.19.0.4:7050: write: broken pipe
Usage:
peer channel create [flags]
Flags:
-c, --channelID string In case of a newChain command, the channel ID to create.
-f, --file string Configuration transaction file generated by a tool such as configtxgen for submitting to orderer
-t, --timeout int Channel creation timeout (default 5)
Global Flags:
--cafi