Redis installation, master-slave configuration and Sentinel configuration automatic Failover

Source: Internet
Author: User
Redis installation, master-slave configuration and Sentinel configuration automatic Failover

Redis installation, master-slave configuration and Sentinel configuration automatic Failover

Homepage → Database Technology

Background:

Read News

Redis installation, master-slave configuration and Sentinel configuration automatic Failover

[Date: 2013-11-03] Source: Linux community Author: mrcto [Font:]

1. Install redis

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

Home address:
: Download the latest source code package (latest stable version 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. Run

--------------------------------------------------------------------------------
# Redis-server/etc/redis. conf & (load the configuration file and run it in the background)

# Redis-cli (command line tool)

--------------------------------------------------------------------------------
3. Test

--------------------------------------------------------------------------------
# Redis-benchmark -- help to obtain help information, including a sample stress test command

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% <= 0 milliseconds
112095.06 requests per second

For more details, please continue to read the highlights on the next page:

Recommended reading:

Redis cluster details

Install Redis in Ubuntu 12.10 (graphic explanation) + Jedis to connect to Redis

Redis series-installation, deployment, and maintenance

Install Redis in CentOS 6.3

Redis details: click here
Redis: click here

  • 0
  • MongoDB installation, master-slave configuration, and monitoring

    MySQL 5.5 Command Line Client SQL common statements

    Related information install Master/Slave configuration in Redis

    Image Information

  • Install Ubuntu 12.10
  • Simple implementation on multiple servers
  • View All comments in this article (0)

    Comments

    Latest Information

    Popular this week

    Introduction to Linux community-advertisement service-website map-help Info-contact us
    The articles published on this site (LinuxIDC) do not mean that they agree with the statement or description. They only provide more information and do not constitute any suggestions.


    Copyright©2006-2011 Linux community All rights reserved Zhejiang ICP backup No. 06018118

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.