修改/etc/hosts文件指令

sudo vim /etc/hosts

I插入,插入完成后按ESC退出插入,输入:wq!保存退出,如下图所示

192.168.171.xxx orderer0.example.com
192.168.171.xxx orderer1.example.com
192.168.171.xxx orderer2.example.com
192.168.171.xxx peer0.org1.example.com
192.168.171.xxx peer1.org1.example.com
192.168.171.xxx peer0.org2.example.com

重启一下网络
Ubuntu

sudo /etc/init.d/networking restart

CentOS

sudo /etc/init.d/network restart

欢迎小伙伴讨论,如有错误请在评论区评论或发私聊消息,谢谢你。

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐