參考鏈接
下載安裝包
- 下載地址:https://dist.ipfs.io/#go-ipfs
- 頁面會自動根據你的操作系統提供適合的下載安裝包,所以需要在Ubuntu環境下點開上面那個鏈接,網頁自動識別當前的平臺并提供對應的版本,點擊下載按鈕即可
- 將壓縮包上傳至指定的路徑下,使用命令進行解壓??tar xvfz go-ipfs_v0.4.15_linux-amd64.tar.gz??
- 進入解壓后的文件夾?cd go-ipfs
- 此刻/usr/local/bin 文件夾下面已經存在ipfs可執行程序
- 進行簡單的驗證:ipfs version #查看版本? ??ipfs help #查看幫助文檔
$ tar xvfz go-ipfs_v0.4.15_linux-amd64.tar.gz
go-ipfs/build-log
go-ipfs/install.sh
go-ipfs/ipfs
go-ipfs/LICENSE
go-ipfs/README.md$ cd go-ipfs
$ sudo mv ipfs /usr/local/bin/ipfs
$ ipfs version #查看版本
ipfs version 0.4.15
$ ipfs help #查看幫助文檔USAGEipfs - Global p2p merkle-dag filesystem.ipfs [--config=<config> | -c] [--debug=<debug> | -D] [--help=<help>] [-h=<h>] [--local=<local> | -L] [--api=<api>] <command> ...SUBCOMMANDSBASIC COMMANDSinit Initialize ipfs local configurationadd <path> Add a file to IPFScat <ref> Show IPFS object dataget <ref> Download IPFS objectsls <ref> List links from an objectrefs <ref> List hashes of links from an objectDATA STRUCTURE COMMANDSblock Interact with raw blocks in the datastoreobject Interact with raw dag nodesfiles Interact with objects as if they were a unix filesystemdag Interact with IPLD documents (experimental)ADVANCED COMMANDSdaemon Start a long-running daemon processmount Mount an IPFS read-only mountpointresolve Resolve any type of namename Publish and resolve IPNS nameskey Create and list IPNS name keypairsdns Resolve DNS linkspin Pin objects to local storagerepo Manipulate the IPFS repositorystats Various operational statsp2p Libp2p stream mountingfilestore Manage the filestore (experimental)NETWORK COMMANDSid Show info about IPFS peersbootstrap Add or remove bootstrap peersswarm Manage connections to the p2p networkdht Query the DHT for values or peersping Measure the latency of a connectiondiag Print diagnosticsTOOL COMMANDSconfig Manage configurationversion Show ipfs version informationupdate Download and apply go-ipfs updatescommands List all available commandsUse 'ipfs <command> --help' to learn more about each command.ipfs uses a repository in the local file system. By default, the repo islocated at ~/.ipfs. To change the repo location, set the $IPFS_PATHenvironment variable:export IPFS_PATH=/path/to/ipfsrepoEXIT STATUSThe CLI will exit with one of the following values:0 Successful execution.1 Failed executions.
項目配置
- 創建IPFS節點??ipfs init
- 查看節點id? ?ipfs id
- 啟動節點服務器 ipfs? daemon? ?主要用于節點之間互傳文件
相關圖片



參考鏈接
- 演示IPFS的一個完整的流程以及針對部分概念的詳解_CHYabc123456hh的博客-CSDN博客