IPFS分布式文件系統(tǒng)
IPFS 是分布式文件系統(tǒng),尋求連接所有計算機設備的相同文件系統(tǒng)。在某些方面,這很類似于原始的 Web 目標,但是 IPFS 最終會更像單個比特流群交換的 git 對象。
IPFS = InterPlanetary File System
IPFS 云成為一個新的、重要的網絡子系統(tǒng),如果構建得當,可以完善或者替換 HTTP,或者更多。
IPFS 結合了 Git,BitTorrent,Kademlia,SFS 和 Web 的優(yōu)勢,提供跟 HTTP web 一樣簡單的接口。
IPFS 分為 3 個代碼庫:
-
github.com/ipfs/ipfs - IPFS 規(guī)范
-
github.com/ipfs/go-ipfs - Go 實現(xiàn)
-
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.
評論
圖片
表情
