创建并挂载
# dd if=/dev/zero of=/home/swap bs=1024 count=5000000
# mkswap /home/swap
# swapon /home/swap
开机自动挂载
# vi /etc/rc.local
swapon /home/swap
卸载swap
# swapoff /home/swap
参考
pugna
全部博文(171)
分类: LINUX
2015-07-27 15:08:56
# dd if=/dev/zero of=/home/swap bs=1024 count=5000000
# mkswap /home/swap
# swapon /home/swap
# vi /etc/rc.local
swapon /home/swap
# swapoff /home/swap
参考