当前位置:网站首页>web3.0系列之分布式存储IPFS
web3.0系列之分布式存储IPFS
2022-07-07 07:14:00 【卢舍那】
背景
web3.0主打去中心化,将数据归还于用户,目前行之有效的底层存储为分布式存储ipfs。这个协议通过将数据分成多段,进行多节点备份,然后通过hash聚合获取原始文件。有几个特点是:全世界分布式网络,分段存储、merkle-tree聚合,多备份,永久,难以攻击等。在web3.0中有望替代http协议,与区块链(不足以承载大数据量)结合构成web3.0的底层。
应用
安装
git clone https://github.com/ipfs/go-ipfs.git
cd go-ipfs
make install
这个采用go源码进行安装,还有其他方式。
启动
1、ipfs init
会进行初始化,有个默认的配置,目录在~/.ipfs
2、ipfs daemon
开启可视化界面后端服务
本地通过浏览器可以访问:http://127.0.0.1:5001/webui
3、简单的操作
传文件可以通过ipfs界面进行,也可以通过命令行
ipfs add 添加文件
ipfs get获取文件
其他的可以通过ipfs help进行查看
边栏推荐
- Flex flexible layout
- C socke server, client, UDP
- Pit encountered by vs2015 under win7 (successful)
- 根据热门面试题分析Android事件分发机制(二)---事件冲突分析处理
- Hcip first day notes sorting
- flink. CDC sqlserver. 可以再次写入sqlserver中么 有连接器的 dem
- [untitled]
- Can't connect to MySQL server on '(10060) solution summary
- 小程序滑动、点击切换简洁UI
- The industrial chain of consumer Internet is actually very short. It only undertakes the role of docking and matchmaking between upstream and downstream platforms
猜你喜欢

Future development blueprint of agriculture and animal husbandry -- vertical agriculture + artificial meat

印象笔记终于支持默认markdown预览模式

Use 3 in data modeling σ Eliminate outliers for data cleaning

PLC信号处理系列之开关量信号防抖FB

基础篇:带你从头到尾玩转注解

Basic chapter: take you through notes

Flex flexible layout

Software modeling and analysis

Dynamics 365online applicationuser creation method change

AI moves from perception to intelligent cognition
随机推荐
【BW16 应用篇】安信可BW16模组/开发板AT指令实现MQTT通讯
Liunx command
第一讲:包含min函数的栈
[original] what is the core of programmer team management?
2020 Zhejiang Provincial Games
iNFTnews | 时尚品牌将以什么方式进入元宇宙?
基础篇:带你从头到尾玩转注解
Deep understanding of UDP, TCP
There is a problem using Chinese characters in SQL. Who has encountered it? Such as value & lt; & gt;` None`
位操作==c语言2
Can flycdc use SqlClient to specify mysqlbinlog ID to execute tasks
洛谷P2482 [SDOI2010]猪国杀
2016 CCPC Hangzhou Onsite
如何成为一名高级数字 IC 设计工程师(1-6)Verilog 编码语法篇:经典数字 IC 设计
Qualifying 3
企业实战|复杂业务关系下的银行业运维指标体系建设
一大波开源小抄来袭
Huffman encoded compressed file
[Frida practice] "one line" code teaches you to obtain all Lua scripts in wegame platform
2020浙江省赛