首页 > 其他 > 详细

add swap file if you only have 1G RAM

时间:2018-09-11 13:04:40      阅读:124      评论:0      收藏:0      [点我收藏+]
dd if=/dev/zero of=/swapfile1 bs=1024 count=524288

mkswap /swapfile1

swapon /swapfile1

vi /etc/fstab

# edit /etc/fstab file, add the following line

/swapfile1 none swap sw 0 0

# save and quit

free -m

swapon -s

add swap file if you only have 1G RAM

原文:https://www.cnblogs.com/otfsenter/p/9626924.html

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