Redis error Redis Protected-mode profile does not actually start

Source: Internet
Author: User
Tags bind comments redis
(Error) DENIED Redis is running in protected mode because protected mode is enabledRedis Protected-mode is a new feature added after 3.2, and in Redis.conf's comments we can see that his specific role and enabling conditions

Redis can only be linked via local localhost (127.0.0.1), not network IP (192.168..). This link, the problem if you use the Network IP link will report the following error:

(Error) DENIED Redis is running in protected mode because protected mode are enabled, no bind address was specified, no authenticat Ion password is requested to clients. The This mode connections is only accepted from the Lookback interface. If you want-to-connect from external computers to Redis-adopt one of the following solutions:1) Just disable prot ected mode sending the command ' CONFIG SET protected-mode No ' from the loopback interface by connecting to Redis from the Same host the server is running, however make sure Redis are not publicly accessible from Internet if your do so. Use CONFIG REWRITE to make this change permanent. 2) Alternatively you can just disable the protected mode by editing the Redis configuration file, and setting the PROTECTE d mode option to ' No ', and then restarting the server. 3) If You started the server manually just for testing, restart it with the--portected-mode no option. 4) Setup A bind address or an authentication password. Note:you only neeD to does one of the above things in order for the server to start accepting connections from the outside. 

is said to be in protected mode, only local links, we need to modify the configuration file. /redis.conf
1) Open the configuration file and comment out the corresponding comments below

2) Redis default is not run as daemon, can be modified by this configuration item, use Yes to enable daemon, set to No

Daemonize No

3) Protection mode

4) The final key is:
No response should be when you start the server without the configuration file. You can./redis-server redis.conf
You are configured, but to restart Redis, if the same error is reported, it is likely that there is no boot to the configuration file, so the need for real and profile startup needs:
In the current directory of the redis.conf file:

$ redis-server redis.conf

If a port is already in use, then it is possible that the daemon is occupying the port and needs to kill the program and bring it back on the configuration file:/redis-server redis.conf started.
Kill the process that contains the "Redis" keyword:

$ PS-EF | grep Redis | awk ' {print $} ' | Xargs kill-9

My problem is this step to solve, wish good.

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.