swap add

362次阅读
dd if=/dev/zero of=/swapfile bs=1M count=768
mkswap /swapfile
swapon /swapfile

vi /etc/fstab 
/swapfile swap swap defaults 0 0
正文完