分享

分布式文件系统 IPFS

 一元夺宝害人 2018-03-22

IPFS 是分布式文件系统,寻求连接所有计算机设备的相同文件系统。在某些方面,这很类似于原始的 Web 目标,但是 IPFS 最终会更像单个比特流群交换的 git 对象。
IPFS = InterPlanetary File System
IPFS 云成为一个新的,重要的网络子系统,如果构建得当,那么可以完善或者替换 HTTP,或者说可以完善或者替代更多,听起来很疯狂,但是确实很疯狂!
IPFS 结合了 Git,BitTorrent,Kademlia,SFS 和 Web 的优势,提供跟 HTTP web 一样简单的接口。
IPFS 分为 3 个代码库:
使用:
  1. USAGE:

  2.     ipfs - global p2p merkle-dag filesystem

  3.     ipfs [<flags>] <command> [<arg>] ...

  4.     BASIC COMMANDS

  5.         init          Initialize ipfs local configuration
  6.         add <path>    Add an object to ipfs
  7.         cat <ref>     Show ipfs object data
  8.         get <ref>     Download ipfs objects
  9.         ls <ref>      List links from an object
  10.         refs <ref>    List hashes of links from an object

  11.     DATA STRUCTURE COMMANDS

  12.         block         Interact with raw blocks in the datastore
  13.         object        Interact with raw dag nodes
  14.         file          Interact with Unix filesystem objects

  15.     ADVANCED COMMANDS

  16.         daemon        Start a long-running daemon process
  17.         mount         Mount an ipfs read-only mountpoint
  18.         resolve       Resolve any type of name
  19.         name          Publish or resolve IPNS names
  20.         dns           Resolve DNS links
  21.         pin           Pin objects to local storage
  22.         repo gc       Garbage collect unpinned objects

  23.     NETWORK COMMANDS

  24.         id            Show info about ipfs peers
  25.         bootstrap     Add or remove bootstrap peers
  26.         swarm         Manage connections to the p2p network
  27.         dht           Query the dht for values or peers
  28.         ping          Measure the latency of a connection
  29.         diag          Print diagnostics

  30.     TOOL COMMANDS

  31.         config        Manage configuration
  32.         version       Show ipfs version information
  33.         update        Download and apply go-ipfs updates
  34.         commands      List all available commands

  35.     Use 'ipfs <command> --help' to learn more about each command.
复制代码

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多