---
title: "linux 内存清理/释放命令"
author: "baalwolf"
date: "2015-11-12T16:02:50Z"
tags: []
categories: ["操作系统"]
slug: "linux"
draft: false
lastmod: "2015-11-12T16:02:50Z"
id: 2256430
url: "https://baalwolf.iteye.com/blog/2256430"
---

1.清理前内存使用情况 free -m![](http://hiphotos.baidu.com/exp/pic/item/0db2c9ca7bcb0a467e2b29886963f6246b60af33.jpg)

 

2.开始清理  echo 1 &gt; /proc/sys/vm/drop\_caches

![](http://hiphotos.baidu.com/exp/pic/item/a54e55fbfbedab643e73ef71f536afc379311e3a.jpg)