日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Ubuntu >内容正文

Ubuntu

Ubuntu配置IPFS的环境

發布時間:2023/12/13 Ubuntu 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Ubuntu配置IPFS的环境 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

參考鏈接

  • Ubuntu上IPFS環境搭建 - 簡書

下載安裝包

  • 下載地址: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博客
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎

總結

以上是生活随笔為你收集整理的Ubuntu配置IPFS的环境的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。