EOS正式链环境部署
飞儿506
发表于 2022-11-8 17:49:29
97
0
0
安装Eos; ]& W+ Y0 @. G
step1:下载源码进行安装% r. n$ H0 |. f% w- D Y& U1 S1 s
mkdir /home/eos-sources
cd /home/eos-sources
git clone https://github.com/EOS-Mainnet/eos.git --recursive
cd eos
git checkout mainnet-1.0.6 & I. c- E5 g" s- u2 D5 |
git submodule update --init --recursive ' l2 m: O& L' Y4 l
./eosio_build.sh
step2:配置node" a( f/ |" b1 {/ i- R x+ o
mkdir /opt/EOSmainNet # H3 N' j7 \7 q. Z8 b! v% Z
cd /opt/EOSmainNet. l# u2 K8 v+ g, U" R
git clone https://github.com/CryptoLions/EOS-MainNet.git ./ . k) Q; M, Y# \
chmod -R 777 ./*.sh
chmod -R 777 ./Wallet/*.sh ; B4 l6 e6 S1 D* {
step3:修改config.ini文件% \# v4 i3 @9 W; I& @+ j; a; j( b
添加:filter-on = * 增加过滤器选项,可以查询账户相关交易, h9 E. W! M6 ^$ @# G2 A
查询最新p2p地址,进行添加
step4:检查genesis. s; x0 b+ a2 q2 A1 x7 K' Q+ ^
initial_key:“EOS7EarnUhcyYqmdnPon8rm7mBCTnBoot6o7fE2WzjvEX2TdggbL3”
不相同则无法进行同步区块4 }; y5 u" g2 C1 D
step5:操作指令
//第一次运行则运行,删除区块和配置genesis.json
./start.sh --delete-all-blocks --genesis-json genesis.json
//启动节点" R! x; r; x8 O4 t1 v
./start.sh $ F& U8 b# e& Q. J5 t& F {$ e1 i
//启动钱包
./Wallet/start_wallet.sh % v8 s, s- }% y. S& g3 M6 z. |/ M
step6:验证是否安装成功
//其中chain_id等于:aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e9060 _1 c9 t# o9 z* H8 U
./cleos get info . n* {; W# Y- I) N
{
"server_version": "c9b7a247",
"chain_id": "aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906",
"head_block_num": 4113455,6 o0 N. r3 T, _" [
"last_irreversible_block_num": 4113128,0 i$ _: @3 V- J' A. X% _" ^' O, ^
"last_irreversible_block_id": "003ec2e8a76b9b219ce53eb854c11024e6d2d17c66c603ecbbdbb4232ed3578e",1 J: M3 Y! {* @
"head_block_id": "003ec42fa45fb82eee5dc532213c396aa5ed8a114e382387a05d79b8e699e7aa",$ B% }9 R0 m: |7 b1 w+ {
"head_block_time": "2018-07-04T11:47:07.000",# _ Y; Q1 z7 e& a- b, x
"head_block_producer": "eosnewyorkio",
"virtual_block_cpu_limit": 200000000,. _# I7 I$ u! V! x) g; D# N
"virtual_block_net_limit": 1048576000,
"block_cpu_limit": 199900,
"block_net_limit": 10485766 D- @6 i* o# `3 S) t& i
}4 m! J4 g- A1 H
更新EOS
cd /opt/EOSmainNet
./stop.sh
cd /home/eos-sources/eos 3 J- ^3 _! Q1 S7 ~
rm -rf build/
//第一种
git checkout mainnet-1.0.6
git submodule update --init --recursive
./eosio_build.sh 7 u* `2 v; e7 l
//第二种下载最新zip安装包
unzip -o eos-1.0.8.zip: t: v( Y" `9 J8 n* C: q; ~$ G4 y. F
./eosio_build.sh
成为第一个吐槽的人