dd if=/dev/zero of=/data/swap/swapfile1 bs=4096 count=2097152mkswap /data/swap/swapfile1swapon /data/swap/swapfile1echo "/data/swap/swapfile1 swap swap defaults 0 0" >> /etc/fstab
Linux增加Swap分区
原文:http://www.cnblogs.com/tangshengwei/p/5147852.html