Redis Security Settings

Source: Internet
Author: User
Tags strong password

When Redis is installed, the client is logged on by default and no password is required to operate with the command. In some cases, for security reasons, we can set up password verification before any action is made after the client connects.

My side is the window system installed, modify the redis.windows.conf configuration file

# Require clients to issue AUTH <PASSWORD>before processing any other# commands. This might is usefulinchEnvironmentsinchwhich DoNot trust# Others with access to the host running Redis-server.## This should stay commented out  forbackward compatibility and because most# people DoNot need auth (e.g. they run their own servers). # # Warning:since Redis isPretty fast an outside user canTryUp to# 150k passwords per second against a good box. This means, should# use a very strong password otherwise it 'll be very easy to Break. # # Requirepass Foobaredrequirepass hongda$123456

Set Requirepass to

Next you restart the Redis service

Client Licensing methods

(1) When logging in, use the-a parameter to specify the client password, as follows

(2) After logging in to the client, use the AUTH command to authorize, as follows

Http://www.cnblogs.com/hjwublog/p/5660578.html

Redis Security Settings

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.