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