我正在尝试将区块链资源管理器(在本地运行)与超级账本网络(在ec2实例上运行)连接起来。我面临一些问题。这些是我遵循的步骤:Hyperledger网络正在ec2实例上运行。检查了日志,并确保端口未被防火墙阻止。在explorerconfig.json中将同步类型设置为“主机”网络是非TLS的。因此,给定“ tlsEnable”:config.json文件中的false。也使用grpc代替grpcs。网址类似于grpc://2.43.155.20:7051,其中2.43.155.20是ec2实例的ip。构建后,当我运行./start.sh时,出现以下错误: 2019-02-26T09:40:11.361Z-[31merror [39m:[Remote.js]]:错误:失败 在截止日期URL之前连接:grpc:// localhost:7050 >>>>>>>>>>>>>>>>>>>>>> { 错误:在截止日期URL:grpc:// localhost:7050之前无法连接 在checkState(blockchain-explorer / node_modules / grpc / src / client.js:720:16) connectFailed:true}收到终止信号,正常关闭 封闭连接谁能让我知道是什么原因引起的?**注意:我在同一实例上安装了Explorer和Fabric网络,并将它们连接起来。有效。现在,当我尝试连接到托管网络的其他实例时,它不起作用。编辑config.json的位置:blockchain-explorer / app / platform / fabric / config.json。内容:{ "network-configs": { "network-1": { "version": "1.0", "clients": { "client-1": { "tlsEnable": false, "organization": "Org1MSP", "channel": "mychannel", "credentialStore": { "path": "./tmp/credentialStore_Org1/credential", "cryptoStore": { "path": "./tmp/credentialStore_Org1/crypto" } } } }, "channels": { "mychannel": { "peers": { "peer0.org1.example.com": {} }, "connection": { "timeout": { "peer": { "endorser": "6000", "eventHub": "6000", "eventReg": "6000" } } } } }, "organizations": { "Org1MSP": { "mspid": "Org1MSP", "fullpath": false, "adminPrivateKey": { "path": "$PATH/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/keystore" }, "signedCert": { "path": "$PATH/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/signcerts" } }, "OrdererMSP": { "mspid": "OrdererMSP", "adminPrivateKey": { "path": "$PATH/crypto-config/ordererOrganizations/example.com/users/[email protected]/msp/keystore" } } }, "peers": { "peer0.org1.example.com": { "tlsCACerts": { "path": "$PATH/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt" }, "url": "grpc://2.43.155.20::7051", "eventUrl": "grpc://2.43.155.20::7053", "grpcOptions": { "ssl-target-name-override": "peer0.org1.example.com" } }, "peer1.org1.example.com": { "url": "grpc://2.43.155.20::8051" } }, "orderers": { "orderer.example.com": { "url": "grpc://2.43.155.20::7050" } } }, "network-2": {} }, "configtxgenToolPath": "$SOME_PATH/hyperledger/fabric/common/tools", "license": "Apache-2.0"} (adsbygoogle = window.adsbygoogle || []).push({}); 最佳答案 Hyperledger Explorer正在尝试连接到订购者节点,但是他使用了错误的主机。您是否在config.json中检查了订购者节点主机? grpc://2.43.155.20:7050 (adsbygoogle = window.adsbygoogle || []).push({}); 09-04 09:10