德克云技术联盟

会员中心
发新帖
打印 上一主题 下一主题

Recipe to hot add more swap
发布人: 李臻宇 发布时间:2014-07-25 浏览:3319



1. choose a location where you have lots of space (/usr comes to mind)
2. create a file the size you want the swap to be:
dd if=/dev/zero of=/usr/swap bs=1024 count=100000 (the above will create a file 100Mb in size, so adjust the count as yousee fit)
3. run the command: mkswap /usr/swap
4. run the command: swapon -a /usr/swap
5. run the commadn: top (check the swap space)
6. if you want this to be permanent through reboots, you'll need to add the appropriate line to /etc/fstab


分类浏览
关于我们
联系我们
技术联盟
云服务
云技术
云合作
帮助中心
发帖规则
QQ客服
内部通道
企业邮箱
企业论坛
版本选择
手机版
电脑版
用手机扫描下方二维码查看手机版页面

版权所有 西安云联电子科技有限公司
Copyright @ 2011-2022 | decoclouds.com All Rig
陕ICP备13002202号-1

快速回复 返回顶部 返回列表