CentOS7清理yum缓存,释放内存
清理yum缓存
清理yum缓存使用yum clean 命令,yum clean 的参数有headers, packages, metadata, dbcache, plugins, expire-cache, rpmdb, all
简单点直接使用
1 | yum clean all |
Linux释放内存
- 释放网页缓存
1
sync; echo 1 > /proc/sys/vm/drop_caches
- 释放目录项和索引
1
sync; echo 2 > /proc/sys/vm/drop_caches
- 释放网页缓存,目录项和索引
1
sync; echo 3 > /proc/sys/vm/drop_caches
- Title: CentOS7清理yum缓存,释放内存
- Author: 薛定谔的汪
- Created at : 2017-09-19 11:31:28
- Updated at : 2023-11-17 19:37:37
- Link: https://www.zhengyk.cn/2017/09/19/linux/CentOS7_Clean/
- License: This work is licensed under CC BY-NC-SA 4.0.