EOS正式链环境部署
飞儿506
发表于 2022-11-8 17:49:29
156
0
0
安装Eos. j2 W/ b' o" `8 H7 ^6 l; M
step1:下载源码进行安装# c& ?% R" c0 b- ^6 U
mkdir /home/eos-sources
cd /home/eos-sources
git clone https://github.com/EOS-Mainnet/eos.git --recursive
cd eos
git checkout mainnet-1.0.6
git submodule update --init --recursive ' N& `( k, x8 o3 I7 U4 n9 o2 Z
./eosio_build.sh
step2:配置node4 m9 G6 A9 P3 m/ ~7 L& _! g
mkdir /opt/EOSmainNet
cd /opt/EOSmainNet8 E) D! }5 M6 B' I3 }* Y# ~
git clone https://github.com/CryptoLions/EOS-MainNet.git ./
chmod -R 777 ./*.sh
chmod -R 777 ./Wallet/*.sh # o4 Y# _: F$ _1 I7 c; S! h1 ]
step3:修改config.ini文件( _# q6 B( t6 V% {4 }1 T- ?# ^
添加:filter-on = * 增加过滤器选项,可以查询账户相关交易/ c* \& d9 W g3 }2 f+ F
查询最新p2p地址,进行添加% u) H5 a4 X4 F/ X# l$ y2 C# Z6 M
step4:检查genesis
initial_key:“EOS7EarnUhcyYqmdnPon8rm7mBCTnBoot6o7fE2WzjvEX2TdggbL3”
不相同则无法进行同步区块
step5:操作指令
//第一次运行则运行,删除区块和配置genesis.json _1 P- |9 ^& ]* t6 n+ S5 K
./start.sh --delete-all-blocks --genesis-json genesis.json: [5 W: ~; A X. V& q* d- ]
//启动节点2 H* W, m" m$ q* p4 s/ N, g- \
./start.sh $ {; c j8 M4 `' |$ V2 V$ `
//启动钱包
./Wallet/start_wallet.sh ; H4 T8 S+ _2 g% n! B! ?( z3 @
step6:验证是否安装成功
//其中chain_id等于:aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906
./cleos get info : w0 g7 |. t5 a2 B# M9 K- o( I
{
"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",+ c! J- K% h8 Y
"virtual_block_cpu_limit": 200000000,: W2 \" I9 N7 P* B& O: c
"virtual_block_net_limit": 1048576000,1 K- h: r9 m$ z0 C, @/ y
"block_cpu_limit": 199900,4 i1 N; C2 B! |% c( F2 I$ y; M6 m! t
"block_net_limit": 10485765 c' t9 ?$ X3 G
}7 p5 |/ N' \; Q& j4 }" X
更新EOS2 V) h' ]5 g7 g- q. a" |$ X- P+ w
cd /opt/EOSmainNet ( l' n/ q6 y. m* P% W. C/ [3 A
./stop.sh: s& B. n& j+ ^, W' R
cd /home/eos-sources/eos
rm -rf build/: f# D- F2 v. x' @: X( f; B' J
//第一种* `, V9 a/ Y. V ?5 k! \8 P# Z
git checkout mainnet-1.0.6 ~5 u1 b. t( Y+ g4 \
git submodule update --init --recursive
./eosio_build.sh
//第二种下载最新zip安装包. O, w6 t; P0 g" E' l
unzip -o eos-1.0.8.zip
./eosio_build.sh
成为第一个吐槽的人