EOS主網搭建教程--&&--搭建節點
阿新 • • 發佈:2018-09-12
export info git tag pos token 暫停 wal 簡單 chain
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主網搭建教程--&&--搭建節點