EOS正式链环境部署
飞儿506
发表于 2022-11-8 17:49:29
121
0
0
安装Eos4 x" h. B. V- P! y
step1:下载源码进行安装
mkdir /home/eos-sources 0 R' g( T$ P4 _, f" D* W. ~ p
cd /home/eos-sources ) _; a o+ k) J6 _% f
git clone https://github.com/EOS-Mainnet/eos.git --recursive
cd eos
git checkout mainnet-1.0.6
git submodule update --init --recursive $ {) n. w# k+ q% Q+ o% c7 u
./eosio_build.sh + ~5 d$ Z& D- @9 T, }
step2:配置node
mkdir /opt/EOSmainNet
cd /opt/EOSmainNet
git clone https://github.com/CryptoLions/EOS-MainNet.git ./ 5 I3 L' @8 I$ D* |; n8 f! w
chmod -R 777 ./*.sh
chmod -R 777 ./Wallet/*.sh
step3:修改config.ini文件0 A% C0 ^: U0 c' H+ D7 b% ^% [
添加:filter-on = * 增加过滤器选项,可以查询账户相关交易* B. t) J9 n1 V- P
查询最新p2p地址,进行添加
step4:检查genesis. o* H5 c! s% G- w/ C" Z0 |
initial_key:“EOS7EarnUhcyYqmdnPon8rm7mBCTnBoot6o7fE2WzjvEX2TdggbL3”# H" z/ F0 u5 \
不相同则无法进行同步区块9 a; ]7 F+ G% [8 e5 W
step5:操作指令( ?9 e" K# A5 T8 X* D: a# a( H
//第一次运行则运行,删除区块和配置genesis.json
./start.sh --delete-all-blocks --genesis-json genesis.json. R) s7 h( E- z+ M
//启动节点
./start.sh : X* w: }5 T" v' k+ f: z# `3 @6 _
//启动钱包" A2 h7 ]& b) @" M* }6 f
./Wallet/start_wallet.sh
step6:验证是否安装成功6 f( M( r3 y) K" f/ k; M8 ~
//其中chain_id等于:aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e9066 _2 g2 {: O# L* f& X/ ?! A7 b
./cleos get info
{
"server_version": "c9b7a247",
"chain_id": "aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906",
"head_block_num": 4113455,
"last_irreversible_block_num": 4113128,
"last_irreversible_block_id": "003ec2e8a76b9b219ce53eb854c11024e6d2d17c66c603ecbbdbb4232ed3578e",1 i0 r/ X/ d1 m
"head_block_id": "003ec42fa45fb82eee5dc532213c396aa5ed8a114e382387a05d79b8e699e7aa",2 K2 p4 ~: e6 H [% N& [
"head_block_time": "2018-07-04T11:47:07.000",
"head_block_producer": "eosnewyorkio",
"virtual_block_cpu_limit": 200000000,! H) A( d8 O) n6 ?/ T$ j5 d4 n
"virtual_block_net_limit": 1048576000,' a% e- k/ |7 E$ N: v
"block_cpu_limit": 199900,7 r. t/ k( i' b* T# D' Y6 C
"block_net_limit": 1048576
}
更新EOS. c0 D' U4 ]) b" _
cd /opt/EOSmainNet
./stop.sh
cd /home/eos-sources/eos
rm -rf build/
//第一种9 W A v5 @0 ~+ Y3 r. H
git checkout mainnet-1.0.6
git submodule update --init --recursive & w+ V' `/ d/ u2 \3 L6 n
./eosio_build.sh 3 T$ D7 \) ]$ q6 w- Q- `
//第二种下载最新zip安装包
unzip -o eos-1.0.8.zip1 Q; j; E9 i7 F$ {! {3 q
./eosio_build.sh
成为第一个吐槽的人