gpt4 book ai didi

azure - 从本地连接到 Azure Redis 时出现 Dapr 超时问题

转载 作者:行者123 更新时间:2023-12-03 04:40:17 29 4
gpt4 key购买 nike

我有 Dapr 示例计数器应用程序,它可以与本地 redis 服务器正常工作,但如果我尝试连接“Azure redis for cache”,则会收到超时错误。

我的 yaml 文件,其中包含示例 azure redis 连接字符串

enter image description here

超时错误

enter image description here

需要有关 yaml 文件的建议,无论我是否配置正确。

最佳答案

根据您的 YAML 文件,问题似乎出在元数据值上,该值应该是 localhost 和端口 6379。这是一个超时问题;确保中继端口已启用。

 metadata:
- name: redisHost
value: localhost:6379

注意:在自托管模式下,验证组件文件是否自动创建。

  **Windows**:  `%USERPROFILE%\.dapr\components\`
**Linux/MacOS**: `$HOME/.dapr/components`

引用下面tutorial了解更多详情。

关于azure - 从本地连接到 Azure Redis 时出现 Dapr 超时问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75008713/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com