ETH私有链搭建与使用-搭建区块链浏览器(5)

资讯 2024-06-24 阅读:72 评论:0
操作系统环境:CentOS 7.6.1810,操作基础目录/data,如无该目录请手动创建(mkdir /data)Operating system environment: CentOS 7.6.1810, Basic Director...
美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

操作系统环境:CentOS 7.6.1810,操作基础目录/data,如无该目录请手动创建(mkdir /data)

Operating system environment: CentOS 7.6.1810, Basic Directory of Operations/data, created manually without this directory (mkdir/data)

yum install -y yum-utils device-mapper-persistent-data lvm2

yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

yum update -y && yum install docker-ce

systemctl daemon-reload && systemctl restart docker && systemctl enable docker

docker --version

 

docker pull julianliu/eth-explorer:latest

docker images

 

docker run -d -p 8000:8000 --name eth-explorer julianliu/eth-explorer

docker ps

 

启动成功后,打开对应服务器8000端口访问权限即可看到界面,但界面上并没有区块数据,需要修改容器内页面配置 

After the start-up has been successful, the interface can be seen by opening the corresponding server's 8,000 port access rights, but there is no block data on the interface, and the page configuration in the container needs to be modified & nbsp;

docker exec -it eth-explorer sh

/app/app/app.js为容器内路径,修改app.js中GETH_HOSTNAME为自己的节点ip地址

/app/app/app/app.js as the inside path of the container, modifying the GETH_HOSTNAME in the app.js as its own node ip address

angular.min.js:https://mituxiaogaoyang.club/eth-source/angular.min.js

jquery.min.js:https://mituxiaogaoyang.club/eth-source/jquery.min.js

animate.min.css:https://mituxiaogaoyang.club/eth-source/animate.min.css

mainController.js:https://mituxiaogaoyang.club/eth-source/mainController.js

index.html:https://mituxiaogaoyang.club/eth-source/index.html

 

docker cp /root/nginx/html/eth-source/angular.min.js eth-explorer:/app/app/scripts

docker cp /root/nginx/html/eth-source/jquery.min.js eth-explorer:/app/app/scripts

docker cp /root/nginx/html/eth-source/animate.min.css eth-explorer:/app/app/styles

docker cp /root/nginx/html/eth-source/mainController.js eth-explorer:/app/app/scripts/controllers

docker cp /root/nginx/html/eth-source/index.html eth-explorer:/app/app
geth --datadir "https://www.cnblogs.com/mituxiaogaoyang/articles/data" --rpc --rpcaddr=0.0.0.0 --rpcport 8545 --rpccorsdomain "*" --rpcapi "eth,net,web3,personal,admin,txpool,debug,miner" --nodiscover --maxpeers 30 --networkid 1981 --port 30303 --allow-insecure-unlock --mine --miner.etherbase "0xFfD4a30C08d9f16F095f6315e14bd034F7d04fb0" console

 

 这里通过0xffd4a30c08d9f16f095f6315e14bd034f7d04fb0地址向0x1ef3c8b97c47ba09d01be4a0cf633d9f08ef4cd1地址转账2ETH,下面是区块链浏览器上的效果

& nbsp; Transfer of 2ETH via 0xffd4a30c08d9f16f095f6315e14bd034f7d04fb0 to 0x1ef3c8b97c47ba09d01be4a0cf633d9f08ef4cd1 address, below which is the effect on the block chain browser

 

 

 交易详情:

& nbsp; transaction details:

 

美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址
文字格式和图片示例

注册有任何问题请添加 微信:MVIP619 拉你进入群

弹窗与图片大小一致 文章转载注明

分享:

扫一扫在手机阅读、分享本文

发表评论
平台列表
美化布局示例

欧易(OKX)

  全球官网 大陆官网

币安(Binance)

  官网

火币(HTX)

  官网

Gate.io

  官网

Bitget

  官网

deepcoin

  官网
热门文章
  • 区块链社区有哪些?区块链社区是什么?

    区块链社区有哪些?区块链社区是什么?
    展开全文...
  • 0.00006694个比特币等于多少人民币/美金

    0.00006694个比特币等于多少人民币/美金
    0.00006694比特币等于多少人民币?根据比特币对人民币的最新汇率,0.00006694比特币等于4.53424784美元/32.5436 16人民币。比特币(BTC)美元(USDT)人民币(CNY)0.000066944.53424784【比特币密码】32.82795436 16比特币对人民币的最新汇率为:490408.64 CNY(1比特币=490408.64人民币)(1美元=7.24人民币)(0.00006694USDT=0.0004846456 CNY)汇率更新时...
  • 0.00015693个比特币等于多少人民币/美金

    0.00015693个比特币等于多少人民币/美金
    0.000 15693比特币等于多少人民币?根据比特币对人民币的最新汇率,0.000 15693比特币等于10.6 1678529美元/76.86554996人民币。比特币(BTC)【比特币价格翻倍】美元(USDT)人民币(CNY)0.000/克洛克-0/5693【数字货币矿机】10.6 167852976.8655254996比特币对人民币的最新汇率为:489,807.72 CNY(1比特币= 489,807.72人民币)(1美元=7.24人民币)(0.00015693 U...
  • 0.00003374个比特币等于多少人民币/美金

    0.00003374个比特币等于多少人民币/美金
    0.00003374比特币等于多少人民币?根据比特币对人民币的最新汇率,0.00003374比特币等于2.2826 1222美元/16.5261124728人民币。比特币(BTC)美元(USDT)人民币(CNY)0.00003374克洛克-0/22216.5261124728比特币对人民币的最新汇率为:489807.72 CNY(1比特币=489807.72人民币)(1美元=7.24人民币)(0.00003374USDT=0.0002442776 CNY)。汇率更新于2024...
  • 2018-5-31币圈简报

    2018-5-31币圈简报
    一、要闻资讯类I. KEY INFORMATION CATEGORY1、央视:数字货币在京揭牌成立!中国或为此突变!1. View: Digital currency is established in Kyoto! China or mutated for it!中国数字货币来了˂a href="https://mp.weixin.qq.com/s/69fxKCf8GKSCscS4lT8WCA" Target="_blank"rel="noformlow"" Chinese...
标签列表