Could not find profile: TwoOrgsOrdererGenesis.
** 问题: **当执行 ../bin/configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block -channelID channel00 时出现错误如下: 错误提示: Could not find profile: TwoOrgsOrdererGenesis. Please make sure that FABRIC_CFG_PATH or -configPath is set to a path which contains configtx.yaml with the specified profile 问题分析:根据出现的提示,做一下分析判断: 判断文件 configtx.yaml 是否存在。 存在 判断FABRIC_CFG_PATH是否正确。 echo $FABRIC_CFG_PATH 正确 可以判断问题是出在 configtx.yaml 中,打开这个文件,找到 profile ,看里面是否存在 TwoOrgsOrdererGenesis 。 发现 TwoOrgsOrdererGenesis 并不存在,所以可以断定是这个文件中出了问题。 网上找到的关于这个文件是这样的: Profiles: TwoOrgsOrdererGenesis: