Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: VPS Setup

Add swap space on a Debian VPS to prevent OOM crashes—create a 2GB swap file with 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

Back to All Tips