- Kubo (go-IPFS) 是最早和使用最广泛的 IPFS 实现。它包括:
- 一个 IPFS 守护程序服务器
- 广泛的命令行工具
- 用于控制节点的 HTTP RPC API
- 用于向 HTTP 浏览器提供内容的 HTTP 网关
下载
- https://dist.ipfs.tech/#go-ipfs
解压
初始化
C:\Users\kingchuxing\kubo>ipfs init
generating ED25519 keypair...done
peer identity: 12D3KooWSjxg6Qv8U6vcAMisyZr3agktNzzmKMUTW4Yd12qRe6UC
initializing IPFS node at C:\Users\kingchuxing\.ipfs
C:\Users\kingchuxing\kubo>ipfs swarm peers
Error: this action must be run in online mode, try running 'ipfs daemon' first
启动IPFS 守护程序服务器
C:\Users\kingchuxing\kubo>ipfs daemon
Initializing daemon...
Kubo version: 0.31.0
Repo version: 16
System version: amd64/windows
Golang version: go1.23.2
PeerID: 12D3KooWSjxg6Qv8U6vcAMisyZr3agktNzzmKMUTW4Yd12qRe6UC
Swarm listening on 127.0.0.1:4001 (TCP+UDP)
Swarm listening on 169.254.10.21:4001 (TCP+UDP)
Swarm listening on 169.254.253.104:4001 (TCP+UDP)
Swarm listening on 169.254.47.8:4001 (TCP+UDP)
Swarm listening on 172.23.118.182:4001 (TCP+UDP)
Swarm listening on 172.28.208.1:4001 (TCP+UDP)
Swarm listening on 192.168.69.72:4001 (TCP+UDP)
Swarm listening on [::1]:4001 (TCP+UDP)
Run 'ipfs id' to inspect announced and discovered multiaddrs of this node.
RPC API server listening on /ip4/127.0.0.1/tcp/5001
WebUI: http://127.0.0.1:5001/webuiError: serveHTTPGateway: manet.Listen(/ip4/127.0.0.1/tcp/8080) failed: listen tcp4 127.0.0.1:8080: bind: An attempt was made to access a socket in a way forbidden by its access permissions.C:\Users\kingchuxing\kubo>netstat -ano | findstr "8080"TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 4696TCP [::]:8080 [::]:0 LISTENING 4696C:\Users\kingchuxing\kubo>taskkill /PID 4696 /F
错误: 无法终止 PID 为 4696 的进程。
原因: 拒绝访问。
- 修改配置地址:
- 再重新启动:
C:\Users\kingchuxing\kubo>ipfs daemon
Initializing daemon...
Kubo version: 0.31.0
Repo version: 16
System version: amd64/windows
Golang version: go1.23.2
PeerID: 12D3KooWSjxg6Qv8U6vcAMisyZr3agktNzzmKMUTW4Yd12qRe6UC
Swarm listening on 127.0.0.1:4001 (TCP+UDP)
Swarm listening on 169.254.10.21:4001 (TCP+UDP)
Swarm listening on 169.254.253.104:4001 (TCP+UDP)
Swarm listening on 169.254.47.8:4001 (TCP+UDP)
Swarm listening on 172.23.118.182:4001 (TCP+UDP)
Swarm listening on 172.28.208.1:4001 (TCP+UDP)
Swarm listening on 192.168.69.72:4001 (TCP+UDP)
Swarm listening on [::1]:4001 (TCP+UDP)
Run 'ipfs id' to inspect announced and discovered multiaddrs of this node.
RPC API server listening on /ip4/127.0.0.1/tcp/5001
WebUI: http://127.0.0.1:5001/webui
Gateway server listening on /ip4/127.0.0.1/tcp/8081
Daemon is ready
访问WebUI: 浏览器打开http://127.0.0.1:5001/webui
cg
- 以下是对IPFS 官方桌面客户端 IPFS Desktop https://github.com/ipfs/ipfs-desktop的使用,但是一直再加载中。