Hyperledger Fabric installation deployment and test network summary

Put the official learning documents first, and always believe that the official documents are the best and the latest! ! !

Getting Started — hyperledger-fabricdocs master documentation

Environmental preparation

Most of the environment construction can refer to the next article

Detailed steps to build a Hyperledger Fabric environment, super detailed_FAFU_kyp's Blog-CSDN Blog

But it should be noted that the go language version in the article is relatively old, and there may be problems, so you can go to the official website to check the latest version and change the command! (currently the latest version is 1.18.4)

At the same time, after we download something, it is best to execute

sudo apt-get update

Update the index to avoid errors, and then download the next one

For docker permission issues, you can refer to this article

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/json": dial unix /var/run/docker.sock: connect: permission denied

[Linux] docker appears Got permission denied while trying to connect to the Docker daemon socket... The solution to the problem_Cloudeeeee's Blog-CSDN Blog

Environment build

Installing examples, binaries and Docker images — hyperledger-fabricdocs master documentation

During the download process, the image will be pulled at the same time. This step is prone to problems, such as less pulls, or the network cannot be connected, etc... Please refer to the following content

Problem 1: Fewer pulls

 

Reason: Because the official sh file has a version number-related problem, several important files will be missing in the image download. At this time, we need to pull the missing image by ourselves.

Solution:  Compare the above screenshots and pull what is missing.

docker pull hyperledger/fabric-ca:版本
docker pull hyperledger/fabric-orderer:版本
docker pull hyperledger/fabric-peer:版本
docker pull hyperledger/fabric-ccenv:版本
docker pull hyperledger/fabric-tools:版本
docker pull hyperledger/fabric-baseos:版本
docker pull hyperledger/fabric-kafka:版本
docker pull hyperledger/fabric-zookeeper:版本
docker pull hyperledger/fabric-couchdb:版本

 Note: Here you need to pay attention to the above content, which respectively gives the images of version 1.x and version 2.x. You can pick them up according to your needs. Normally, the official documents are complete. Personally, I suggest that you try not to read online articles.

Problem 2: Network Problems

Install and use clash for windows (the simplest version) under ubuntu 20.04 - jjjzzzqqq - Blog Garden (cnblogs.com)

If downloading the installation package in the virtual machine is too slow, you can solve it by using a shared folder, refer to the following article

File transfer method between the host machine win10 and the virtual machine ubuntu- Zhihu (zhihu.com)

Summarize:

At the beginning, I also followed the online articles to operate, but I have never been successful. I reported various errors, went back and forth, and finally returned to the official documents. So it also shows that only official documents are the most authoritative and up-to-date. Many online articles are published several years ago. .

Guess you like

Origin blog.csdn.net/weixin_51306597/article/details/125786744