美文网首页
geth在同一电脑建立双节点私有链

geth在同一电脑建立双节点私有链

作者: 果果2019 | 来源:发表于2018-07-24 16:40 被阅读0次

geth在同一电脑建立双节点私有链,注意事项:

1、端口设置不一样;

2、数据文件夹不一样;

3、启动参数也要有所差异;

例如:节点一:

geth --datadir "./" init genesis.json

geth --datadir "./" --port 30303 --nodiscover console

节点二:

geth --datadir "./" init genesis.json

geth --datadir "./" --port 40404 --nodiscover --ipcdisable console

多一个参数:--ipcdisable

否则会报错:Erro starting protocol stack:Access is denied

相关文章

网友评论

      本文标题:geth在同一电脑建立双节点私有链

      本文链接:https://www.haomeiwen.com/subject/vakymftx.html