redis record two pit

First, when installing Redis, step by step installation results in starting Shique prompted to find redis.conf profile redis.conf tried to change the path of discovery will not work,

After altogether in the next bi catalog Redis with redis-server in the same directory, enter directly at startup

[root@zzj001 bin]# ./redis-server redis.conf

You can enter simple and problem-solving.

Second, when the connection with Redis IDEA, given:

DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specified,

According to the Internet in redis.conf setting protected-mode no close protection mode is also invalid,

Then enter the command:

127.0.0.1:6379> config set requirepass 123456
OK
127.0.0.1:6379>

Then add a configuration in application.properties:

spring.redis.password = 123456 
problem is solved.

 

Guess you like

Origin www.cnblogs.com/zzjlxy-225223/p/11141179.html