Where linux redis installation and connection failure RedisDesktopManager
Solution one
- Modify the configuration file redis.conf
bind 127.0.0.1 改成 bind 0.0.0.0
bind 127.0.0.1 represents the local loopback address, access redis client service can only be connected via the machine, but can not connect via remote
Review of: speaking or comments this line into 0.0.0.0 ip This will accept all connections from the available network interfaces
Modify protected mode protected mode, allowing only local links
amended to: protected mode no
daemonize configuration of supplementary redis.conf
daemonize yes on behalf of open daemon mode. At this point is a single process multi-threaded mode, redis will run in the background, and write redis.conf-pidfile pid file, then redis will always run, unless you manually kill
daemonize no current interface will enter redis command-line interface, exit forced to exit or close the connection tool (xshell, etc.) will result in redis process exit
Redis need to reboot after modifying the configuration file! ! !
Note: Starting redis sure to specify the configuration file, otherwise the configuration file does not take effect
./src/redis-server redis.conf
Solution two
- Services can be started directly redis do not stop
./src/redis-server
- But need to play a new password redis client this is a must
config set requirepass pwd
输入密码: AUTH pwd
Solution three
If that does not work, look at the following issues detected
- There is no firewall close
- 6379 cloud server, then the port is developed