查文件大小列表 MySQL问题

du -sh /* | sort -nr

打开网站发现Too many connections

The server quit without updating PID file (/usr/local/mysql/var/iZ23eflcmoiZ

重启lnmp报错

mysql的日志满了

df查看发现硬盘满了

 

redis问题/usr/log/redis/redis.log

redis启动日志的警告提示

WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. 
To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.

警告:过量使用内存设置为0!在低内存环境下,后台保存可能失败。为了修正这个问题,请在/etc/sysctl.conf 添加一项 'vm.overcommit_memory = 1' ,然后重启(或者运行命令'sysctl vm.overcommit_memory=1' )使其生效。

 还有一个条提示

"Short read or OOM loading DB. Unrecoverable error, aborting now.“

解决办法

rm -rf /var/lib/redis/dump.rdb
rm -rf /var/run/redis.pid
service redis start
posted @ 2015-11-20 09:34  前度天下  阅读(287)  评论(0编辑  收藏  举报