Home | 简体中文 | 繁体中文 | 杂文 | 知乎专栏 | 51CTO学院 | CSDN程序员研修院 | Github | OSChina 博客 | 腾讯云社区 | 阿里云栖社区 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏多维度架构

34.7. 区块数据同步到 mongodb

		
nodeos -e -p testmongodb \
--plugin eosio::producer_plugin \
--plugin eosio::chain_api_plugin \
--plugin eosio::net_api_plugin \
--max-transaction-time=30000 \
--http-server-address 127.0.0.1:4444 \
--p2p-listen-endpoint 127.0.0.1:8778 \
--p2p-peer-address 127.0.0.1:9877 \
--config-dir data/testsynblock \
--data-dir data/testsynblock \
--contracts-console --abi-serializer-max-time-ms 5000 \
--plugin eosio::mongo_db_plugin --mongodb-uri mongodb://eos:eos@192.168.30.10:27017/test?authSource=admin&maxPoolSize=100 \
--mongodb-filter-out eosio:onblock:

		
nohup  nodeos -e -p testmongodb \
--plugin eosio::producer_plugin \
--plugin eosio::chain_api_plugin \
--plugin eosio::net_api_plugin \
--max-transaction-time=30000 \
--http-server-address 127.0.0.1:4444 \
--p2p-listen-endpoint 127.0.0.1:8778 \
--p2p-peer-address 127.0.0.1:9877 \
--config-dir data/testsynblock \
--data-dir data/testsynblock \
--contracts-console --abi-serializer-max-time-ms 5000 \
--plugin eosio::mongo_db_plugin --mongodb-uri mongodb://eos:eos@192.168.30.10:27017/eos?authSource=eos&maxPoolSize=100 \
--mongodb-filter-out eosio:onblock:   >>eosio_test_mongodb.log 2>&1 &		
		
nodeos -e -p mongodbblock \
--plugin eosio::producer_plugin \
--plugin eosio::chain_api_plugin \
--plugin eosio::net_api_plugin \
--plugin eosio::mongo_db_plugin \
--max-transaction-time=30000  \
--http-server-address 127.0.0.1:6666 
--p2p-listen-endpoint 127.0.0.1:9878 
--p2p-peer-address 127.0.0.1:9877 
--config-dir data/synblock 
--data-dir data/synblock 
--contracts-console 
--abi-serializer-max-time-ms 5000 
--mongodb-uri mongodb://eos:eos@127.0.0.1:27017/eos 
--mongodb-filter-out eosio:onblock:

nodeos -e -p eosio \
--data-dir data/eosio 
--config-dir data/eosio 
--max-transaction-time=30000 
--contracts-console 
--filter-on=* 
--http-server-address 0.0.0.0:8888 
--p2p-max-nodes-per-host 10 
--p2p-listen-endpoint 127.0.0.1:9876 
--p2p-peer-address 127.0.0.1:9877 
--plugin eosio::producer_plugin 
--plugin eosio::chain_api_plugin 
--plugin eosio::net_api_plugin 
--http-validate-host 0 
--chain-state-db-size-mb 61440


nodeos -e -p accountpro1 \
--plugin eosio::producer_plugin 
--max-transaction-time=30000 
--plugin eosio::chain_api_plugin 
--plugin eosio::net_api_plugin 
--p2p-max-nodes-per-host 10 
--http-server-address 127.0.0.1:7778 
--p2p-listen-endpoint 127.0.0.1:9877 
--p2p-peer-address 127.0.0.1:9876 
--config-dir data/node1 --data-dir data/node1 
--private-key ["EOSydanWnaV95EvkwtwCCD9NX1EZNSpNeBJwdVyU2fM7jmkq5mNhZ","mt6XU1ybgAAM6XD5rebPF7bFrCgbVBG7Jg1NzE5JuUub5nCJxiu"] 
--contracts-console 
--filter-on=* 
--chain-state-db-size-mb 61440

keosd --http-server-address=127.0.0.1:8900  --https-server-address  --unix-socket-path keosd.sock