Installing Redis under Linux

Source: Internet
Author: User
Tags install redis

Upload the redis-2.8.23.tar.gz package to CentOS and place it on a directory

Perform a tar zxvf redis-2.8.23.tar.gz for decompression

After decompression, go to unzip directory:

Enter SRC directory
CD src
Perform make to compile

Execute after compilation is complete

Back Up Redis

Verify that Redis is starting successfully:
Executed under the SCR directory



Set Test 1

Get test

If the result is as follows, start successfully:









Project Description:
Project partial configuration values are added to the cache Redis, so the project uses Redis, and in order to fit the upgrade and unknown people, a new configuration item profile in the project configuration file is:
Redis.properties

redis.host=172.19.11.16
redis.port=6379
redis.maxidle=300
redis.maxactive=600
redis.maxwait=1000
Redis.testonborrow=true
Redis.start=yes
These few configuration items as long as modify redis.host and redis.start other several can regardless,
Redis.host is configured with the server on which Redis resides. Redis.start=yes is saying the project starts Redis as a cache if you fill in another value, it means that Redis is not enabled.
Note If Redis is enabled, you must install Redis if no Redis does not turn on using the redis switch, otherwise it will affect performance This switch is turned off by default.

Installing Redis under Linux

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.