(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.