Skip to content
DBC-WikiDBC-Wiki
github icon
  • StakingModel

    • 参与 DBC 深脑链
      • 生成新账户
        • 成为 DBC 验证节点
          • 如何运行同步节点?
            • 1. 配置环境
              • 1.1 使用预编译版本
                • 1.2 手动编译
                • 2. 运行同步节点
                • 成为 DBC 提名人
                  • 快速公投
                    • 议员提案流程
                      • 质押/解绑常见问题

                      如何运行同步节点?

                      calendar icon2022年4月18日timer icon小于 1 分钟

                      此页内容
                      • 1. 配置环境
                        • 1.1 使用预编译版本
                        • 1.2 手动编译
                      • 2. 运行同步节点

                      # 如何运行同步节点?

                      # 1. 配置环境

                      # 1.1 使用预编译版本

                      wget https://github.com/DeepBrainChain/DeepBrainChain-MainChain/releases/download/v2.2/dbc_chain_linux_x64.tar.gz -O dbc_chain_linux_x64.tar.gz
                      tar xf dbc_chain_linux_x64.tar.gz && cd dbc-chain-mainnet
                      
                      1
                      2

                      # 1.2 手动编译

                      # 安装依赖
                      curl https://getsubstrate.io -sSf | bash -s -- --fast
                      source ~/.cargo/env
                      
                      # 编译dbc-chain
                      git clone https://github.com/DeepBrainChain/DeepBrainChain-MainChain.git
                      cd DeepBrainChain-MainChain
                      cargo build --release
                      
                      1
                      2
                      3
                      4
                      5
                      6
                      7
                      8

                      # 2. 运行同步节点

                      # 使用预先编译执行
                      ./dbc-chain --base-path ./db_data --pruning archive
                      
                      1
                      2
                      # 手动编译执行:
                      ./target/release/dbc-chain --base-path ./db_data --pruning archive
                      
                      1
                      2

                      端口参数:

                      --rpc-port 9933 #  指定你的节点监听RPC的端口。 9933 是默认值,因此该参数也可忽略
                      --ws-port 9945 # 指定你的节点用于监听 WebSocket 的端口。 默认端口为 9944
                      --port 30333 # 指定你用于监听 p2p 流量的节点端口。 30333 是默认端口,若无需更改,可以忽略该 flag
                      
                      1
                      2
                      3

                      其他参数参考:

                      --ws-max-connections 2000
                      --in-peers 200
                      --out-peers 200
                      
                      1
                      2
                      3
                      edit icon编辑此页open in new window
                      上次编辑于: 2022/4/18 04:17:24
                      贡献者: kaigedong
                      上一页
                      成为 DBC 验证节点
                      下一页
                      成为 DBC 提名人