我在vm中安装了centos,在centos上搭建了以太坊私有链环境,并用geth --nodiscover --identity "grow" --rpc --rpccorsdomain "*" --datadir ./data --port "30303" --rpcapi "db,eth,net,web3" --rpcport 8545 --networkid 6666 --allow-insecure-unlock console 2>>geth.log
命令启动了节点。
现在的问题是无法在主机chrome中用remix连接此链,链接写的“http://centosip
:8545”无法连接,显示报错:“Error while connecting to the provider, provider not connected”
请问如何解决?如果描述不足,我会再添加。
先ping centosip是否通,然后检查防火墙,把防火墙关闭试一下.