IPFS是分布式文件系统,寻求连接所有计算机设备的相同文件系统。在某些方面,这很类似于原始的Web目标,但是IPFS最终会更像单个比特流群交换的git对象。
IPFS=InterPlanetaryFileSystem
IPFS云成为一个新的、重要的网络子系统,如果构建得当,可以完善或者替换HTTP,或者更多。
IPFS结合了Git,BitTorrent,Kademlia,SFS和Web的优势,提供跟HTTPweb一样简单的接口。
IPFS分为3个代码库:
github.com/ipfs/ipfs-IPFS规范
github.com/ipfs/go-ipfs-Go实现
github.com/protocol/ipfs-webui-Web工作台
使用:
USAGE: ipfs - global p2p merkle-dag filesystem ipfs [<flags>] <command> [<arg>] ... BASIC COMMANDS init Initialize ipfs local configuration add <path> Add an object to ipfs cat <ref> Show ipfs object data get <ref> Download ipfs objects ls <ref> List links from an object refs <ref> List hashes of links from an object DATA STRUCTURE COMMANDS block Interact with raw blocks in the datastore object Interact with raw dag nodes file Interact with Unix filesystem objects ADVANCED COMMANDS daemon Start a long-running daemon process mount Mount an ipfs read-only mountpoint resolve Resolve any type of name name Publish or resolve IPNS names dns Resolve DNS links pin Pin objects to local storage repo gc Garbage collect unpinned objects NETWORK COMMANDS id Show info about ipfs peers bootstrap Add or remove bootstrap peers swarm Manage connections to the p2p network dht Query the dht for values or peers ping Measure the latency of a connection diag Print diagnostics TOOL COMMANDS config Manage configuration version Show ipfs version information update Download and apply go-ipfs updates commands List all available commands Use 'ipfs <command> --help' to learn more about each command.
评论