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