EOS正式链环境部署
飞儿506
发表于 2022-11-8 17:49:29
93
0
0
安装Eos
step1:下载源码进行安装
mkdir /home/eos-sources 7 b, X l* |$ P* Z h
cd /home/eos-sources
git clone https://github.com/EOS-Mainnet/eos.git --recursive 5 s: t$ F. M ]9 o9 \, P0 \# p
cd eos
git checkout mainnet-1.0.6
git submodule update --init --recursive
./eosio_build.sh 6 y- c# |, b; G" x: u3 V' |
step2:配置node
mkdir /opt/EOSmainNet 1 V' A8 b, o! y* s& b" D, }. I- c
cd /opt/EOSmainNet
git clone https://github.com/CryptoLions/EOS-MainNet.git ./ 3 [0 y9 l: u( p9 X! `' ?
chmod -R 777 ./*.sh
chmod -R 777 ./Wallet/*.sh ' G# F# `) Z$ }6 X7 h
step3:修改config.ini文件
添加:filter-on = * 增加过滤器选项,可以查询账户相关交易
查询最新p2p地址,进行添加
step4:检查genesis
initial_key:“EOS7EarnUhcyYqmdnPon8rm7mBCTnBoot6o7fE2WzjvEX2TdggbL3”
不相同则无法进行同步区块/ A' m; B+ e& s- P. c8 e* _( J
step5:操作指令
//第一次运行则运行,删除区块和配置genesis.json. R9 ~) E0 a6 Q3 p. _. U* d" e" Q
./start.sh --delete-all-blocks --genesis-json genesis.json: C% p4 n0 S" I: q2 O
//启动节点1 R% j( S4 c2 U v8 l6 X
./start.sh
//启动钱包
./Wallet/start_wallet.sh 4 v, b1 {! Q a0 D' D, T
step6:验证是否安装成功
//其中chain_id等于:aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906
./cleos get info ' c( G5 G6 M/ \3 T
{ y$ J4 K, `. r' U: m# |" b$ ?
"server_version": "c9b7a247",
"chain_id": "aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906",
"head_block_num": 4113455,
"last_irreversible_block_num": 4113128,
"last_irreversible_block_id": "003ec2e8a76b9b219ce53eb854c11024e6d2d17c66c603ecbbdbb4232ed3578e",
"head_block_id": "003ec42fa45fb82eee5dc532213c396aa5ed8a114e382387a05d79b8e699e7aa",
"head_block_time": "2018-07-04T11:47:07.000",
"head_block_producer": "eosnewyorkio",
"virtual_block_cpu_limit": 200000000,
"virtual_block_net_limit": 1048576000,5 f. C# P, v9 g; @& i' S
"block_cpu_limit": 199900,1 B8 D! N( a% x7 d3 b- P
"block_net_limit": 1048576+ R" p+ \* q3 m* d$ X- W/ d
}0 A E% ^& w8 {( j; u, X
更新EOS0 y+ t% K4 ?; C$ d8 {+ L
cd /opt/EOSmainNet
./stop.sh! A$ G/ k) z! X. J, E0 Z0 \
cd /home/eos-sources/eos . [4 [8 e+ H% L9 I. G
rm -rf build/
//第一种
git checkout mainnet-1.0.6
git submodule update --init --recursive
./eosio_build.sh
//第二种下载最新zip安装包3 f; B2 ^4 y: \) H# N
unzip -o eos-1.0.8.zip
./eosio_build.sh
成为第一个吐槽的人