Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to create an IPFS project in Mac

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

In this issue, the editor will bring you about how to create an IPFS project in Mac. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

If you already have an ipfs, you can copy the folder directly.

$cd / Users/shijun/Desktop/openSourceProject/go-ipfs

$ipfs init

$/ Users/shijun/Desktop/openSourceProject/go-ipfs/ipfs daemon

If you press a step starting at 0:

Download IPFS

Https://dist.ipfs.io/go-ipfs/v0.4.15/go-ipfs_v0.4.15_darwin-amd64.tar.gz

Second, install 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

Third, join the node

$/ 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

IV. 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!

Fifth, write to the file

$ipfs add / Users/shijun/Desktop/openSourceProject/go-ipfs/README.md

Added QmXBpD37vBm5537pqHwyJRGSaX7hMrkHyp866wqEVU2BE8 README.md

Browser view: https://ipfs.io/ipfs/QmXBpD37vBm5537pqHwyJRGSaX7hMrkHyp866wqEVU2BE8

This is how to create an IPFS project in the Mac shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report