如果已经通过类型如下命令启动了一个节点
geth --datadir "./" --nodiscover console 2>>geth.log
该命令启动的端口默认为30303
再运行如下命令:
geth --datadir "./" --nodiscover console 2>>geth.log --port "30304"
会报如下错误:
Fatal: Error starting protocol stack: Access is denied.
加上ipcpath参数就可以了
如下
geth --datadir "./" --nodiscover console 2>>geth.log --ipcpath "geth.rpc" --port "30304"
所以要在同一台电脑上启动多个节点 不仅要端口不一样 还要设置的ipcpath的值也要不一样