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 ofthis node.RPCAPI server listening on /ip4/127.0.0.1/tcp/5001
WebUI: http://127.0.0.1:5001/webui
Error: 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"TCP0.0.0.0:80800.0.0.0:0LISTENING4696TCP[::]:8080[::]:0LISTENING4696C:\Users\kingchuxing\kubo>taskkill /PID4696/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 ofthis node.RPCAPI 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