Redis Stack 快速入门

要快速设置具有Redis Stack功能的数据库,您可以注册一个免费的Redis Cloud订阅并创建一个Redis Stack数据库。

或者,您可以使用以下方法之一:

设置一个Redis Cloud数据库

要设置一个具有Redis Stack功能的Redis Cloud数据库,请按照以下步骤操作:

  1. 创建一个新的Redis Cloud订阅

  2. 创建一个Redis Stack数据库

  3. 连接到数据库

有关更多详细信息,请参阅Redis Cloud 快速入门

创建一个订阅

创建新订阅:

  1. 登录到Redis Cloud 管理控制台 或创建一个新账户。

  2. 选择新订阅按钮:

    The New subscriptions button in the admin console menu.
  3. 配置您的订阅:

    1. Select Fixed plans.
    2. For the cloud vendor, select Amazon Web Services (AWS), Google Cloud (GCP), or Microsoft Azure.
    3. Select a region to deploy the subscription to.
    4. From the dataset size list, select the Free tier (30MB).
    5. Enter a name for the subscription.
  4. 选择创建订阅按钮:

    The Create Subscription button.

创建一个 Redis Stack 数据库

创建订阅后,按照以下步骤创建 Redis Stack 数据库:

  1. 选择新建数据库按钮:

    The New Database button creates a new database for your subscription.
  2. 常规设置中,输入数据库名称

  3. 对于数据库类型,选择Redis Stack

  4. 选择激活数据库按钮:

    Use the Activate database button to create and activate your database.

连接到数据库

创建数据库后,您可以查看其配置设置。您将需要以下信息来连接到您的新数据库:

  • 公共端点: 数据库的主机地址
  • Redis 密码/默认用户密码: 用于与数据库进行身份验证的密码

有了这些信息,您可以使用redis-cli命令行工具、应用程序或Redis Insight连接到您的数据库。

尝试 Redis Stack 功能

要尝试Redis Stack的功能,请按照相应指南提供的示例进行操作:

RATE THIS PAGE
Back to top ↑