写个cron执行crontab输入* */6 * * * echo 1> /proc/sys/vm/drop_caches每6个小时自动清理一次内存 转载于:https://blog.51cto.com/wenqiangit/1551542