Linux增加Swap分区
dd if=/dev/zero of=/data/swap/swapfile1 bs=4096 count=2097152
mkswap /data/swap/swapfile1
swapon /data/swap/swapfile1
echo "/data/swap/swapfile1 swap swap defaults 0 0" >> /etc/fstab
dd if=/dev/zero of=/data/swap/swapfile1 bs=4096 count=2097152
mkswap /data/swap/swapfile1
swapon /data/swap/swapfile1
echo "/data/swap/swapfile1 swap swap defaults 0 0" >> /etc/fstab