IPFS Guideline
For more information, please visit the official website: https://docs.ipfs.io/
System Requirements
IPFS requires 512MiB of memory and can run an IPFS node on a Raspberry Pi. However, how much disk space your IPFS installation takes up depends on how much data you're sharing.
A base installation takes up about 12MB of disk space, and the default maximum disk storage is set to 10GB.
REF: https://docs.media.network/ipfs-setup/
Security Group / Firewall Rules
Allow Inbound
TCP
0.0.0.0/0
TCP
0.0.0.0/0
TCP/UDP
0.0.0.0/0
Installation Steps
Download the Linux binary from dist.ipfs.io
wget https://dist.ipfs.io/go-ipfs/v0.9.0/go-ipfs_v0.9.0_linux-amd64.tar.gz && \
tar -xvzf go-ipfs_v0.9.0_linux-amd64.tar.gz && \
cd go-ipfs && \
sudo bash install.sh
Verify that IPFS is correctly installed
ipfs --version
Configure IPFS_PATH to /data (Optional)
echo "export IPFS_PATH=/data" > ~/.bashrc
source ~/.bashrc
IPFS server initialization
ipfs init --profile server
When you're ready to join your node to the public network, run the ipfs daemon
in a terminal.
ipfs daemon
Create system service/unit file
sudo nano /etc/systemd/system/ipfs.service
[Unit]
Description=IPFS Daemon
[Service]
ExecStart=/usr/local/bin/ipfs daemon
User=ubuntu
Restart=always
LimitNOFILE=10240
Environment="IPFS_PATH=/data"
[Install]
WantedBy=multi-user.target
Enable and start the service
sudo systemctl daemon-reload
sudo systemctl enable ipfs
sudo systemctl start ipfs
Last updated
Was this helpful?