Unleash Your Server Potential with Expert Insights
Hosting provided by: CloudwaysSponsored by: shopp.bio
Sponsored by: shopp.bio
Category: VPS Setup
dd if=/dev/zero of=/swapfile bs=1M count=2048
secure it with chmod 600 /swapfile
then activate with mkswap /swapfile && swapon /swapfile
Add to /etc/fstab
: /swapfile none swap sw 0 0
Check with swapon --show
—expect 2GB Swap supports memory-intensive tasks like compiling on low-RAM VPS