dd if=/dev/zero of=swapfile bs=1024 count=100000
mkswap swapfile
swapon swapfile
swapoff swapfile
vi /etc/fstab
/root/swapfile swap swap defaults 0 0
mount -a
mkswap /dev/sdb1
swapon /dev/sdb1
vi /etc/fstab
/dev/sdb1 swap swap defaults 0 0
阅读(980) | 评论(0) | 转发(0) |