Welcome 微信登录

首页 / 数据库 / MySQL / Redis 安装,主从配置及Sentinel配置自动Failover

1、安装redis--------------------------------------------------------------------------------首页地址:http://redis.io/
下载地址:http://download.redis.io/ 下载最新的源码包(当前最新稳定版2.6.16)
#wget http://download.redis.io/releases/redis-2.6.16.tar.gz
#tar xzf redis-2.6.16.tar.gz
#cd redis-2.6.16
#make
#make install
#cp redis.conf /etc/--------------------------------------------------------------------------------
2、运行--------------------------------------------------------------------------------
#redis-server /etc/redis.conf & (加载配置文件并后台运行)#redis-cli (命令行工具)--------------------------------------------------------------------------------
3、测试--------------------------------------------------------------------------------
# redis-benchmark --help 获取帮助信息,其中包含压力测试命令样例Examples:
Run the benchmark with the default configuration against 127.0.0.1:6379:
$ redis-benchmarkFill 127.0.0.1:6379 with about 1 million keys only using the SET test:
$ redis-benchmark -t set -n 1000000 -r 100000000[root@php1 ~]# redis-benchmark -t set -c 20 -n 1000000 -r 100000000
====== SET ======
1000000 requests completed in 8.92 seconds
20 parallel clients
3 bytes payload
keep alive: 1
100.00% <= 0 milliseconds
112095.06 requests per second更多详情见请继续阅读下一页的精彩内容: http://www.linuxidc.com/Linux/2013-11/92287p2.htm 推荐阅读:Redis集群明细文档 http://www.linuxidc.com/Linux/2013-09/90118.htmUbuntu 12.10下安装Redis(图文详解)+ Jedis连接Redis http://www.linuxidc.com/Linux/2013-06/85816.htmRedis系列-安装部署维护篇 http://www.linuxidc.com/Linux/2012-12/75627.htmCentOS 6.3安装Redis http://www.linuxidc.com/Linux/2012-12/75314.htmRedis 的详细介绍:请点这里
Redis 的下载地址:请点这里
  • 1
  • 2
  • 3
  • 下一页
MongoDB 安装、主从配置、以及监控MySQL 5.5 Command Line Client SQL常用语句相关资讯      Redis安装  主从配置 
  • Redis安装和自启动配置  (今 20:47)
  • CenterOS中安装Redis及开机启动设  (08月17日)
  • Linux下Redis的安装使用  (04月14日)
  • CentOS 7.0 安装Redis 3.2.1详细过  (09月09日)
  • Redis在CentOS6.4中的安装  (04月27日)
  • Linux服务器上Redis安装和配置  (04月08日)
本文评论 查看全部评论 (0)
表情: 姓名: 字数