EOS正式链环境部署
飞儿506
发表于 2022-11-8 17:49:29
149
0
0
安装Eos
step1:下载源码进行安装8 ~3 L' h+ h) {% w8 n; j
mkdir /home/eos-sources
cd /home/eos-sources
git clone https://github.com/EOS-Mainnet/eos.git --recursive
cd eos " F' l/ E* Z" {4 q5 q! l3 P7 h
git checkout mainnet-1.0.6 6 Q" Y6 {) g2 m2 [; |
git submodule update --init --recursive - t/ b) N; f! G5 ^6 ^# [& k
./eosio_build.sh 6 T8 Z5 |- l* m7 `& {& L
step2:配置node
mkdir /opt/EOSmainNet
cd /opt/EOSmainNet. }% H7 \$ M7 ^2 A6 ~
git clone https://github.com/CryptoLions/EOS-MainNet.git ./ 0 c* ?9 B9 p9 X
chmod -R 777 ./*.sh
chmod -R 777 ./Wallet/*.sh
step3:修改config.ini文件+ A! W6 l: I8 L
添加:filter-on = * 增加过滤器选项,可以查询账户相关交易7 z# m' R( y0 V- {
查询最新p2p地址,进行添加4 W# Z' A" N: w2 H) F/ C8 u( ]5 [
step4:检查genesis
initial_key:“EOS7EarnUhcyYqmdnPon8rm7mBCTnBoot6o7fE2WzjvEX2TdggbL3”6 Z1 w& n9 m3 z; ^3 I# i
不相同则无法进行同步区块) q! P& X( f! O0 [/ a, `
step5:操作指令
//第一次运行则运行,删除区块和配置genesis.json5 c. |- r9 e0 u$ f$ Y/ H9 _
./start.sh --delete-all-blocks --genesis-json genesis.json4 W9 N' Y# b% M. {$ U
//启动节点4 O9 \/ {7 y2 g) n
./start.sh
//启动钱包0 u* i' Y' ]" l2 b" i+ s' P$ J$ h5 n' y
./Wallet/start_wallet.sh 1 F ?2 k/ ^# \& d R1 r
step6:验证是否安装成功+ F C4 I) X( ]. k& ~- ]; U
//其中chain_id等于:aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e9069 @2 Z; G f D" M# |1 U3 E( v) g% w7 s
./cleos get info
{
"server_version": "c9b7a247",
"chain_id": "aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906",
"head_block_num": 4113455,
"last_irreversible_block_num": 4113128,
"last_irreversible_block_id": "003ec2e8a76b9b219ce53eb854c11024e6d2d17c66c603ecbbdbb4232ed3578e",' I* S; y+ x3 X/ x% a4 |& {
"head_block_id": "003ec42fa45fb82eee5dc532213c396aa5ed8a114e382387a05d79b8e699e7aa",# ]' S2 c6 E. F( w% W8 E
"head_block_time": "2018-07-04T11:47:07.000",! _" {- s, \+ e, _; |7 E
"head_block_producer": "eosnewyorkio"," I0 E0 O# p: `+ Z
"virtual_block_cpu_limit": 200000000,
"virtual_block_net_limit": 1048576000,
"block_cpu_limit": 199900,
"block_net_limit": 1048576
}
更新EOS5 ?3 P' f8 ^2 Y! v& s8 x
cd /opt/EOSmainNet
./stop.sh6 \3 W' X; ~. P, B& t0 x% ~
cd /home/eos-sources/eos
rm -rf build/
//第一种
git checkout mainnet-1.0.6
git submodule update --init --recursive
./eosio_build.sh 5 K$ N0 m) a+ N' \/ G: v4 \( C
//第二种下载最新zip安装包
unzip -o eos-1.0.8.zip) D4 [& s. b8 w4 U( j6 i
./eosio_build.sh
成为第一个吐槽的人