简体   繁体   English

在 Azure Web App Service 中使用 redis 作为容器

[英]Use redis as a container in Azure Web App Service

I've been trying for a week now to deploy a Redis Container as a Azure Web App Service, but I can't manage to connect to it, after a few tries some of the logs I got are listed bellow:我已经尝试一个星期来部署一个 Redis 容器作为 Azure Web 应用服务,但我无法设法连接到以下一些日志:

  • The handshake failed due to an unexpected packet format redis由于意外的数据包格式 redis,握手失败
  • Protocol error, got "H" as reply type byte.协议错误,得到“H”作为回复类型字节。 Please report this.请报告此事。
  • Redis error Error: getaddrinfo ENOTFOUND https://*************.azurewebsites.net Redis 错误错误:getaddrinfo ENOTFOUND https://******************.azurewebsites.net

Some of the things I tried:我尝试过的一些事情:

  • Different doors (80, 6379, random ones I saw in logs)不同的门(80、6379,我在日志中看到的随机门)
  • Different TLS versions不同的 TLS 版本
  • Force https connection力https连接

Does anyone of you know if it's possible to do it?你们中的任何人都知道是否有可能做到这一点? I know there's Azure Redis but it's too pricey for a test.我知道有 Azure Redis 但是对于测试来说太贵了。

Thanks alot非常感谢

just figured out.刚刚想通了。

You actually have to deploy your container image using container instances, pointing the port 6379/TCP.您实际上必须使用容器实例部署容器映像,并指向端口 6379/TCP。

I did it and it worked fine.我做到了,而且效果很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从 Azure 应用服务(Web App)访问 Azure 容器实例 - Access Azure Container Instance from Azure App Service (Web App) 在 Azure 应用服务中使用已安装的 Azure Blob 存储容器 - Use mounted Azure Blob Storage Container in Azure App Service 如何使用 Azure 应用服务 /web 别名? - How to use Azure App Service /web aliases? 在Azure“应用程序服务”的Tomcat容器中指定WEB-INF的路径 - Specifying path for WEB-INF in Tomcat container in an Azure “App Service” Azure Web 容器应用程序 - 容器无法连接到外部 WCF 服务 - Azure Web App For Containers - Container cannot connect to outside WCF Service Azure容器服务和容器Web应用程序之间的区别 - Difference between Azure Container Service and Web App for Containers Error: Internal server error in Azure AD authentication Web App deployed as docker container in Azure web App service - Error : Internal server error in Azure AD authentication Web App deployed as docker container in Azure web App service 将 Azure Web 应用连接到 Azure Redis 缓存 - Connect Azure Web App to Azure Cache for Redis 从 Web 浏览器调用时,Azure 应用服务无法连接到 Azure Redis - Azure App Service cannot connect to Azure Redis when calling from Web Browser azure 中的 Docker 容器应用服务。 如何将 DefaultAzureCredential 用于 keyvault - Docker container app service in azure. How to use DefaultAzureCredential for keyvault
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM