Redis Desktop Manager connection is not a problem redis

1, redis need to start, after entering the test, ping, responded pong, redis description available

Start redis code:

redis-server /myredis/redis.conf 

redis-cli

If you still can not connect, it is we need to change the file redis.conf

first step:

the redis.conf

 bind 127.0.0.1, comment out this line

Step two:

Modify protected mode protected mode, allowing only local link

protected mode no

third step:

Redis kill the current process, otherwise the current configuration does not work

// Find the current process 
ps -ef | grep redis

Kill the current process

-9 9041 the kill // -9 forced to kill on behalf of the current process

 

Guess you like

Origin www.cnblogs.com/minmin123/p/11324406.html