参考:http://blog.csdn.net/sungblog/article/details/1185965
dd if=/dev/zero of=/data1/swap bs=1024 count=10240000
mkswap /data1/swap
swapon /data1/swap
free -m & top
vi /etc/fstab
/data1/swap swap swap defaults 0 0
参考:http://blog.csdn.net/sungblog/article/details/1185965
dd if=/dev/zero of=/data1/swap bs=1024 count=10240000
mkswap /data1/swap
swapon /data1/swap
free -m & top
vi /etc/fstab
/data1/swap swap swap defaults 0 0