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

posted @ 2016-01-21 12:30  唐胜伟  阅读(244)  评论(0编辑  收藏  举报