官术网_书友最值得收藏!

How to do it...

Since we need add the new organization, Org3, to BYFN, we will first bring up the BYFN network. Follow these steps:

  1. Bring up the first network using the following command:
        $ cd ~
$ cd fabric-samples/first-network
$ sudo ./byfn.sh generate
$ sudo ./byfn.sh up

  1. Execute the script to add Org3 into the mychannel channel:
    $ cd ~
$ cd fabric-samples/first-network
$ sudo ./eyfn.sh up

The following screenshot confirms org3 is added to mychannel successfully: 

We can test this by running a query against Org3 peer0.

  1.  To shut down and clean up the network, execute the following:
        $ cd fabric-samples/first-network
$ sudo ./eyfn.sh down
$ sudo ./byfn.sh down
主站蜘蛛池模板: 罗江县| 长垣县| 察隅县| 云梦县| 大关县| 乡城县| 延川县| 丁青县| 文昌市| 土默特右旗| 台前县| 卓资县| 定结县| 马尔康县| 东阿县| 敦煌市| 金堂县| 怀来县| 沙坪坝区| 中阳县| 广安市| 桐乡市| 开阳县| 栾城县| 长兴县| 连南| 尤溪县| 桂林市| 正蓝旗| 霍林郭勒市| 田东县| 贵德县| 新河县| 怀宁县| 柞水县| 岳西县| 二连浩特市| 绥芬河市| 四会市| 宿松县| 大渡口区|