EOS正式链环境部署
飞儿506
发表于 2022-11-8 17:49:29
166
0
0
安装Eos
step1:下载源码进行安装$ O* l. _3 @$ R" Y7 R
mkdir /home/eos-sources
cd /home/eos-sources 7 k5 I8 M) E7 A# w
git clone https://github.com/EOS-Mainnet/eos.git --recursive : r$ _( X& U/ f3 _6 Z0 t/ l
cd eos
git checkout mainnet-1.0.6 / D3 C. W3 g/ O8 C+ ~
git submodule update --init --recursive
./eosio_build.sh
step2:配置node4 v* C, n% z; v4 ?3 T
mkdir /opt/EOSmainNet
cd /opt/EOSmainNet
git clone https://github.com/CryptoLions/EOS-MainNet.git ./ $ L5 ^( E. u1 Z. B
chmod -R 777 ./*.sh . l9 b+ P3 n; s0 s. u8 @' R
chmod -R 777 ./Wallet/*.sh 2 s2 J+ A: i5 \/ G- U% ]4 `. N1 H% P
step3:修改config.ini文件
添加:filter-on = * 增加过滤器选项,可以查询账户相关交易1 ^1 g+ l0 j0 k9 d8 S) p
查询最新p2p地址,进行添加
step4:检查genesis
initial_key:“EOS7EarnUhcyYqmdnPon8rm7mBCTnBoot6o7fE2WzjvEX2TdggbL3”
不相同则无法进行同步区块( I9 A2 l' P; H( F; X
step5:操作指令1 {* T+ W6 b( c, m8 Z
//第一次运行则运行,删除区块和配置genesis.json) T. l# ^# g+ J: t
./start.sh --delete-all-blocks --genesis-json genesis.json
//启动节点
./start.sh ) G3 i" y$ z# u
//启动钱包
./Wallet/start_wallet.sh 0 o; V! t, t: [2 {& Z- v
step6:验证是否安装成功1 J, p. w: W- X/ ?" G. D
//其中chain_id等于:aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e9067 t7 {: X9 p/ i" u& B2 Y+ P
./cleos get info
{
"server_version": "c9b7a247",, I. G! u' ?' E% ]! u) p+ G7 I
"chain_id": "aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906",7 m B, h+ E* T9 M% Z$ S& e
"head_block_num": 4113455,
"last_irreversible_block_num": 4113128,
"last_irreversible_block_id": "003ec2e8a76b9b219ce53eb854c11024e6d2d17c66c603ecbbdbb4232ed3578e",5 k+ m& h: ]" I9 ?
"head_block_id": "003ec42fa45fb82eee5dc532213c396aa5ed8a114e382387a05d79b8e699e7aa",' P! ^8 Y3 F% i# a; `4 K* D9 h
"head_block_time": "2018-07-04T11:47:07.000",
"head_block_producer": "eosnewyorkio",
"virtual_block_cpu_limit": 200000000,
"virtual_block_net_limit": 1048576000,
"block_cpu_limit": 199900,7 D0 k4 s! e, K# l- a& \3 v
"block_net_limit": 1048576
}' Z6 o1 W1 D T
更新EOS+ m% Q( ~9 r" ^& ^6 g \/ e% v- Z
cd /opt/EOSmainNet ; c3 v" `; V# @, N6 P
./stop.sh; U( m) v% z+ s1 S$ \5 M! J0 d
cd /home/eos-sources/eos
rm -rf build/' a5 Y! s% `! S: J9 \( p
//第一种 n* C$ ]9 C. W! W$ Y/ H+ Q2 I* ?, I5 v! w
git checkout mainnet-1.0.6
git submodule update --init --recursive
./eosio_build.sh 9 D' h! z" G1 I+ c8 N
//第二种下载最新zip安装包) w; _/ w' K ?$ x& e: |4 A$ }- c
unzip -o eos-1.0.8.zip( [$ W, M: l3 j0 h$ S# U
./eosio_build.sh
成为第一个吐槽的人



