# 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

文章標籤
全站熱搜
創作者介紹
創作者 DanBrother 的頭像
DanBrother

DanBrother的部落格

DanBrother 發表在 痞客邦 留言(0) 人氣(4)