博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
023-手动增加swap分区
阅读量:7252 次
发布时间:2019-06-29

本文共 1134 字,大约阅读时间需要 3 分钟。

hot3.png

先自己增加一块磁盘

dd if=/dev/zero of=/tmp/newdisk bs=1M count =100

dd 操作磁盘从zero(盗零器)中产生0 到of 里面去 ,产生块大小1M 数量100 。

[root@Carlton ~]# mkswap -f /tmp/newdisk     格式化Setting up swapspace version 1, size = 102396 KiBno label, UUID=8fb9f68e-77da-4b86-b80e-7663edeb3c30[root@Carlton ~]# free -m             total       used       free     shared    buffers     cachedMem:           996        919         76         11         35        336-/+ buffers/cache:        547        449Swap:            0          0          0[root@Carlton ~]# swapon /tmp/newdisk [root@Carlton ~]# free -m             total       used       free     shared    buffers     cachedMem:           996        919         76         11         35        336-/+ buffers/cache:        547        448Swap:           99          0         99[root@Carlton ~]# swapoff /tmp/newdisk [root@Carlton ~]# free -m             total       used       free     shared    buffers     cachedMem:           996        919         76         11         35        336-/+ buffers/cache:        547        449Swap:            0          0          0

 

转载于:https://my.oschina.net/u/3635512/blog/1517930

你可能感兴趣的文章
【转载】关于RenderTarget的注意事项
查看>>
画图工具
查看>>
[WIFI] WIFI 破解(初级)
查看>>
CentOS 6.5 下安装 Redis 2.8.7
查看>>
Eclipse *的安装(图文详解)
查看>>
高性能图文混排框架,构架顺滑的iOS应用-b
查看>>
windows 下安装使用ipython
查看>>
苹果电脑macbook怎样强制关闭软件
查看>>
Linux下编译LibCURL
查看>>
错误提示:通过 Web 服务器的身份验证的用户无权打开文件系统上的文件
查看>>
python 取两数的百分比
查看>>
1-MSP430点亮一个灯
查看>>
Local System、Local Service與Network Service
查看>>
利用SQL语句查询数据库中所有表
查看>>
虚拟机中的锁优化简介(适应性自旋/锁粗化/锁削除/轻量级锁/偏向锁)
查看>>
Golang的交互模式进阶-读取用户的输入
查看>>
mycat中间件--linux安装mycat1.6版本
查看>>
MySQL的用户管理
查看>>
linux配置java环境变量(详细)
查看>>
HTML CSS + DIV实现整体布局
查看>>