修改/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
欢迎小伙伴讨论,如有错误请在评论区评论或发私聊消息,谢谢你。