In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to use the official browser of Fabric blockchain, I believe most people do not know much about it, so share this article for your reference. I hope you will learn a lot after reading this article. Let's learn about it together.
Blockchain-explorer is the official blockchain browser provided by Hyperledger, which currently supports Fabric 1.4.x blockchain. Download address: https://github.com/ezpod/blockchain-explorer/.
The official installation steps are a little complicated, the Chinese version of the detailed installation instructions here. The following is a quick installation guide:
1. Start the sample network of Fabric
First, refer to the official documentation of the Fabric blockchain to install and launch the first-network network in fabric-samples:
~ / fabrc-samples$. / byfn.sh up-l node
If it is a windows system, you can use this Fabric blockchain one-click installation tool.
2. Install the basic software required by the Fabric Block chain browser
Before installing and configuring the Fabric browser, you need to install the following software on the local machine:
Postgresql 9.5
Nodejs 8-10-12
Docker CE 18.09.2 +
Docker Compose 1.14.0
3. Download the Chinese version of the Fabric blockchain browser code
Download the code of the Chinese version of the Fabric blockchain browser locally using the following command:
~ $git clone https://github.com/ezpod/blockchain-explorer.git4, configure the connection to the Fabric network
Modify the following configuration user identity MSP path that is used by Fabric browsers to access the Fabric network:
Blockchain-explorer/app/platform/fabric/connection/first-network.json
There are three points involved, which are modified by referring to your own fabric-smaples path:
Organizations-> Org1MSP-> adminPrivateKey
Organizations-> Org1MSP-> signedCert
Peers-> peer0.org1.example.com-> tlsCACerts-> papth
5. Initialize the postgresql database
Initialize the postgresql database by executing the following command:
~ $cd blockchain-explorer/app/persistence/fabric/postgreSQL/db~/blockchain-explorer/app/persistence/fabric/postgreSQL/db$ sudo-u postgres. / createdb.sh
Note that the createdb.sh script requires nodejs support, so you can access node by switching to the postgres account.
6. Build fabric block chain browser.
Execute the following command: back-end service and front-end application of fabric block chain browser:
~ $cd blockchain-explorer~/blockchain-explorer$. / main.sh install7, start the Fabric blockchain browser service
Execute the following command to start the fabric blockchain browser service:
~ / blockchain-explorer$. / start.sh
This is a background process, so when started, it returns to the command line prompt. This is normal. At this point, you should already be listening on port 8080, and you can access it using a browser. On the first visit, you will automatically go to the login interface:
Note that the login account and password are associated with the network. For first-network, the default user name is admin and the password is adminpw. You can configure it in the file mentioned earlier:
Blockchain-explorer/app/platform/fabric/connection/first-network.json
If you need to stop the fabric blockchain browser from running, execute the following command:
~ / blockchain-exlorer$. / stop.sh
If it is inaccessible or abnormal in the browser after startup, you can refer to the log file of the Fabric browser for troubleshooting:
Logs/app/app.log
Logs/console/console.log
Logs/db/db.log
The above is all the contents of the article "how to use the official browser of Fabric Block chain". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.