如何远程检查我的RedisCloud数据库中的数据? [英] How can I remotely inspect the data in my RedisCloud DBs?

查看:76
本文介绍了如何远程检查我的RedisCloud数据库中的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Heroku托管一个简单的Ruby on Rails测试应用程序来学习如何使用Redis。我使用RedisCloud作为我的Redis servis提供程序。在本地,我可以使用Redis CLI检查我的Redis数据库,但是如何检查我的Heroku应用程序正在使用的RedisCloud数据库中的数据?

RedisCloud提供了一个仪表板显示统计数据,但不显示实际数据。另外,我尝试使用 Redis桌面管理器软件,但它有太多的bug让我可以远程连接到我的RedisCloud数据库。

解决方案

逐步:

<检查您的Heroku配置,以找出REDIS网址。

  heroku config 


您应该看到如下所示的入口:

  REDISCLOUD_URL:redis:// rediscloud:foobarfoobarfoobar @ a-redis-address:18888 

2 - 使用 redis-cli 连接到远程Redis DB:

  redis -cli -h a-redis-address -p 18888 -a foobarfoobarfoobar 

您应该可以查询您的Redis DB。


I'm using Heroku to host a simple Ruby on Rails test app to learn how to use Redis. I'm using RedisCloud as my Redis servis provider. Locally, I can inspect my Redis DBs using the Redis CLI, but how can I inspect the data in the RedisCloud DBs that my Heroku app is using?

RedisCloud provides a dashboard that shows stats, but not the actual data. Also, I've tried using the Redis Desktop Manager software, but it has too many bugs to allow me to remotely connect to my RedisCloud DBs.

解决方案

Step by step:

1 - Check your Heroku config, in order to find out the REDIS URL.

heroku config

You should see an entrance that look like this:

REDISCLOUD_URL:              redis://rediscloud:foobarfoobarfoobar@a-redis-address:18888

2 - Connect to your remote Redis DB using redis-cli:

redis-cli -h a-redis-address -p 18888 -a foobarfoobarfoobar

You should be able to query your Redis DB now.

这篇关于如何远程检查我的RedisCloud数据库中的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆