您好,登錄后才能下訂單哦!
這期內容當中小編將會給大家帶來有關Mac中怎么創建一個IPFS項目,文章內容豐富且以專業的角度為大家分析和敘述,閱讀完這篇文章希望大家可以有所收獲。
如果已經有ipfs可以直接復制文件夾
$ cd /Users/shijun/Desktop/openSourceProject/go-ipfs
$ ipfs init
$ /Users/shijun/Desktop/openSourceProject/go-ipfs/ipfs daemon
如果從0開始按一下步驟:
一、下載IPFS
https://dist.ipfs.io/go-ipfs/v0.4.15/go-ipfs_v0.4.15_darwin-amd64.tar.gz
二、安裝IPFS
$ sudo ./install.sh
Moved ipfs to /usr/local/bin
$ /Users/shijun/Desktop/openSourceProject/go-ipfs/ipfs init
initializing IPFS node at /Users/shijun/.ipfs
generating 2048-bit RSA keypair...done
peer identity: QmRMqW15KVaE4SWNx827fCGnkFhrJNigLqVVu71W4stqYf
to get started, enter:
ipfs cat /ipfs/QmS4ustL54uo8FzR9455qaxZwuMiUhyvMcX9Ba8nUH4uVv/readme
三、加入節點
$ /Users/shijun/Desktop/openSourceProject/go-ipfs/ipfs daemon
Initializing daemon...
Successfully raised file descriptor limit to 2048.
Swarm listening on /ip4/10.85.110.146/tcp/4001
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
Swarm listening on /p2p-circuit/ipfs/QmRMqW15KVaE4SWNx827fCGnkFhrJNigLqVVu71W4stqYf
Swarm announcing /ip4/10.85.110.146/tcp/4001
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip6/::1/tcp/4001
API server listening on /ip4/127.0.0.1/tcp/5001
Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
Daemon is ready
四、IPFS ReadMe
$ ipfs cat /ipfs/QmS4ustL54uo8FzR9455qaxZwuMiUhyvMcX9Ba8nUH4uVv/readme
Hello and Welcome to IPFS!
██╗██████╗ ███████╗███████╗
██║██╔══██╗██╔════╝██╔════╝
██║██████╔╝█████╗ ███████╗
██║██╔═══╝ ██╔══╝ ╚════██║
██║██║ ██║ ███████║
╚═╝╚═╝ ╚═╝ ╚══════╝
If you're seeing this, you have successfully installed
IPFS and are now interfacing with the ipfs merkledag!
五、寫入文件
$ ipfs add /Users/shijun/Desktop/openSourceProject/go-ipfs/README.md
added QmXBpD37vBm5537pqHwyJRGSaX7hMrkHyp866wqEVU2BE8 README.md
瀏覽器查看: https://ipfs.io/ipfs/QmXBpD37vBm5537pqHwyJRGSaX7hMrkHyp866wqEVU2BE8
上述就是小編為大家分享的Mac中怎么創建一個IPFS項目了,如果剛好有類似的疑惑,不妨參照上述分析進行理解。如果想知道更多相關知識,歡迎關注億速云行業資訊頻道。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。