Home > Database > Mysql Tutorial > body text

Redis 安装,主从配置及Sentinel配置自动Failover

WBOY
Release: 2016-06-07 17:32:47
Original
1066 people have browsed it

Redis 安装,主从配置及Sentinel配置自动Failover

Linux公社

首页 → 数据库技术

背景:

阅读新闻

Redis 安装,主从配置及Sentinel配置自动Failover

[日期:2013-11-03] 来源:Linux社区  作者:mrcto [字体:]

1、安装redis

--------------------------------------------------------------------------------

首页地址:
下载地址: 下载最新的源码包(当前最新稳定版2.6.16)
#wget
#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-benchmark

Fill 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% 112095.06 requests per second

更多详情见请继续阅读下一页的精彩内容

 

推荐阅读:

Redis集群明细文档

Ubuntu 12.10下安装Redis(图文详解)+ Jedis连接Redis

Redis系列-安装部署维护篇

CentOS 6.3安装Redis

Redis 的详细介绍:请点这里
Redis 的下载地址:请点这里

linux

  • 0
  • MongoDB 安装、主从配置、以及监控

    MySQL 5.5 Command Line Client SQL常用语句

    相关资讯       Redis安装  主从配置 

    图片资讯      

  • Ubuntu 12.10下安装Redis(图文详解)+ Jedis连接Redis

    Ubuntu 12.10下安装
  • 在多台服务器上简单实现Redis的数据主从复制

    在多台服务器上简单实
  • 本文评论   查看全部评论 (0)

    评论声明

    最新资讯

    本周热门

    Linux公社简介 - 广告服务 - 网站地图 - 帮助信息 - 联系我们
    本站(LinuxIDC)所刊载文章不代表同意其说法或描述,,仅为提供更多信息,也不构成任何建议。


    Copyright © 2006-2011 Linux公社 All rights reserved 浙ICP备06018118号

    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!