当前位置:网站首页>Web3.0 series distributed storage IPFs

Web3.0 series distributed storage IPFs

2022-07-07 10:01:00 Luchena

background

web3.0 Focus on decentralization , Return the data to the user , At present, the effective underlying storage is distributed storage ipfs. This protocol divides data into segments , Perform multi node backup , And then through hash Aggregate to get the original file . There are several characteristics : Worldwide distributed network , Segmented storage 、merkle-tree polymerization , Multiple backup , permanent , Difficult to attack, etc . stay web3.0 Is expected to replace http agreement , Block chain ( Not enough to carry large amounts of data ) Combination composition web3.0 The bottom of the .

application

install

git clone https://github.com/ipfs/go-ipfs.git
cd go-ipfs 
make install 

This one uses go Source code to install , There are other ways .

start-up

1、ipfs init
It will be initialized , There is a default configuration , Directory in ~/.ipfs
2、ipfs daemon
Open the back-end service of the visual interface
You can access it locally through the browser :http://127.0.0.1:5001/webui
 Insert picture description here
3、 Simple operation
Documents can be transferred through ipfs Interface operation , You can also use the command line
ipfs add Add files
ipfs get get files
Others can go through ipfs help To view the

原网站

版权声明
本文为[Luchena]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070714042322.html