Hyperledger Fabric 2.3 測驗網部分指令合集翻譯
- 指令格式
- Modes
- Flags:Used with `network.sh up`, `network.sh createChannel`
- Used with `network.sh deployCC`
指令格式
在Fabric中的指令格式應當為network.sh <Mode> [Flags],下文將詳細介紹Mode指令和Flags指令分別有哪些 ,
Modes
up — bring up fabric orderer and peer nodes. No channel is created.
啟動fabric排序節點和普通節點,沒有通道建立,
up createChannel— bring up fabric network with one channel
建立帶有一個頻道的fabric網路
createChannel—create and join a channel after the network is created
在網路被建立后創建并加入一個頻道
deployCC—deploy the fabcar chaincode on the channel
部署fabcar鏈碼(智能合約)到頻道里
down—clear the network with docker-compose down
清除網路并關閉docker-compose
restart— restart the network
重啟網路
Flags:Used with network.sh up, network.sh createChannel
ca <use CAs> - create Certificate Authorities to generate the crypto material
創建證書頒發機構以生成加密資料
-c <channel name> - channel name to use (defaults to “mychannel”)
要使用的頻道名稱(默認為“mychannel”)
-s <dbtype> - the database backend to use: goleveldb (default) or couchdb
要使用的資料庫后端:goleveldb(默認)或 couchdb
-r <max retry>- CLI times out after certain number of attempts (defaults to 5)
CLI 在一定次數的嘗試后超時(默認為 5)
-d <delay> - delay duration in seconds (defaults to 3)
以秒為單位的延遲持續時間(默認為 3)
-l <language> - the programming language of the chaincode to deploy: go (default), java, javascript, typescript
要部署的鏈碼的編程語言:go(默認)、java、javascript、typescript
-v <version> - chaincode version. Must be a round number, 1, 2, 3, etc
鏈碼版本, 必須是整數,1、2、3 等
-i <imagetag> - the tag to be used to launch the network (defaults to “latest”)
用于啟動網路的標簽(默認為“最新”)
-cai <ca_imagetag> - the image tag to be used for CA (defaults to “1.4.6”)
== 用于 CA 的影像標簽(默認為“1.4.6”)==
-verbose - verbose mode
詳細模式
network.sh -h (print this message)
列印此訊息
Used with network.sh deployCC
-c <channel name> - Name of channel to deploy chaincode to
部署鏈碼的通道名稱
-ccn <name> - Chaincode name.
鏈碼名稱
-ccl <language> - Programming language of the chaincode to deploy: go, java, javascript, typescript
== 要部署的鏈代碼的編程語言:go、java、javascript、typescript==
-ccv <version> - Chaincode version. 1.0 (default), v2, version3.x, etc
鏈碼版本, 1.0(默認)、v2、version3.x 等
-ccs <sequence> - Chaincode definition sequence. Must be an integer, 1 (default), 2, 3, etc、
鏈碼定義序列, 必須是整數、1(默認)、2、3 等
-ccp <path> - File path to the chaincode.
鏈碼的檔案路徑
-ccep <policy> - (Optional) Chaincode endorsement policy using signature policy syntax. The default policy requires an endorsement from Org1 and Org2
(可選)使用簽名策略語法的鏈碼背書策略, 默認策略需要來自 Org1 和 Org2 的背書
-cccg <collection-config> - (Optional) File path to private data collections configuration file
(可選)私有資料集合組態檔的檔案路徑
-cci <fcn name> - (Optional) Name of chaincode initialization function. When a function is provided, the execution of init will be requested and the function will be invoked.
(可選)鏈碼初始化函式的名稱, 當提供一個函式時,將請求執行 init 并呼叫該函式,
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/299023.html
標籤:區塊鏈
