首页 > 解决方案 > 无法连接到远程 geth:无效的管道地址“~/.ethereum/rinkeby/geth.ipc”

问题描述

我在 Windows 上试图通过 rinkeby 连接到 geth.ipc。我下载了geth 1.9.25-stable版本

我的第一个命令是

geth --datadir=$HOME/.rinkeby init rinkeby.json

用于 geth 初始化

然后,我使用以下命令运行 geth。

geth --networkid=4 --datadir=$HOME/.rinkeby --cache=1024 --bootnodes=enode://a24ac7c5484ef4ed0c5eb2d36620ba4e4aa13b8c84684e1b4aab0cebea2ae45cb4d375b77eab56516d34bfbd3c1a833fc51296ff084b770b94fb9028c4d25ccf@52.169.42.101:30303

为了从另一个终端使用 javascript 控制台连接到节点并继续进行其余的批处理工作,我打开了一个新终端并执行了以下命令。

geth attach ~/.rinkeby/geth.ipc

我收到了一些错误消息:

致命:无法附加到远程 geth:管道地址“~/.rinkeby/geth.ipc”无效。

我也尝试了下面的代码,但我收到了以下错误消息。

geth attach ~/.ethereum/rinkeby/geth.ipc 

致命:无法连接到远程 geth:管道地址“~/.ethereum/rinkeby/geth.ipc”无效。

geth attach ipc:\\.\pipe\geth-rinkeby.ipc 

致命:无法连接到远程 geth:等待管道 '\.\pipe\geth-rinkeby.ipc' 可用时超时

提前致谢!

标签: javascriptblockchaingeth

解决方案


推荐阅读