2018-11-23主网节点搭建
https://github.com/EOSIO/eos
yum install git
docker run --name eosio \
--publish 7777:7777 \
--publish 127.0.0.1:5555:5555 \
--volume CONTRACTS_DIR:CONTRACTS_DIR \
--detach \
eosio/eos:v1.4.2 \
/bin/bash -c \
"keosd --http-server-address=0.0.0.0:5555 & exec nodeos -e -p eosio --plugin eosio::producer_plugin --plugin eosio::chain_api_plugin --plugin eosio::history_plugin --plugin eosio::history_api_plugin --plugin eosio::http_plugin -d /mnt/dev/data --config-dir /mnt/dev/config --http-server-address=0.0.0.0:7777 --access-control-allow-origin=* --contracts-console --http-validate-host=false --filter-on='*'"
nodeos -e -p eosio --plugin eosio::wallet_api_plugin --plugin eosio::chain_api_plugin --plugin eosio::account_history_api_plugin
docker run --name nodeos -v /path-to-data-dir:/opt/eosio/bin/data-dir -p 8888:8888 -p 9876:9876 -t eosio/eos nodeosd.sh -e --http-alias=nodeos:8888 --http-alias=127.0.0.1:8888 --http-alias=localhost:8888 arg1 arg2
Get chain info
curl http://127.0.0.1:8888/v1/chain/get_info
Execute cleos commands
alias cleos='docker-compose exec keosd /opt/eosio/bin/cleos -u http://nodeosd:8888 --wallet-url http://localhost:8900'
cleos get info
cleos get account inita
cleos set contract exchange contracts/exchange/
( ____ \( ___ )( ____ \\__ __/( ___ )
| ( \/| ( ) || ( \/ ) ( | ( ) |
| (__ | | | || (_____ | | | | | |
| __) | | | |(_____ ) | | | | | |
| ( | | | | ) | | | | | | |
| (____/\| (___) |/\____) |___) (___| (___) |
(_______/(_______)\_______)\_______/(_______)
EOSIO has been successfully built. 01:03:10
To verify your installation run the following commands:
/root/opt/mongodb/bin/mongod -f /root/opt/mongodb/mongod.conf &
source /opt/rh/python33/enable
export PATH=${HOME}/opt/mongodb/bin:$PATH
cd /data/eos_install/eos/build; make test
For more information:
EOSIO website: https://eos.io
EOSIO Telegram channel @ https://t.me/EOSProject
EOSIO resources: https://eos.io/resources/
EOSIO Stack Exchange: https://eosio.stackexchange.com
EOSIO wiki: https://github.com/EOSIO/eos/wiki
=================================================================================
117.50.60.113
yum update --skip-broken
su - seele
mkdir eosio && cd eosio
git clone https://github.com/EOS-Mainnet/eos
cd eos
git submodule update --init --recursive
git tag
git checkout mainnet-1.4.3
./eosio_build.sh
_______ _______ _______ _________ _______
( ____ \( ___ )( ____ \\__ __/( ___ )
| ( \/| ( ) || ( \/ ) ( | ( ) |
| (__ | | | || (_____ | | | | | |
| __) | | | |(_____ ) | | | | | |
| ( | | | | ) | | | | | | |
| (____/\| (___) |/\____) |___) (___| (___) |
(_______/(_______)\_______)\_______/(_______)
EOSIO has been successfully built. 00:49:55
To verify your installation run the following commands:
/data/seele/opt/mongodb/bin/mongod -f /data/seele/opt/mongodb/mongod.conf &
source /opt/rh/python33/enable
export PATH=${HOME}/opt/mongodb/bin:$PATH
cd /data/seele/eosio/eos/build; make test
For more information:
EOSIO website: https://eos.io
EOSIO Telegram channel @ https://t.me/EOSProject
EOSIO resources: https://eos.io/resources/
EOSIO Stack Exchange: https://eosio.stackexchange.com
EOSIO wiki: https://github.com/EOSIO/eos/wiki
source /opt/rh/python33/enable
cd build/ && sude make test && sudo make install
ctest --output-on-failure
mkdir /data/seele/data/eosnode -p
mv blocks/blocks_2018-11-12-07-00.tar.gz /data/seele/data/eosnode/
cd /data/seele/data/eosnode/
tar -zxf blocks_2018-11-12-07-00.tar.gz
export PATH=$PATH:/usr/local/eosio/bin
nodeos --data-dir /data/seele/data/eosnode --config-dir /data/seele/data/eosnode -l logging.json --hard-replay --wasm-runtime wabt >> /data/seele/data/eosnode/log.txt 2>&1 & echo $! > /data/seele/data/eosnode/nodeos.pid
启动
./start.sh --genesis-json genesis.json --hard-replay --wasm-runtime wabt
./start.sh --hard-replay --wasm-runtime wabt
第二次启动
./start.sh
nodeos --data-dir /data/seele/data/eosnode --config-dir /data/seele/data/eosnode
contracts-console = true
enable-stale-production = true
https://s3-ap-northeast-1.amazonaws.com/eosstorebest/index.html