Deploying redis on ccenteros

Source: Internet
Author: User
Tags install redis

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

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.