找不到“对等"命令超级账本 [英] 'peer' command not found hyperledger

查看:673
本文介绍了找不到“对等"命令超级账本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究本教程:

http://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html

在命令创建和加入频道"部分:

At the section "Create & Join Channel" at the command :

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/cacerts/ca.example.com-cert.pem

我收到此错误:

未找到命令"peer",您的意思是:
从软件包"moreutils"(通用)中发出命令"pee"
从软件包"gerstensaft"(通用)中命令啤酒"
从软件包"ears"(通用)中命令"peel"
从软件包"php-pear"(主)中命令"pear"
peer:找不到命令

No command 'peer' found, did you mean:
Command 'pee' from package 'moreutils' (universe)
Command 'beer' from package 'gerstensaft' (universe)
Command 'peel' from package 'ears' (universe)
Command 'pear' from package 'php-pear' (main)
peer: command not found

推荐答案

由于您已按照指南进行操作,所以我想您正在使用Docker,而且似乎未连接到 cli容器,否则,它将知道命令"peer"(我可能会误会).

Since you are following the guide, I suppose you are using Docker and it seems that you are not connected to the cli container, otherwise, it would have known the command "peer" (I might be mistaken).

要连接到cli容器,请执行以下操作:

To connect to the cli container:

docker exec -it cli bash

docker exec -it cli bash

如果这不是问题,则可以从bin文件夹尝试命令:

If this is not the problem, you can try the command from the bin folder :

/usr/local/bin

/usr/local/bin

但是此文件夹应位于 PATH 环境变量中,例如:

But this folder should be in the PATH environment variable, for example:

PATH =/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

这篇关于找不到“对等"命令超级账本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆