配置Hyperledger Fabric2.0遇到的错误(更新中)
程序员文章站
2022-07-14 16:23:34
...
1. 将节点加入通道时,配置环境变量出现错误,如以下代码:
CORE_PEER_ADDRESS=peer0.org2.example.com:7051
可能出现的错误代码
Error: error getting endorser client for channel: endorser client failed to connect to peer0.org2.example.com:7051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 172.28.0.3:7051: connect: connection refused"
我们在设置peer0.org1.example.com时已经将监听端口设置为了7051,这里出现了重复定义问题,只要配置不同的监听端口,问题就会解决。常见的端口配置如下:
peer0.org2.example.com:9051
peer0.org1.example.com:7051
peer1.org1.example.com:8051
peer1.org2.example.com:1005
上一篇: Ubuntu设置快捷键截图