The method that the redis server allows remote hosts to access

  • 2020-06-01 11:17:31
  • OfStack

If the remote host needs to access the redis server, you can modify the redis.conf configuration file

The bind field defaults to: bind so that redis can only be accessed natively

To allow remote host access, comment out the bind line or change bind to: bind

Verify access to the redis server on the remote host:

./redis-cli -h REDIS_HOST_IP_ADDR -p 6379

REDIS_HOST_IP_ADDR : 6379> ping

Successful access to the redis server!

Related articles: