Skip to content

回复:在 NAT 后设置多台比特币机器 ​

原始发布页

打开来源页面
查看 1 个交叉存档

目前还没有能这样做的端口号设置。这项功能尚未实现。你只能将 NAT 设置为把端口转发到其中一台计算机。(我之前提到过 NAT 端口转换,但那行不通,其他节点不会知道要连接那个端口。)

如果你愿意,作为一个小优化,可以让其余计算机按以下方式运行: bitcoin -connect=<第一台计算机的 IP>

这样它们的所有网络通信都通过第一台计算机完成,而不会为了同样的信息各自连接互联网。这可以节省带宽,不过它本来就不怎么占用带宽,所以除非你有非常多的计算机,否则其实没什么影响。

为了在第一台计算机宕机时仍有冗余,可以让两台计算机向外连接,其余计算机同时连接到这两台。前两台正常运行,其余计算机按以下方式运行: bitcoin -connect=<IP1> -connect=<IP2>

英文原文 ​

展开英文原文

Right now there isn't a port number setting to do that. It's a feature yet to be implemented. You can only set up your NAT to port-forward to one of the computers. (I said something earlier about NAT port translation, but that wouldn't work, other nodes wouldn't know to connect to that port)

If you want, as a small optimization, you could run the rest of your computers as: bitcoin -connect=<the IP of the first computer>

so they get all their network communication from the first computer and don't all connect over the net individually for the same information. This saves bandwidth, although it doesn't use much bandwidth to begin with, so it wouldn't really matter unless you had tons of computers.

For redundancy in case the first computer goes down, you could have two that connect out and the rest connect to both of them. The first two are run normally, the rest are run like: bitcoin -connect=<IP1> -connect=<IP2>

为历史保存,为中文读者整理。每篇档案均附来源与英文原文。