找不到fabric-ca-server命令

时间:2019-09-23 07:13:24

标签: linux hyperledger-fabric hyperledger

https://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#initializing-the-server

我尝试过 timestamps,parameterX 2019-04-17 19:50:35.673949957+02:00,4.562560477 2019-04-17 19:50:40.673949957+02:00,4.55232247 2019-04-17 19:50:45.673949957+02:00,4.542084464 2019-04-17 19:50:50.673949957+02:00,4.531846457 2019-04-17 19:50:55.673949957+02:00,4.52160845

但发生错误 fabric-ca-server init -b myID:myPW

我想知道

  1. 如何设置FABRIC_CA_SERVER_HOME变量

  2. 我必须在哪个目录中尝试fabric-ca-server command not found

Linux服务器为18.04

转到1.10

1 个答案:

答案 0 :(得分:0)

  1. 设置服务器的HOME路径:
export FABRIC_CA_SERVER_HOME=${HOME}/fabric-ca/server
  1. 客户端和服务器应已安装在$ GOPATH / bin中。您可以设置$ PATH,以便可以从任何目录运行服务器。
cd ${GOPATH}/bin
fabric-ca-server start -b admin:adminpw