sync命令用于数据同步
保存sh脚本,然后加入定时任务: echo "* * * * * root /root/time.sh" >> /etc/crontab
参考链接: Linux自动释放内存(1) Linux自动释放内存(2)