首页 > 系统服务 > 详细

Increase Swap Space in Ubuntu14.10

时间:2015-05-08 23:32:47      阅读:430      评论:0      收藏:0      [点我收藏+]

The process to add 4G swap on your original swap:

1.Create a 4G swap file
$ size="4G" && sudo fallocate -l $size /$size-swap && sudo mkswap /$size-swap && sudo swapon -p 20 /$size-swap
2.Make your swap permanent
Add a line in your /etc/fstab file so that swap will be initialized on the next reboot.
# in your /ets/fstab file
/4G-swap     none    swap    sw,pri=20      0       0
3.Reboot

Now your swap space will be original-swap + 4G.

Increase Swap Space in Ubuntu14.10

原文:http://www.cnblogs.com/bukekangli/p/4488943.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!