gpt4 book ai didi

azure - 如何将 Mist 连接到远程服务器(Azure)上的私有(private)区 block 链?

转载 作者:行者123 更新时间:2023-12-03 03:10:04 24 4
gpt4 key购买 nike

我已在本地 PC (Windows 10) 上安装了 Mist,但我不想同步主/测试网络。所以我用过这个Ethereum + Azure教程,现在我可以通过 SSH 在我的专用网络上工作。

geth --dev console

不仅如此,我知道可以使用特殊标志在自定义区 block 链上运行 Mist

mist.exe --rpc http://YOUR_IP:PORT

因此,根据 geth --help,我在 Azure 虚拟机上运行 geth --dev --rpc console,之后我运行 mist.exe --rpc http://VM_IP:8545 并且出现错误:

[2016-09-24 18:01:21.928] [INFO] Sockets/node-ipc - Connect to {"hostPort":"http://VM_IP:8545"}
[2016-09-24 18:01:24.968] [ERROR] Sockets/node-ipc - Connection failed (3000ms elapsed)
[2016-09-24 18:01:24.971] [WARN] EthereumNode - Failed to connect to node. Maybe it's not running so let's start our own...
[2016-09-24 18:01:24.979] [INFO] EthereumNode - Node type: geth
[2016-09-24 18:01:24.982] [INFO] EthereumNode - Network: test
[2016-09-24 18:01:24.983] [INFO] EthereumNode - Start node: geth test
[2016-09-24 18:01:32.284] [INFO] EthereumNode - 3000ms elapsed, assuming node started up successfully
[2016-09-24 18:01:32.286] [INFO] EthereumNode - Started node successfully: geth test
[2016-09-24 18:01:32.327] [INFO] Sockets/node-ipc - Connect to {"hostPort":"http://VM_IP:8545"}
[2016-09-24 18:02:02.332] [ERROR] Sockets/node-ipc - Connection failed (30000ms elapsed)
[2016-09-24 18:02:02.333] [ERROR] EthereumNode - Failed to connect to node Error: Unable to connect to socket: timeout

附注迷雾版本 - 0.8.2

最佳答案

你的做法是正确的。我想说的是,您的网络配置问题导致 Mist 无法与 geth 进行通信。我建议您进行以下测试,看看您是否遇到同样的问题:- 在装有 Mist 的计算机上,找到 geth.exe 可执行文件- 使用 geth --testnet --rpc 运行 geth- 使用./Mist --rpc/.../Ethereum/testnet/geth.ipc./Mist --rpc http://localhost:8545启动mist

我使用的是 Mac,所以我猜你必须反转/并到处添加一些 C: 装饰。

关于azure - 如何将 Mist 连接到远程服务器(Azure)上的私有(private)区 block 链?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39677794/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com