随笔分类 -  redis

摘要:一、说明:1、redis节点 3主 3从192.168.1.55:6300 192.168.1.55:6301 wh-52192.168.1.59:6300 192.168.1.59:6301 wh-53192.168.1.87:6300 192.168.1.87:6301 wh-542、redis... 阅读全文
posted @ 2016-12-16 10:52 程序员同行者 阅读(250) 评论(0) 推荐(0)
摘要:https://redis.readthedocs.org/en/latest/server/slowlog.html https://redis.readthedocs.org/en/latest/server/monitor.html SLOWLOG SLOWLOG subcommand [ar 阅读全文
posted @ 2016-12-16 10:52 程序员同行者 阅读(3406) 评论(0) 推荐(0)
摘要:redis安装配置文档 # 非常详细redis的介绍 http://blog.chinaunix.net/uid-790245-id-3766268.html wget http://redis.googlecode.com/files/redis-2.6.10.tar.gz tar zxvf re 阅读全文
posted @ 2016-12-15 20:49 程序员同行者 阅读(218) 评论(0) 推荐(0)
摘要:./redis-cli -h 10.10.10.11 -p 6401 save # 保存当前快照 # 列出所有当前配置 config get * # 查看指定配置 config get maxmemory # 动态修改配置参数 config set maxmemory 15360000000 阅读全文
posted @ 2016-12-15 20:49 程序员同行者 阅读(1162) 评论(0) 推荐(0)
摘要:redis的info http://redis.readthedocs.org/en/latest/server/info.html INFO INFO [section] 以一种易于解释(parse)且易于阅读的格式,返回关于 Redis 服务器的各种信息和统计数值。 通过给定可选的参数 sect 阅读全文
posted @ 2016-12-15 20:49 程序员同行者 阅读(133) 评论(0) 推荐(0)
摘要:Redis命令总结 redis 127.0.0.1:6379> info #查看server版本内存使用连接等信息 redis 127.0.0.1:6379> client list #获取客户连接列表 redis 127.0.0.1:6379> client kill 127.0.0.1:3344 阅读全文
posted @ 2016-12-14 10:37 程序员同行者 阅读(223) 评论(0) 推荐(0)
摘要:系统优化echo "vm.overcommit_memory=1" > /etc/sysctl.conf 0, 表示内核将检查是否有足够的可用内存供应用进程使用;如果有足够的可用内存,内存申请允许;否则,内存申请失败,并把错误返回给应用进程。 1, 表示内核允许分配所有的物理内存,而不管当前的内存状 阅读全文
posted @ 2016-12-09 09:47 程序员同行者 阅读(662) 评论(0) 推荐(0)