EOS主网搭建教程--&&--搭建节点
Posted sinsenliu
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了EOS主网搭建教程--&&--搭建节点相关的知识,希望对你有一定的参考价值。
EOS主网搭建教程:
1、git clone https://github.com/EOS-Mainnet/eos.git --recursive 2、cd eos 3、git tag (查看有哪些分支) git checkout mainnet-1.0.10(切换分支) git branch (查看现在所在的分支) 4、git submodule update --init --recursive 5、./eosio_build.sh 6、cd build 7、sudo make install 8、mkdir /opt/EOSMainNet 9、cd /opt/EOSMainNet 10、git clone https://github.com/CryptoLions/EOS-mainNet.git ./ 11、chmod -R 777 ./*.sh chmod -R 777 ./Wallet/*.sh 12、配置环境变量 (1)vim /etc/profile (2)export PATH=$PATH:/servers/EOSMainNet (3)保存并退出 (4)source /etc/profile (5)env(查询是否配置成功 :PATH=自己的径:PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/servers/EOSMainNet) 13、vi /servers/EOSMainNet/start.sh(看下里面的路径是否正确) 14、首次启动 start.sh --genesis-json /servers/EOSMainNet/genesis.json 以后启动不需要加--genesis-json 15、cleos.sh get info 查看chain_id是否为:aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906(主网的id)
EOS搭建节点:
1、先安装docker和docker-compose
参考:https://www.cnblogs.com/sinsenliu/p/9634262.html
2、git clone https://github.com/cryptokylin/CryptoKylin-Testnet.git
cd fullnode
./run.sh
3、1分钟内手动搭建全节点
第一步,创建所需要的目录:
mkdir -p /data/eos/nodeos-data-volume/nodeos-data-kylin/data
第二步,准备配置文件:
cp -r config /data/eos/nodeos-data-volume/nodeos-data-kylin
第三步,启动全节点
docker-compose -f docker-compose-kylin-init.yaml up -d
暂停/重启 同步
暂停:
docker-compose -f docker-compose-kylin.yaml down
重启:
docker-compose -f docker-compose-kylin.yaml down
docker-compose -f docker-compose-kylin.yaml up -d
链信息:
{
"chain_id": "5fff1dae8dc8e2fc4d5b23b2c7665c97f9e9d8edf2b6485a86ba311c25639191"
}
后面用cleos.sh get info命令检测同步高度和chain_id,看chain_id是否和这个一样,一样就对了,否则就不对。
cleos.sh get info(本机查看)。
cleos.sh -u http://192.168.1.15:8890 get info (看别人的)。
P2P 节点列表
p2p-peer-address = 13.125.53.113:9876
p2p-peer-address = 119.254.15.40:9876
p2p-peer-address = p2p.kylin.eoseco.com:10000
p2p-peer-address = p2p-kylin.eoslaomao.com:443
p2p-peer-address = p2p.kylin-testnet.eospace.io:88
p2p-peer-address = kylin.fnp2p.eosbixin.com:443
p2p-peer-address = peering-kylin.eosasia.one:80
p2p-peer-address = kylin.meet.one:9876
p2p-peer-address = peer.kylin.alohaeos.com:9876
p2p-peer-address = p2p.kylin.helloeos.com.cn:9876
p2p-peer-address = kylin-testnet.starteos.io:9876
p2p-peer-address = kylin-fn001.eossv.org:443
p2p-peer-address = p2p.kylin.eosbeijing.one:8080
p2p-peer-address = testnet.zbeos.com:9876
BNET 节点列表
bnet-connect = kylin.fnbnet.eosbixin.com:3389
bnet-connect = kylin.meet.one:4321
HTTP API 节点列表
https://api.kylin-testnet.eospace.io/v1/chain/get_info
http://kylin.fn.eosbixin.com/v1/chain/get_info
https://api-kylin.eosasia.one/v1/chain/get_info
https://api-kylin.eoslaomao.com/v1/chain/get_info
http://api.kylin.eoseco.com/v1/chain/get_info
http://13.125.53.113:8888/v1/chain/get_info
http://119.254.15.40:8888/v1/chain/get_info
http://kylin.meet.one:8888/v1/chain/get_info
https://api.kylin.alohaeos.com/v1/chain/get_info
http://api.kylin.helloeos.com.cn/v1/chain/get_info
http://api.kylin.starteos.io/v1/chain/get_info
http://kylin-fn001.eossv.org/v1/chain/get_info
http://api.kylin.eosbeijing.one:8880/v1/chain/get_info
http://testnet.zbeos.com/v1/chain/get_info
水龙头
在 cryptokylin 上创建账号非常简单:
免费账号
创建免费账号: http://faucet.cryptokylin.io/create_account?new_account_name
例子:
curl http://faucet.cryptokylin.io/create_account?111111111ooo
获得免费Token
获得免费Token: http://faucet.cryptokylin.io/get_token?your_account_name. 每一次调用能获得100EOS, 每天最多获得1000个EOS.
例子:
curl http://faucet.cryptokylin.io/get_token?111111111ooo
以上是关于EOS主网搭建教程--&&--搭建节点的主要内容,如果未能解决你的问题,请参考以下文章
swarm-XDai主网免bzz质押和rpc全套搭建教程-windows