gpt4 book ai didi

azure - 如何在 Azure 上为 Fireworks 应用程序设置 Redis 缓存?

转载 作者:IT王子 更新时间:2023-10-29 06:14:53 25 4
gpt4 key购买 nike

我从以下位置下载了示例烟花应用程序 https://github.com/WindowsAzure-Samples/Fireworks

然后将其部署到 Azure。但这不起作用。我怀疑我没有正确初始化它。

有人可以帮忙吗?

错误如下:

enter image description here

还有我的初始化代码:

using System;
using System.Threading.Tasks;
using Microsoft.Owin;
using Owin;
using Microsoft.AspNet.SignalR;

[assembly: OwinStartup(typeof(Firework.Startup))]

namespace Firework
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
GlobalHost.DependencyResolver.UseRedis("fireworks.redis.cache.windows.net", 6379, "UaI+1bJq79dTEJiP0jZHAcBRLjT+lR9rXTxtUl1op1o=", "Fireworks");
app.MapSignalR();
}
}
}

enter image description here

我的Azure:

enter image description here

enter image description here

更新 1:有没有办法启用非 SSL 端口。

enter image description here

最佳答案

您在 Azure 门户中禁用了非 SSL 端口 (6379),但这是您在代码中尝试连接的端口。我建议首先启用该端口并确保它在没有 SSL 的情况下也能正常工作,然后尝试让应用程序在 SSL 端口 (6380) 上运行。

enter image description here

关于azure - 如何在 Azure 上为 Fireworks 应用程序设置 Redis 缓存?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27536502/

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