Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ubuntu 16.04 how to install Hyperledger/Fabric 1.0.2

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to install Hyperledger/Fabric 1.0.2 on Ubuntu 16.04. the editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

1. Modify deb update address

Slightly

two。 Install docker

Sudo apt-get install docker

3. Install curl

Sudo apt-get install curl

4. Install go

Download the go installation package

Wget https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz

Decompression

Tar-C / usr/local-xzf go1.9.linux-amd64.tar.gz

For the setting of environment variables, see step 5.

5. Install nodejs

Get off https://npm.taobao.org/mirrors/node/ from here.

Feel free to choose the version, the 6.11.3 LTS version I choose here.

Cd ~ echo $PWD/home/johnnywget https://npm.taobao.org/mirrors/node/v6.11.3/node-v6.11.3-linux-x64.tar.gztar-C ~ /-zxf node-v6.11.3-linux-x64.tar.gz

Edit .profile to add nodejs path

Vi / .profile

Increase at the end

PATH= "/ usr/local/go/bin:$HOME/node-v6.11.3-linux-x64/bin:$PATH" source ~ / .profile

6. Set docker domestic image

Vi / etc/default/docker

Increase

DOCKER_OPTS= "--registry-mirror= https://docker.mirrors.ustc.edu.cn"

Restart docker

Sudo service docker restart

7. Download fabric image

Docker pull hyperledger/fabric-orderer:x86_64-1.0.2docker pull hyperledger/fabric-peer:x86_64-1.0.2docker pull hyperledger/fabric-zookeeper:x86_64-1.0.2docker pull hyperledger/fabric-couchdb:x86_64-1.0.2docker pull hyperledger/fabric-kafka:x86_64-1.0.2docker pull hyperledger/fabric-ca:x86_64-1.0.2docker pull hyperledger/fabric-ccenv:x86_64-1.0.2docker pull hyperledger/fabric-javaenv: X8634-1.0.2docker pull hyperledger/fabric-tools:x86_64-1.0.2docker tag hyperledger/fabric-orderer:x86_64-1.0.2 hyperledger/fabric-orderer:latestdocker tag hyperledger/fabric-peer:x86_64-1.0.2 hyperledger/fabric-peer:latestdocker tag hyperledger/fabric-zookeeper:x86_64-1.0.2 hyperledger/fabric-zookeeper:latestdocker tag hyperledger/fabric-couchdb:x86_64-1.0.2 hyperledger/fabric-couchdb:latestdocker tag hyperledger/ Fabric-kafka:x86_64-1.0.2 hyperledger/fabric-kafka:latestdocker tag hyperledger/fabric-ca:x86_64-1.0.2 hyperledger/fabric-ca:latestdocker tag hyperledger/fabric-ccenv:x86_64-1.0.2 hyperledger/fabric-ccenv:latestdocker tag hyperledger/fabric-javaenv:x86_64-1.0.2 hyperledger/fabric-javaenv:latestdocker tag hyperledger/fabric-tools:x86_64-1.0.2 hyperledger/fabric-tools:latest

8. Download the fabric project source code

Cd / home/johnny/dev/githubgit clone https://github.com/hyperledger/fabric.git verification: git clone https://github.com/hyperledger/fabric-ca.git executes the following command to build a fabricV1.0 beta network, including 6 docker image, including 4 peer nodes (peer0,peer1,peer2,peer3) and one order service node And a CLI node used to execute the command cd $GOPATH/src/github.com/hyperledger/fabric./network_setup.sh up the success flag is as follows: = Query on PEER3 on channel' mychannel' is successful = = All GOOD, End-2-End execution completed = you can find the relevant node process through docker ps to shut down the fabricV1.0 beta network Use the following command. / network_setup.sh down on "Ubuntu 16.04 how to install Hyperledger/Fabric 1.0.2" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report