Outils pour utilisateurs

Outils du site


tech:note_ipfs

Ceci est une ancienne révision du document !


Notes IPFS

Install

/etc/systemd/system/ipfs.service

[Unit]
Description=IPFS Daemon
After=syslog.target network.target remote-fs.target nss-lookup.target
 
[Service]
Type=simple
ExecStart=/home/ipfs/go/bin/ipfs daemon --init --migrate
User=jibe
 
[Install]
WantedBy=multi-user.target

Pour IPFessay ipfs daemon --writable

Utilisation

ipfs add ./pages/test/gpl-3.txt

i$ ipfs add ./pages/test/gpl-3.txt
added QmNW8yLgaibACBJrKkwi1ZaW7bdEYVGmyQxwNSYs7PrPnV gpl-3.txt
 34.34 KiB / 34.34 KiB [=================================================================================================================================================================================] 100.00%
 


ipfs config --json Experimental.FilestoreEnabled true
systemctl restart ipfs
ipfs filestore ls

ipfs dag stat QmNW8yLgaibACBJrKkwi1ZaW7bdEYVGmyQxwNSYs7PrPnV

https://johackim.com/ipfs

mkdir _site
echo "hello world" > _site/index.html
 
ipfs add -r _site --to-files /
 
ipfs files ls -l
 
https://ipfs.io/ipfs/<CID>
ipfs resolve -r /ipfs/bafybeidatpz2hli6fgu3zul5woi27ujesdf5o5a7bu622qj6ugharciwjq/locales/de-DE/status.json:

Err

Err 404 page not found (API)

failed to sufficiently increase receive buffer size

# systemctl status ipfs
failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 7168 kiB, got: 416 kiB).

Solution

sysctl -w net.core.rmem_max=2500000
tech/note_ipfs.1746567023.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki