How to set up a swap space on an existing Debian server
Posted: Wed Mar 22, 2023 10:02 am
how can add swap for myvesta ?

hosting panel
https://forum.myvestacp.com/
Code: Select all
dd if=/dev/zero of=/swapfile1 bs=1024 count=1048576 # this is 1GB file
chown root:root /swapfile1
chmod 0600 /swapfile1
mkswap /swapfile1
swapon /swapfile1
echo "/swapfile1 none swap sw 0 0" >> /etc/fstab
free -m