Features of Redis and its installation and use

Source: Internet
Author: User

One: Features of Redis
(1) Redis is an open source, BSD licensed Advanced Key-value storage System. can be used to store strings, hash structures, linked lists, and collections, so it is commonly used to provide data structure services.

II: The uniqueness of Redis versus memcached
(1) Redis can be used for storage (storge), while memcached is used for caching (cache). This feature of Redis is due to its "persistent" function.
(2) Redis storage data has "structure", for memcached, there is only one type of data stored [string type], and Redis can save string, hash list, hash structure, ordered set.
III: Redis Installation
(1) Official website: Redis.io
(2): http://download.redis.io/releases/redis-2.8.19.tar.gz
(3) Installation
1:TAR-ZXVF redis-2.8.19.tar.gz
2:CD Redis

4:make test [appears after compilation]
----------------------------
You need TCL 8.5 or newer in order to run the Redis test
------------------------------
This is a lack of TCL components
So: Yum Tcl can
5: Specify compilation path make Prefix=/usr/local/redis install
6:ls can view the directory and function as follows

Redis-benchmark Redis Performance Testing Tool
redis-check-aof checking the AOF log tool
Redis-check-dump checking the RDB log tool
REDIS-CLI Client for connection
Redis-server Redis Service Process

7: Copy a configuration file cp/usr/local/src/redis-2.8.19/redis.conf./

8: Modify profile settings to run in the background

Vim Vim redis.conf modified to: daemonize Yes

9: Start Redis

./bin/redis-server./redis.conf



  

Features of Redis and its installation and use

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.