配置节点
Conflux节点提供了丰富的配置选项,允许通过修改这些设置来调整节点行为。 本文档提供了节点配置选项及其含义的概述。
How to configure nodes
配置文件
The configuration file for Conflux nodes is hydra.toml
(testnet.toml
for testnet), and by default, it is located in the run
directory where the node program is downloaded. 通过修改此文件中的配置选项,您可以调整节点的行为。
命令行参数
节点也可以使用命令行参数进行配置,命令行参数的优先级高于配置文件。 例如,可以使用--jsonrpc-http-port
参数指定节点的JSON-RPC端口。
./conflux --jsonrpc-http-port 12537
可以通过运行./conflux -h
查看参数的详细列表。