Hyperledger Explorer部署
安装Hyperledger Explorer
1、下载源代码(版本必须与Fabric的版本对应)
git clone https://github.com/hyperledger/blockchain-explorer.git
2、修改配置文件
docker-compose.yaml
version: '2.1'volumes:pgdata:credentialstore:networks:mynetwork.com:external:name: artifacts_defaultservices:explorerdb.mynetwork.com:image: hyperledger/explorer-db:latestcontainer_name: explorerdb.mynetwork.comhostname: explorerdb.mynetwork.comenvironment:- DATABASE_DATABASE=fabricexplorer- DATABASE_USERNAME=hppoc- DATABASE_PASSWORD=passwordvolumes:- ./app/persistence/fabric/postgreSQL/db/createdb.sh:/docker-entrypoint-initdb.d/createdb.sh- pgdata:/var/lib/postgresql/datanetworks:- mynetwork.comexplorer.mynetwork.com:image: hyperledger/explorer:latestcontainer_name: explorer.mynetwork.comhostname: explorer.mynetwork.comenvironment:- DATABASE_HOST=explorerdb.mynetwork.com- DATABASE_USERNAME=hppoc- DATABASE_PASSWD=password- ENROLL_ID=hlbeuser- DISCOVERY_AS_LOCALHOST=falsevolumes:# 这里修改config.json、crypto-config的路径为我们自己的文件路径- /root/blockchain-explorer/examples/net1/config.json:/opt/explorer/app/platform/fabric/config.json- /root/blockchain-explorer/examples/net1/crypto-config:/tmp/crypto- credentialstore:/opt/tmp# 添加hosts映射:这个主要原因是explorer与peer通信有问题,所以通过主机端口的方式- ./exp-hosts:/etc/hostscommand: sh -c "sleep 16&& node /opt/explorer/main.js && tail -f /dev/null"ports:- 8080:8080networks:- mynetwork.com
examples/net1/config.json
主要修改Path为fabric-network的crypto-config路径和每个Peer的端口
{"network-configs": {"network-1": {"version": "1.0","clients": {"client-1": {"tlsEnable": true,"organization": "Org2","channel": "mychannel","credentialStore": {"path": "./tmp/credentialStore_Org2/credential","cryptoStore": {"path": "./tmp/credentialStore_Org2/crypto"}}}},"channels": {"mychannel": {"peers": {"peer0.org1.example.com": {},"peer1.org1.example.com": {},"peer0.org2.example.com": {},"peer1.org2.example.com": {}},"connection": {"timeout": {"peer": {"endorser": "6000","eventHub": "6000","eventReg": "6000"}}}}},"organizations": {"Org1": {"mspid": "Org1MSP","fullpath": false,"adminPrivateKey": {"path": "/root/fabric/fabric-samples/first-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore"},"signedCert": {"path": "/root/fabric/fabric-samples/first-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts"},"certificateAuthorities": ["ca-org1"],"peers": ["peer0.org1.example.com", "peer1.org1.example.com"]},"Org2": {"mspid": "Org2MSP","adminPrivateKey": {"path": "/root/fabric/fabric-samples/first-network/crypto-config/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/keystore"},"signedCert": {"path": "/root/fabric/fabric-samples/first-network/crypto-config/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/signcerts"},"certificateAuthorities": ["ca-org2"],"peers": ["peer0.org2.example.com", "peer1.org2.example.com"]},"OrdererMSP": {"mspid": "OrdererMSP","adminPrivateKey": {"path": "/root/fabric/fabric-samples/first-network/crypto-config/ordererOrganizations/example.com/users/Admin@example.com/msp/keystore"}}},"peers": {"peer0.org1.example.com": {"tlsCACerts": {"path": "/root/fabric/fabric-samples/first-network/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"},"url": "grpcs://peer0.org1.example.com:7051","eventUrl": "grpcs://peer0.org1.example.com:7053","grpcOptions": {"ssl-target-name-override": "peer0.org1.example.com"}},"peer1.org1.example.com": {"tlsCACerts": {"path": "/root/fabric/fabric-samples/first-network/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt"},"url": "grpcs://peer1.org1.example.com:8051","eventUrl": "grpcs://peer1.org1.example.com:8053","grpcOptions": {"ssl-target-name-override": "peer1.org1.example.com"}},"peer0.org2.example.com": {"tlsCACerts": {"path": "/root/fabric/fabric-samples/first-network/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt"},"url": "grpcs://peer0.org2.example.com:9051","eventUrl": "grpcs://peer0.org2.example.com:9053","grpcOptions": {"ssl-target-name-override": "peer0.org2.example.com"}},"peer1.org2.example.com": {"tlsCACerts": {"path": "/root/fabric/fabric-samples/first-network/crypto-config/peerOrganizations/org2.example.com/peers/peer1.org2.example.com/tls/ca.crt"},"url": "grpcs://peer1.org2.example.com:10051","eventUrl": "grpcs://peer1.org2.example.com:10053","grpcOptions": {"ssl-target-name-override": "peer1.org2.example.com"}}},"orderers": {"orderer.example.com": {"url": "grpcs://orderer.example.com:7050"}},"certificateAuthorities": {"ca-org1": {"url": "https://ca.org1.example.com:7054","httpOptions": {"verify": false},"tlsCACerts": {"path": "/root/fabric/fabric-samples/first-network/crypto-config/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem"},"caName": "ca-org1"},"ca-org2": {"url": "https://ca.org2.example.com:7054","httpOptions": {"verify": false},"tlsCACerts": {"path": "/root/fabric/fabric-samples/first-network/crypto-config/peerOrganizations/org2.example.com/ca/ca.org2.example.com-cert.pem"},"caName": "ca-org2"}}},"network-2": {}},"configtxgenToolPath": "fabric-path/fabric-samples/bin","license": "Apache-2.0"
}
3、启动Hyperledger Explorer
docker-compose -f docker-compose.yaml up -d
通过local host:8080访问explorer
4、停止Hyperledger Explorer
docker-compose -f docker-compose.yaml down
Hyperledger Explorer部署相关推荐
- Hyperledger Explorer 区块链浏览器
Hyperledger Explorer 部署 Hyperledger Explorer 是一款简单,功能强大,易于使用且易于维护的开源浏览器,目的是为了能够监控链码.查看区块.调用链码等,这个项目目 ...
- (Fabric学习八)部署区块链浏览器Hyperledger explorer
区块链浏览器Hyperledger explorer: 区块链浏览器:官方网站https://github.com/hyperledger-labs/blockchain-explorer 可以看到他 ...
- Ubuntu20.04下安装fabric2.4环境 从零开始超详细步骤【亲测有效】及Hyperledger Explorer安装
可参考: Hyperledger Fabric2.3 环境搭建及Fabric 测试网络使用_小青蛙呱呱跳的博客-CSDN博客1.安装ubuntu20Download Ubuntu Desktop | ...
- hyperledger cello部署
cello部署分为master节点部署和worker节点部署, master节点为管理baas平台的节点,worker节点为工作节点, worker节点可以跟master节点部署在一起,也可以分开. ...
- Hyperledger Fabric 部署在多个主机上
前言 在实验Hyperledger Fabric无排序组织以Raft协议启动多个Orderer服务.TLS组织运行维护Orderer服务中,我们已经完成了使用提供 TLS-CA 服务的 council ...
- Hyperledger Fabric之Explorer区块链浏览器
前言 我们之前既然安装了区块链的环境并且可以自己进行开发chaincode,但是我们并不能对整个区块链网络有个直观的了解,Hyperledger Explorer正是一款简单,功能强大,易于使用且易于 ...
- 在Centos7下Hyperledger Cello安装部署和简单使用
超级账本Hyperledger Cello安装部署和简单使用 Cello GitHub Hyperledger Cello 帮助有效管理区块链网络. 用途 快速构建区块链即服务(BaaS)平台. 立即 ...
- 部署 Hyperledger Cello 文档
概述 Hyperledger Cello是Hyperledger下的一个子项目,其主要功能如下: 1. 管理区块链的生命周期,例如自动创建/启动/停止/删除/保持健康状态.2. 支持定制(例如,大小, ...
- Hyperledger Fabric explorer区块链浏览器搭建
https://github.com/hyperledger-labs/blockchain-explorer 官方浏览器的github地址 根据文档,采用docker容器的方法搭建explorer. ...
- Hyperledger Fabric介绍
转载地址 https://blog.csdn.net/xiaonu123/article/details/81006936 简介 Hyperledger介绍 超级账本(Hyperledger)项目是首 ...
最新文章
- Linux中读写权限
- MyBatis中提示:You have an error in your SQL syntax; check the manual that corresponds to your MySQL ser
- 英特尔物联网产业的布局中,优势和劣势都在哪?
- 安卓APP_ Fragment(4)—— Fragment + ViewPager2 模拟微信首页 (1)两者联动实现翻页
- Tensorflow之安装
- yaml加配置文件后起不来_YAML配置文件管理资源
- PNG免扣素材|圣诞树海报素材,元素很多哦!
- python的全局变量 local variable ‘xxx‘ referenced before assignment
- python用正方形画圆_Python 用turtle实现用正方形画圆的例子
- 在sql中如何插入数据
- VUX 移动前端框架使用文档
- 主管都在用项目管理Excel表格模板管理项目
- solidworks2015安装教程
- vue音乐播放器笔记
- Js学习心得和思考方法
- 韦仕敦大学计算机科学,2020年西安大略大学有哪些优势专业
- java 最短遍历路径_凯文培根游戏的最短路径图遍历
- PAT甲级考纲(最少的时间换尽可能多的分数)
- 春天正是补气的好时刻,喝枸杞+黄芪就对了
- android 黑屏定位,如何将黑屏Android修复为正常
热门文章
- 一个程序员未来5年的规划
- 【毕业设计】基于springboot的个人博客系统
- javaweb实现个人博客系统
- 一只100万年也不死的猫
- SpringCloud-使用熔断器防止服务雪崩-Ribbon和Feign方式(附代码下载)
- 西门子三开接线图解_接近开关三线制接线方法
- 电信路由器用linux开发板,WRTnode: WRTnode是基于家用无线路由器芯片的开源Linux开发板,想法源于我之前的项目和产业经验...
- ubuntu 下载以及安装CPAN
- Browsing HDFS报错
- Github建立个人导航网站