Install and configure Redis in CentOS

Source: Internet
Author: User
Tags redis centos


I have referenced too many tutorials and I have forgotten which configuration is successful. In short, the compilation and installation methods are used.

First download:

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

Extract

Tar zxvf redis-2.8.13.tar.gz

Switch Directory

Cd redis-2.8.13

Run the make command to output the last few lines.

Hint: To run 'Make test' is a good idea ;)
Make [1]: Leaving directory '/opt/redis-2.8.13/src'
Run the Installation Command

Make install
Tip:

Cd src & make install
Make [1]: Entering directory '/opt/redis-2.8.13/src'
Hint: To run 'Make test' is a good idea ;)
INSTALL install
INSTALL install
INSTALL install
INSTALL install
INSTALL install
Make [1]: Leaving directory '/opt/redis-2.8.13/src'

Run: cd src & make install
Tip:

Hint: To run 'Make test' is a good idea ;)
INSTALL install
INSTALL install
INSTALL install
INSTALL install
INSTALL install

Follow the prompts to execute: make test

You need tcl 8.5 or newer in order to run the Redis test
Make: *** [test] Error 1
In fact, you can directly run the./redis-server in tcl instead.

Make prefi x =/usr/local install
You may need to run the above sentence to make

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.