IPFS 磁盘挂载

39 篇文章 25 订阅 ¥19.90 ¥99.00
9 篇文章 24 订阅 ¥19.90 ¥99.00
本文介绍了在IPFS节点上挂载磁盘的过程,包括遇到的问题、IPFS挂载命令以及FUSE文件系统的概念。通过理解FUSE,我们可以知道它是如何允许在用户态运行程序来实现文件系统操作的。在完成FUSE的安装后,文章详细阐述了如何创建挂载目录并执行挂载命令,最终成功挂载IPFS磁盘。
摘要由CSDN通过智能技术生成

问题描述

IPFS作为文件管理系统,在生产环境上,必然会占用巨大的磁盘空间。一般会在IPFS节点上挂载多个磁盘,或者水平扩展磁盘。那IPFS是怎么进行磁盘挂载的呢?

IPFS挂载磁盘命令

命令如下:

>ipfs mount --help
USAGE
  ipfs mount - Mounts IPFS to the filesystem (read-only).

SYNOPSIS
  ipfs mount [--ipfs-path=<ipfs-path> | -f] [--ipns-path=<ipns-path> | -n]

OPTIONS

  -f, --ipfs-path  string - The path where IPFS should be mounted.
  -n, --ipns-path  string - The path where IPNS should be mounted.

DESCRIPTION

  Mount IPFS at a read-only mountpoint on the OS. The default, /ipfs and /ipns,
  are set in the configuration file, but can be overridden by the options.
  All IPFS objects will be accessible under this directory. Note that the
  root will not be listable, as it is virtual. Access known paths directly.
  
  You may have to create /ipfs and /ipns before using 'ipfs mount':
  
  > sudo mkdir /ipfs /i
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

0X码上链

你的鼓将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值