Introduction and installation of Redis

Source: Internet
Author: User

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

Related Article

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.