How to install Redis in Linux

Source: Internet
Author: User
Tags redis cluster install redis

How to install Redis in Linux

Redis will be used in recent projects. We will share our learning experience with you during this period. This is a summary of the learning results during this period and technical refinement. I hope you can criticize and correct the shortcomings.

Project Background:

Some data that is rarely changed and frequently used (such as drop-down list data in the system), the system needs to frequently interact with the SQL Server database, greatly increasing the burden on the server and SQL server data, to reduce the burden on SQL Server databases and servers and improve program efficiency, you must separate the data and use a database with faster running speed for performance optimization, redis is the best choice for all memory databases.

You may also like the following articles about Redis. For details, refer:

Install and test Redis in Ubuntu 14.04

Basic configuration of Redis master-slave Replication

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

Learning notes on Redis installation and deployment

Redis. conf

Purpose:

(1) Redis supports more data types than memcached (string, list two-way linked list, hash table, set, and zset ).

(2) Redis supports data persistence.

(3) facilitate cluster expansion.

Expected goals to be achieved using Redis:

(1) reduce the pressure on the server's SqlServer relational database, and less interaction between the system and the SQL database.

(2) Improve program running efficiency.

 

(1) install Redis in Linux (Linux beginners can use Xshell5 to remotely connect to Linux and execute the following command)

1) download the tar installation package (the latest version of Redis is 3.0.6, updated on)

# Wget http://download.redis.io/releases/redis-2.8.24.tar.gz

After the command is executed, execute the ls-la command and download it successfully (for example)

2) unzip # tar xzf redis-2.8.17.tar.gz run this command will find that, has been successfully decompressed, the current directory with a redis-2.8.24 folder (such as) 3) Open the redis-2.8.24 folder # cd redis-2.8.244) run the make command # make step 4) after the command is executed, redis has been successfully downloaded to the local machine, and the next step is to run redis-server to enable redis Service 5) Run Redis, start Redis-server # cd redis-2.8.24 # src/redis-server after running the above command, the following appears, it indicates that the redis-server service has been enabled properly (default port: 6379 ), at this time, the redis client can access and operate Redis

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

  • 1
  • 2
  • Next Page

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.