How to install Redis using yum in CentOS

Source: Internet
Author: User
Tags redis cluster install redis

How to install Redis using yum in CentOS

1. Because the official CentOS yum source does not contain Redis, We need to install a third-party yum source. Here we use the epel repository of Fedora.

Yum install epel-release

You will be prompted to confirm the installation. Enter y and press Enter.

2. Install Redis

Yum install redis

You will be prompted to confirm the installation. Enter y and press Enter.

3. Start Redis

Service redis start

4. Modify the port number, password, and other configurations

Vim/etc/redis. conf

5. comment out the ip binding (this only allows local debugging and does not comment out this. When you remotely use this redis, you will prompt:

Redis. clients. jedis. exceptions. JedisConnectionException: java.net. ConnectException: Connection refused: connect

)

6: Disable the protection mode (if this mode is not disabled, the remote redis will prompt:

Redis. clients. jedis. exceptions. JedisDataException: DENIED Redis is running in protected mode

)

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 construction and simple use

Install and configure Redis in CentOS 7

Install Redis and simple configuration in Ubuntu 14.04

Install PHP7.0 Redis extension in Ubuntu 16.04

Offline installation and deployment of Redis standalone and Cluster

CentOS 7.0 install Redis 3.2.1 detailed process and usage FAQs

Install PHP7.0 Redis extension in Ubuntu 16.04

Redis cluster deployment document under Ubuntu 15.10

Redis practice PDF

Redis hot migration Summary

Redis3.0 configuration file details

Https://www.bkjia.com/Linux/2018-02/150956.htm

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.