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