ubuntn 16.04部署Hyperledger Explorer

本文档详细介绍了在Ubuntu 16.04上部署Hyperledger Explorer的步骤,包括环境配置、数据库设置、Fabric网络启动、Explorer配置和运行。在安装过程中,可能会遇到权限问题和依赖安装,文中提供了相应的解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

参考文档:https://github.com/hyperledger/blockchain-explorer

1、环境要求

  • nodejs 8.11.x(nodejs 9.x不支持)
  • Postgresql 9.5以及更新版本
sudo apt update
sudo apt install postgresql postgresql-contrib
  • Jq ubuntu安装
sudo apt-get install jq

2、Clone 仓库

cd ~/go/src/github.com/hyperledger/
git clone https://github.com/hyperledger/blockchain-explorer.git
cd blockchain-explorer
git checkout v0.3.9.5

3、数据库设置

cd blockchain-explorer/app

更改explorerconfig.json更新postgresql属性(默认即可,不需要更改)

"postgreSQL": {
   
   
	"host": "127.0.0.1",
	"port": "5432",
	"database": "fabricexplorer",
	"username": "hppoc",
	"passwd": "password"
}

执行创建数据库脚本

cd blockchain-explorer/app/persistence/fabric/postgreSQL/db
./createdb.sh

如果提示permission denied,那么更改/root文件夹权限

chmod +x /root

4、启动Fabric Network

参考

评论 16
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值