create swap CAOST · September 5, 2018 linux # fallocate -l 2G swap.img # chmod 600 swap.img # swapon swap.img # swapon # swapoff swap.img # swapon # vi /etc/fstab Share: Twitter, Facebook