centOS swap partition
Monday, 27 January 2014
CREATE A SWAP PARTITION IN CENTOS
>dd if=/dev/zero of=/swapfile bs=1M count=10240
Give the bs(byte-size) as your requirement and count in MB's
>
mkswap /swapfile
>
swapon /swapfile
>swapon -s
>vi /etc/fstab
append the following
>/swapfile swap swap defaults 0 0
>chown root:root /swapfile
>chmod 0600 /swapfile
No comments:
Post a Comment
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment