SWAP space under RHEL/CentOS
Adding a 250 MB swap file to the system
Create an empty 250M file :
dd if=/dev/zero of=/swapfile bs=1024 count=2097152
Create the swap on the newly created file :
mkswap /swapfile
Enable the new swap file :
swapon /swapfile
Edit fstab and add :
/swapfile swap swap defaults 0 0
Verify if the new swap space is enabled :
cat /proc/swaps
free -m
分からないから、質問して下さい。
No comments:
Post a Comment