EOS正式链环境部署
飞儿506
发表于 2022-11-8 17:49:29
154
0
0
安装Eos- _% x4 y3 t+ u. d- @% l, ~. h
step1:下载源码进行安装7 Y" s9 y# V4 C, }6 p
mkdir /home/eos-sources & r/ O! Q' b/ ]( b& g9 ^, S
cd /home/eos-sources
git clone https://github.com/EOS-Mainnet/eos.git --recursive ) b' @0 W7 F% @( z" D- p
cd eos
git checkout mainnet-1.0.6 * `( \# \( c+ H6 W2 N6 V
git submodule update --init --recursive
./eosio_build.sh
step2:配置node
mkdir /opt/EOSmainNet
cd /opt/EOSmainNet
git clone https://github.com/CryptoLions/EOS-MainNet.git ./ ) M8 w! {! @! R3 w; N4 d7 W' j
chmod -R 777 ./*.sh 0 y- E# G& s4 Y) j% ?; |% [
chmod -R 777 ./Wallet/*.sh / [& K, z) T. ~1 G6 {4 }
step3:修改config.ini文件
添加:filter-on = * 增加过滤器选项,可以查询账户相关交易8 w. o4 f1 t1 e$ I6 D+ X/ ]
查询最新p2p地址,进行添加% q+ \8 f$ y) q# ~ O7 y6 O
step4:检查genesis
initial_key:“EOS7EarnUhcyYqmdnPon8rm7mBCTnBoot6o7fE2WzjvEX2TdggbL3”/ n- R( w" Z! a# k! s% V" U
不相同则无法进行同步区块
step5:操作指令
//第一次运行则运行,删除区块和配置genesis.json
./start.sh --delete-all-blocks --genesis-json genesis.json
//启动节点
./start.sh : |; b' q6 d, l
//启动钱包9 f5 S3 g, q' R1 ]% p) c3 J
./Wallet/start_wallet.sh 6 W5 U, u4 n+ c+ S- e" @/ J) U
step6:验证是否安装成功8 K+ Y% P7 t- K" A; J$ ?
//其中chain_id等于:aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906
./cleos get info 0 d% |% W0 o" D/ E8 m- ?- r! B
{
"server_version": "c9b7a247",/ r7 l- s- J, }" ~
"chain_id": "aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906",
"head_block_num": 4113455,
"last_irreversible_block_num": 4113128,
"last_irreversible_block_id": "003ec2e8a76b9b219ce53eb854c11024e6d2d17c66c603ecbbdbb4232ed3578e",
"head_block_id": "003ec42fa45fb82eee5dc532213c396aa5ed8a114e382387a05d79b8e699e7aa",% i+ L/ h/ i/ Y+ V3 p
"head_block_time": "2018-07-04T11:47:07.000",& w2 _1 h8 f1 ~" S) q2 c
"head_block_producer": "eosnewyorkio",
"virtual_block_cpu_limit": 200000000,
"virtual_block_net_limit": 1048576000," ?. m- L J$ J
"block_cpu_limit": 199900,
"block_net_limit": 1048576# r" F* L% [% g
}% c% L9 q T% Y3 b$ d4 G7 e( y7 o
更新EOS
cd /opt/EOSmainNet . V4 ^3 r- r8 D, z8 ^( o% v* l
./stop.sh, |; o0 K6 W+ F) b! K X
cd /home/eos-sources/eos + O0 j# ^8 N7 K8 s* z
rm -rf build/
//第一种5 j; q* }/ {0 X2 d5 [; J
git checkout mainnet-1.0.6# }. U0 N0 R" O( b
git submodule update --init --recursive 3 ]. \* Z( @( V4 J7 v; R' E: [4 v2 K
./eosio_build.sh 8 ?& l9 {, f" l4 a _# x3 J
//第二种下载最新zip安装包
unzip -o eos-1.0.8.zip) I/ O f( L( X2 o+ s; L9 K) z7 C
./eosio_build.sh
成为第一个吐槽的人