Step one: Yum install redis -- install the redis Database
Step two: Enable the redis service after the installation is complete.
Service redis start
Systemctl start redis. Service -- enable redis Service
PS-Ef | grep redis -- check whether redis is enabled
Redis-cli -- enter the redis Service
Direct password login redis service https://www.cnblogs.com/machanghai/p/5497043.html
Redis-cli-H 127.0.0.1-P 6379-A 654321
1. Run the redis-CLI command.
2. Run the command: config get requirepass
How can I leave the password empty in the double quotation marks under your requirepass?
3. Set the redis Password
Run the command: config set requirepass ***** (***** set the password for you)
4. Restart the redis service.
CTRL + C Exit the current command line mode and run the command:
Redis-cli-H 127.0.0.1-P 6379-A ***** (***** set the password for you)
---------------------
Leimin12
Source: csdn
Original: 79412119
Copyright Disclaimer: This article is an original article by the blogger. For more information, see the blog post link!
Set the redis password in Linux 17:55:17, January 1, October 24, 2017Reading: 2651
LinuxSet redis IN THE SYSTEMPassword:
1. EnterRedis command line
Run the command: redis-cli
2. view existingRedis password (optional, not available)
Run the command: config get requirepass. If no password is set, the running result is shown in.
3, Set redisPassword
Run the command: config set requirepass ****(****The password you want to set). If the password is set successfully, 'OK' is returned.
4. Restart the redis service.
CTRL + C Exit the current command line mode and run the command:
Redis-cli-H 127.0.0.1-P 6379-A ***** (*** password set for your mind)
Deploying redis on ccenteros