SWAP 增加空间
mkdir /swap1
#2G
dd if=/dev/zero of=/swap1/swapfree bs=4k count=1572864
#增加1G
dd if=/dev/zero of=/swap1/swapfree bs=8k count=131072
#增加4G
dd if=/dev/zero of=/swap1/swapfree bs=8k count=524288
#增加2G
dd if=/dev/zero of=/swap1/swapfree bs=8k count=262144
#增加3G
dd if=/dev/zero of=/swap1/swapfree bs=8k count=393216
mkswap /swap1/swapfree
swapon /swap1/swapfree
swapon -s
原文地址:http://116917.blog.51cto.com/106917/1651602