【问题标题】:When disconnects from ssh, my Hyperledger Besu nodes stop working [closed]当与 ssh 断开连接时,我的 Hyperledger Besu 节点停止工作 [关闭]
【发布时间】:2022-01-06 02:04:15
【问题描述】:

我有一个运行 Hyperledger Besu 节点的 Ubuntu 服务器,但如果我与服务器断开连接,我最好的节点将停止工作,我必须重新启动所有节点。

如何让我的 Besu 节点始终运行?即使我与 ssh 断开连接

【问题讨论】:

    标签: blockchain hyperledger hyperledger-besu


    【解决方案1】:

    启用 Bezu 节点作为服务。

    例子:

    1. 创建服务/vol/hbesu/node2/besu-node2.service:

      [Unit]
       Description=Besu client
       DefaultDependencies=no
       After=syslog.target network.target
       [Service]
       User=admin-besu
       Group=admin-besu
       Type=simple
       ExecStart=/usr/local/besu-21.1.0-RC1/bin/besu --data-path=/vol/hbesu/node2/data --bootnodes=enode://ae70183
       KillMode=process
       KillSignal=SIGINT
       TimeoutStopSec=90
       Restart=on-failure
       RestartSec=5s
       [Install]
       WantedBy=multi-user.target
      

    sudo cp /vol/hbesu/node2/besu-node2.service /usr/lib/systemd/system/

    1. 启动服务:

      sudo systemctl daemon-reload

      sudo systemctl enable besu-node2.service

      sudo systemctl start besu-node2.service

      sudo systemctl status -l besu-node2.service

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-25
      • 2021-04-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-14
      相关资源
      最近更新 更多