Linux增加Swap分区

                            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

原文地址:https://www.cnblogs.com/tangshengwei/p/5147852.html