在清理内存之前我们看下内存的使用情况

free -m


echo 1 > /proc/sys/vm/drop_caches

使用完清理命令后接着可以在用查看命令:free -m,来查看是不是清除掉很多内存