Linux (CENTOS7) Yum installs the latest Redis

Source: Internet
Author: User
Tags install redis yum repolist

1. Enable Epel Warehouse
# # Rhel/centos 7 64-bit # #
# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
# RPM-IVH epel-release-7-5.noarch.rpm


To verify that the Epel warehouse is successful, you can perform:
# yum Repolist


2. Installing Redis via Yum
# yum-y Update
# yum Install Redis


If Redis is not up-to-date, do not install, continue with the following settings


3, install the Remi Software source, the installation command is as follows:
Yum install-y http://rpms.famillecollet.com/enterprise/remi-release/7.rpm number for CentOS version


4. You can then use the following command to install the latest version of Redis:
Yum--enablerepo=remi Install Redis


5, after installation, you can use the following command to start the Redis service and set to boot automatically:
Service Redis Start
Chkconfig Redis on

6. Redis Open Telnet Connection
It turns out that Redis can only log on by default, so you need to turn on Telnet. Here's how to fix it:

In the Redis profile redis.conf, find the bind localhost comment off.

Comment out the machine, all the computers within the LAN can access.

Band localhost can only be accessed natively, and the computer in the LAN cannot be accessed.

The bind LAN IP can only be accessed by the IP machine on the LAN and cannot be accessed by localhost.
I did not comment out bind 127.0.0.1, but instead changed bind 127.0.0.1 to bind 0.0.0.0.

Then you configure firewall open port 6379

Linux (CENTOS7) Yum installs the latest Redis

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.