增加swap


dd if=/dev/zero of=/var/swapfile bs=1024 count=5000k
mkswap /var/swapfile
chown root:root /var/swapfile 
chmod 600 /var/swapfile

swapon /var/swapfile
swapon -s

echo "/var/swapfile swap swap defaults 0 0" >> /etc/fstab
   Send article as PDF   

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.