新手问答 部署 EOS 节点需要哪些配置,才能让别的电脑进行 RPC 访问?

xiuyoung · July 04, 2018 · Last by Surou replied at July 05, 2018 · 14661 hits

如题:在局域网中跑个节点服务器 A 更新 EOS 区块数据,然后想用别的局域网电脑 B 进行 RPC 访问?

现在 config 的中部分配置贴出来: //// true: validate that the peer certificates are valid and trusted, false: ignore cert errors (eosio::http_client_plugin) https-client-validate-peers = 1 // The local IP and port to listen for incoming http connections; set blank to disable. (eosio::http_plugin) http-server-address = 127.0.0.1:8888 // The actual host:port used to listen for incoming p2p connections. (eosio::net_plugin) p2p-listen-endpoint = 0.0.0.0:9876 // An externally accessible host:port for identifying this node. Defaults to p2p-listen-endpoint. (eosio::net_plugin) p2p-server-address = 0.0.0.0:9876

// Plugin(s) to enable, may be specified multiple times plugin = eosio::chain_api_plugin plugin = eosio::chain_plugin plugin= eosio::producer_plugin plugin = eosio::http_plugin plugin = eosio::history_api_plugin plugin = eosio::net_plugin plugin = eosio::net_api_plugin

这些配置启动,电脑 B 还是无法通过 RPC 方式访问节点 A 获取数据。 求大佬赐教!

access-control-allow-origin = *

http-server-address = 0.0.0.0:8888

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up