入门指南: 不使用 Docker 在自托管模式下运行 Dapr

    本文提供了在没有 Docker 的自托管模式下运行 Dapr 的指导。

    无需容器初始化 Dapr

    Dapr CLI 提供了使用 slim init 初始化 Dapr 的选项,而无需默认创建依赖于 Docker 的开发环境。 要使用 slim init 初始化 Dapr ,请在安装 Dapr CLI 后使用以下命令:

    在此模式下安装了两个不同的二进制文件 和 placement。 The binary is needed to enable actors in a Dapr self-hosted installation.

    有关如何在此方式下执行服务调用的示例,请参阅 。

    启用状态管理或发布/订阅

    See configuring Redis in self-hosted mode to enable a local state store or pub/sub broker for messaging.

    placement 服务必须在本地运行才能启动 actor。 Also, a transactional state store that supports ETags must be enabled to use actors, for example, .

    From here on you can follow the sample example created for the java-sdk, or dotnet-sdk for running an application with Actors enabled.

    更新状态存储配置文件使 Redis host 地址和密码和您的设置相同。 此外,为了使它能够作为一个actor状态存储,还添加了类似于定义的元数据部分。

    清理

    Follow the uninstall to remove the binaries.