EOS正式链环境部署
飞儿506
发表于 2022-11-8 17:49:29
155
0
0
安装Eos3 z- R5 q+ m$ }- j0 \ d
step1:下载源码进行安装
mkdir /home/eos-sources
cd /home/eos-sources
git clone https://github.com/EOS-Mainnet/eos.git --recursive 7 V, H5 K) R9 ^1 J& h; B* @( h
cd eos
git checkout mainnet-1.0.6
git submodule update --init --recursive
./eosio_build.sh 2 k& ?9 c! f6 L0 `( w/ a
step2:配置node
mkdir /opt/EOSmainNet ! P- N5 R( s9 b+ V2 v2 D% ^. [6 L( a
cd /opt/EOSmainNet$ V7 P4 ^8 m' v! ~+ i8 O: t! f6 \- W9 t2 X
git clone https://github.com/CryptoLions/EOS-MainNet.git ./ ; c) d r& \9 C+ I* T# D2 M
chmod -R 777 ./*.sh O7 c9 m6 X9 z6 w; T; b! c
chmod -R 777 ./Wallet/*.sh
step3:修改config.ini文件
添加:filter-on = * 增加过滤器选项,可以查询账户相关交易
查询最新p2p地址,进行添加' ]3 _* K' t! Z( M7 ]) }! U* Q
step4:检查genesis- A5 h4 X1 ~: `+ m; A! x
initial_key:“EOS7EarnUhcyYqmdnPon8rm7mBCTnBoot6o7fE2WzjvEX2TdggbL3”
不相同则无法进行同步区块
step5:操作指令( G+ [' J$ u$ F o: J3 m1 D
//第一次运行则运行,删除区块和配置genesis.json
./start.sh --delete-all-blocks --genesis-json genesis.json
//启动节点8 r. t7 B* D! H5 y- d$ v
./start.sh $ X4 [1 c+ u3 x5 ?. F4 Q
//启动钱包
./Wallet/start_wallet.sh . V' o$ z2 K0 u% o
step6:验证是否安装成功1 Z8 D0 P3 L9 V1 T; ?0 y
//其中chain_id等于:aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906
./cleos get info
{
"server_version": "c9b7a247",
"chain_id": "aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906",
"head_block_num": 4113455,: T1 ~/ e X5 |/ r4 V
"last_irreversible_block_num": 4113128,
"last_irreversible_block_id": "003ec2e8a76b9b219ce53eb854c11024e6d2d17c66c603ecbbdbb4232ed3578e",& y4 T k+ e0 I' C _% K7 A
"head_block_id": "003ec42fa45fb82eee5dc532213c396aa5ed8a114e382387a05d79b8e699e7aa",4 |1 }9 `+ l }" t1 l6 _" ]% V# n
"head_block_time": "2018-07-04T11:47:07.000",
"head_block_producer": "eosnewyorkio",5 s0 E. w1 J" \
"virtual_block_cpu_limit": 200000000,
"virtual_block_net_limit": 1048576000,
"block_cpu_limit": 199900,
"block_net_limit": 1048576
}
更新EOS
cd /opt/EOSmainNet
./stop.sh# l0 J9 z4 m& c+ q
cd /home/eos-sources/eos
rm -rf build/
//第一种6 V6 _$ y P2 ^: o. ~
git checkout mainnet-1.0.6# m& u1 \9 \: ~; W
git submodule update --init --recursive - R1 Y$ R) J9 W- Y$ b# O
./eosio_build.sh
//第二种下载最新zip安装包
unzip -o eos-1.0.8.zip" @* @3 V) ^' W0 }, ?: s
./eosio_build.sh
成为第一个吐槽的人