博客
关于我
Hyperledger Burrow 集成区块链浏览器blockscout
阅读量:126 次
发布时间:2019-02-27

本文共 1258 字,大约阅读时间需要 4 分钟。

环境

  • os:centos7.6
  • docker-ce:19.03.5
  • burrow:0.30.2

下载源码

git clone https://github.com/poanetwork/blockscout cd blockscout

构建docker镜像并启动

  1. 修改start ,blockscout修改为-d
cd dockervi Makefile

Makefile

start: build postgres        @echo "==> Starting blockscout"        @docker run -d --name $(BS_CONTAINER_NAME) \                                        $(BLOCKSCOUT_CONTAINER_PARAMS) \                                        -p 4000:4000 \                                        $(DOCKER_IMAGE) /bin/sh -c "mix phx.server"
  1. 构建镜像并启动容器
ETHEREUM_JSONRPC_VARIANT=ganache \ETHEREUM_JSONRPC_HTTP_URL=http://192.168.130.11:26860 \make start

ETHEREUM_JSONRPC_HTTP_URLBurrowweb3监听地址

  1. 检查是否启动
docker ps
CONTAINER ID        IMAGE                 COMMAND                  CREATED             STATUS              PORTS                                                                              NAMES322ba65b6988        blockscout_prod       "/bin/sh -c 'mix phx…"   8 seconds ago       Up 7 seconds                                                                                           blockscout1d7e60050565        postgres:10.10        "docker-entrypoint.s…"   36 minutes ago      Up 36 minutes       0.0.0.0:5432->5432/tcp

注意:这里没有将数据目录挂载到宿主机,重启后数据会丢失

查看

打开浏览器:http://yourip:4000

在这里插入图片描述

转载地址:http://eyib.baihongyu.com/

你可能感兴趣的文章
Nginx/Apache反向代理
查看>>
Nginx: 413 – Request Entity Too Large Error and Solution
查看>>
nginx: [emerg] getpwnam(“www”) failed 错误处理方法
查看>>
nginx: [emerg] the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:
查看>>
nginx: [error] open() “/usr/local/nginx/logs/nginx.pid“ failed (2: No such file or directory)
查看>>
nginx:Error ./configure: error: the HTTP rewrite module requires the PCRE library
查看>>
Nginx:objs/Makefile:432: recipe for target ‘objs/src/core/ngx_murmurhash.o‘解决方法
查看>>
nginxWebUI runCmd RCE漏洞复现
查看>>
nginx_rtmp
查看>>
Vue中向js中传递参数并在js中定义对象并转换参数
查看>>
Nginx、HAProxy、LVS
查看>>
nginx一些重要配置说明
查看>>
Nginx一网打尽:动静分离、压缩、缓存、黑白名单、跨域、高可用、性能优化......
查看>>
Nginx下配置codeigniter框架方法
查看>>
Nginx与Tengine安装和使用以及配置健康节点检测
查看>>
Nginx中使用expires指令实现配置浏览器缓存
查看>>
Nginx中使用keepalive实现保持上游长连接实现提高吞吐量示例与测试
查看>>
Nginx中如何配置WebSocket代理?
查看>>
Nginx中实现流量控制(限制给定时间内HTTP请求的数量)示例
查看>>
nginx中配置root和alias的区别
查看>>