多机部署Fabric v2.2.0时,主机2加入网络时报错如下
ERRO 001 Cannot run peer because cannot init crypto, specified path "/opt/gopath/src/github.com/hyperledger/fabric/peer/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" does not exist or cannot be accessed: stat /opt/gopath/src/github.com/hyperledger/fabric/peer/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: no such file or directory
原因是没有将虚拟机1
生成的证书和密钥文件复制到虚拟机2
下相应的目录中,文件名为ordererOrganizations
、peerOrganizations
可以将虚拟机1
先复制window电脑中