Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Hyperledger fabric 找不到对等命令_Hyperledger Fabric - Fatal编程技术网

Hyperledger fabric 找不到对等命令

Hyperledger fabric 找不到对等命令,hyperledger-fabric,Hyperledger Fabric,我正在编写这个教程 要创建和加入通道,我正在尝试运行以下对等命令: peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/

我正在编写这个教程

要创建和加入通道,我正在尝试运行以下对等命令:

peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

在执行
docker exec-it cli
bash之后,我也连接到了容器。即使我已经尝试了
/peer
,但我仍然没有发现对等目录或找不到对等命令

这可能是由于存储对等二进制文件的相对路径不正确。您可以在hyperledger/fabric/build/bin中找到它。找到对等二进制文件后,使用导出。 e、 g.导出路径=$PATH:$GOPATH/src/github.com/hyperledger/fabric/build/bin/


然后尝试使用您正在使用的命令创建频道。

您能告诉我们以下命令的输出吗,从cli容器中运行:1)ls-l/usr/local/bin 2)echo$PATH$echo$PATH/c/Users/lenovo/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Program Files/D ocker Toolbox:/c/Users/lenovo/bin:/mingw64/bin:/usr/bin:/c/Users/lenovo/bin:/c/Program Files/jdk1.8.0\u 91/bin:/crogramData/Oracle/Java/javapath:/c/Windows/system32:/c/Windows/System 32/Wbem:/c/Windows/system32/WindowsPowerShell/v1.0:/c/Program Files(x86)/Skype/Phone:/cmd:/c/Program Files/Docker Toolbox:/usr/bin/vendor\u perl:/usr/bin/core\u pe rl:/usr/bin/vendor\u perl:/usr/bin/vendor\bin/core_perllenovo@lenovo-PC MINGW64~/面料样本/第一网络(发布版)$ls-l/usr/local/bin ls:无法访问“/usr/local/bin”:没有此类文件或目录您必须在cli容器中。docker exec-it cli bashroot@de935c3ae296:/opt/gopath/src/github.com/hyperledger/fabric/peer#是的,在运行docker exec-it ci bash@christo4ferris后,我确实进入了容器中,但仍然面临找不到对等命令的错误