lotus-seal-worker port refused

lotus-seal-worker port refused

  • 1,端口拒绝访问
  • 2,安装`ufw`

1,端口拒绝访问

  • 运行报错
# lotus-storage-miner info
lotus-storage-miner/main.go:76	dial tcp 127.0.0.1:2345: connect: connection refused
  • tcping检查端口是否开放
$ tcping 192.168.0.197 22
192.168.0.197 port 22 open.
$ tcping 192.168.0.197 2345
192.168.0.197 port 2345 closed.
lotus-storage-miner/main.go:76	dial tcp 127.0.0.1:2345: connect: connection refused

2,安装ufw

  • 安装ufw
apt-get install ufw -y
  • 开启ufw
ufw enable
  • 开放2345端口
ufw allow 2345
  • 查看状态
# ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
2345                       ALLOW IN    Anywhere
22                         ALLOW IN    Anywhere
1234                       ALLOW IN    Anywhere
61601                      ALLOW IN    Anywhere
45225                      ALLOW IN    Anywhere
2345 (v6)                  ALLOW IN    Anywhere (v6)
22 (v6)                    ALLOW IN    Anywhere (v6)
1234 (v6)                  ALLOW IN    Anywhere (v6)
61601 (v6)                 ALLOW IN    Anywhere (v6)
45225 (v6)                 ALLOW IN    Anywhere (v6)
  • 端口开放
$ tcping 192.168.0.197 2345
192.168.0.197 port 2345 open.

你可能感兴趣的:(#,lotus)