close
# checking existing swap space:
swapon -s
# checking free space available
df -h
# Create a supplementary swap file with the size of 8G Bytes
dd if=/dev/zero of=/extraswap bs=1M count=8192
mkswap /extraswap
# turn on the swap file
swapon /extraswap
# add the entry to the /etc/fstab
/extraswap swap swap default 0 0
全站熱搜