linux mysql内存使用率
<pre>
free -m | sed -n \'2p\' | awk \'{print "used mem is "$3"M,total mem is "$2"M,used percent is "$3/$2*100"%"}\'
</pre>
释放所有缓存
<pre>
echo 3 > /proc/sys/vm/drop_caches
</pre>
如果要清除redis
打开Redsi客户端 输入命令 :
flushall 可以清除所有数据库的值
flushdb 清除当前数据库的值