1.redis Features: Non-relational, distributed, open-source, horizontally scalable, master-slave replication
2. Handling ultra-large amounts of data, running on inexpensive PC clusters, high concurrency read and write, efficient storage and access of massive data
High scalability and high availability for data
3. Key-Value Storage "strings,hashes,lists,sets,sorted Sets"
4. Support Push/pop;add/remove and sorting, can take intersection, and set, difference set
5. Applicable scenarios
Fetch the latest n data
Leaderboard Apps
Need to set the expiration time precisely
Counter Application
Uniq system
Real-time Systems
Pub/sub real-time messaging system
Building a queue system
Cache
6. Installation and Deployment
1.wget http://redis.googlecode.com/files/redis-xxx.tar.gz
2.tar ZXVF redis-xxx.tar.gz
CD redis-xxx
Make
CD src && make install
Easy to manage
Mkdir-p/usr/local/redis/bin
Mkdir-p/usr/local/redis/etc
Mv/home/redis-xxx/redis.conf/usr/local/redis/etc
Cd/home/redis-xxx/src
MV mkreleasehdr.sh Redis-benchmark redis-check-aof
Redis-check-dump redis-cli Redis-server
/usr/local/redis/bin
Common ports
MySQL 3306
MongoDB 27017 28017
Redis 6379
Start Redis Service
/usr/local/redis/bin/reids-server/usr/local/redis/etc/redis.conf
Running in the background
Set the daemonize in the Redis configuration file to Yes
Client connections
/usr/local/redis/bin/redis-cli
To stop a Redis instance
/USR/LOCAL/REDIS/BIN/REDIS-CLI shutdown or Pkill redis-server or redis-cli shutdown
Querying Redis Port Usage
NETSTAT-TUNPL | grep 6379
Introduction and installation of Redis