Two. Redis Security

Source: Internet
Author: User
Tags strong password

Because Redis is quite fast, when a server is better, an external user can make a 150K (150,000) password attempt in a second, which means you need to set up a very strong password to prevent brute force.

1. Set the password

(1). Open Redis.conf Profile VI through the VI editor redis.conf

(2). Through the VI editor/requirepass, find the location of Requirepass, using the VI Editor N key to jump to the next position, eventually need to locate the annotated password line # Requirepass Foobared/requirepas S

(3). Through the VI editor i key, execute insert, password write, such as Requirepass Hexu

(4). Through the VI editor ESC, exit Inisert operation, typing command: Wq save and exit

(5). Re-view Confirm password saved successfully

2. Restart the Redis service

[Email protected] src]# Pkill redis-server

[Email protected] src]# redis-server/home/tony/step/redis-3.0.6/redis.conf

3. Authorization

[Email protected] src]# REDIS-CLI
127.0.0.1:6379> Ping
(Error) Noauth Authentication required.
127.0.0.1:6379> Auth Hexu
Ok
127.0.0.1:6379>

Two. Redis Security

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.