将节点绑定到任何地址,而不仅仅是localhost
3 个回答
- 投票数
-
- 2019-02-04
如果使用的是配置文件,则有两个不同的端口:
"listen-addr"
选项可以在"p2p"
部分和"rpc"
部分.例如,您可以使用"0.0.0.0:8732"
侦听所有地址上的端口8732.您也可以使用命令行:
tezos-node run --rpc-addr 0.0.0.0:8732
If you are using a configuration file, there are two different ports : the
"listen-addr"
option can be used both in the"p2p"
section and in the"rpc"
section. You can use"0.0.0.0:8732"
for example to listen on port 8732 on all addresses.You can also use the command line:
tezos-node run --rpc-addr 0.0.0.0:8732
-
在配置文件的rpc部分中对其进行了尝试,但没有成功,但是我使用以下命令启动了该节点:tezos-node run,我假设它将使用配置文件中的参数.Tried it in rpc section of the config file, it did not work, but i start the node with this command: tezos-node run, i assume it will use the parameter from the config file.
- 0
- 2019-02-04
- Zx1984
-
它需要在命令行上运行,配置文件无法启动并在所有地址上绑定It needs to be run on the command line, the config file does not work to start it and bind on all address
- 0
- 2019-02-04
- Zx1984
-
我看不出它不使用配置文件选项的任何原因.我们在这里使用它.除非您在启动脚本中用参数覆盖该选项.I don't see any reason why it wouldn't use the configuration file option. We use that here. Unless you overwrite the option with an argument in a starting script.
- 0
- 2019-02-05
- lefessan
-
如何运行docker容器来完成此操作?试图`./mainnet.sh start --rpc-addr 0.0.0.0:8732`但我得到`tezos-node:选项--rpc-addr无法重复`How can this be done running docker containers? Tried `./mainnet.sh start --rpc-addr 0.0.0.0:8732` but I'm getting `tezos-node: option --rpc-addr cannot be repeated`
- 0
- 2019-02-07
- edu
-
- 2019-02-04
要在所有接口上进行侦听,请完全保留IP地址.
tezos-node run --rpc-addr :8732
To listen on all interfaces, leave the IP address out completely.
tezos-node run --rpc-addr :8732
-
我会尝试的,然后再回报I will try it, and report back
- 0
- 2019-02-04
- Zx1984
-
@ Zx1984您有机会尝试吗?@Zx1984 Did you get a chance to try?
- 0
- 2019-02-05
- Richard Ayotte
-
是的,我确实做到了,对于延迟,我们感到抱歉,它能正常工作,当从命令行指定时,似乎配置文件被覆盖了,说实话,这显然是显而易见的.那是那些Doh之一!片刻Yes i did, sorry for the delay, it works, it seems the configuration file ws being overidden when specified from the command line, which should have been obvious to be honest. It's one of those Doh! moments
- 0
- 2019-03-19
- Zx1984
-
- 2019-02-06
也许我对这个问题有误解,但不是建立与服务器的安全SSH连接并通过隧道将远程计算机的地址127.0.0.1:8732连接到要连接的本地主机的解决方案吗?
我做到了通过这种方式以便从我的本地Firefox查看KILN配置.
Maybe I am misunderstanding the problem, but wouldn't it be a solution to build up a secure SSH connection to the server an tunnel the address 127.0.0.1:8732 of the remote machine to the local host who wants to connect?
I did it this way here in order to look at the KILN config from my local Firefox.
有人知道如何将节点绑定到所有地址吗?我似乎无法rpc远程连接,它绑定到127.0.0.1,仅此而已. 我在配置文件中将侦听地址设置为0.0.0.0:8732,也尝试了*:8732,但无法从另一台主机连接rpc.这是设计使然,还是我缺少了什么?