Redis Advanced Configuration

Source: Internet
Author: User

I. Security

Set Password: Set in configuration file

Requirepass 123456

Because Redis is very fast and can be brute force 150,000 times per second, the password is set to be strong.

When the client is logged in or connected, use auth 123456 for authorization, and then have permission to continue

You can also specify it directly when you log in, for example/usr/local/redis/bin/redis-cli-a 123456

Second, master-slave replication

Modify the configuration from the server

Open the # comment before slaveof, set slaveof home server IP Home Server port

Masterauth host password If the primary server has a password set

Connection status can be viewed with the info command

Role:slave indicates that the server is currently

Master_link_status:up indicates the current connection state

Redis Advanced Configuration

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.