簡體   English   中英

我是否需要在Azure中添加或規則或添加Redis到VNet?

[英]Do I need to add or rule or add Redis to VNet in Azure?

我在 Azure 應用服務上啟用了 VNet 集成,現在當我嘗試連接到 Redis 時,我收到此錯誤消息。 但是,我可以使用另一個 Redis 桌面管理器毫無問題地進行連接。

"No connection is available to service this operation: It was not 
possible to connect to the redis server(s); ConnectTimeout; IOCP: 
(Busy=0,Free=1000,Min=2,Max=1000), WORKER: 
(Busy=5,Free=32762,Min=2,Max=32767), Local-CPU: n/a

我是否需要向 VNet 添加規則以允許連接到 Redis,或者 Redis 是否需要位於同一 VNet 上?

目前,我在 Azure 中使用標准版,看起來我需要使用 Premium 創建一個新實例。

要解決此"No connection is available to service this operation: It was not possible to connect to the redis server(s); ConnectTimeout錯誤,請嘗試以下方法:

  1. StackExchange.Redis降級到v2.1.58

  2. 使用 Azure 訪問密鑰中的Primary connection string (StackExchange.Redis)作為ConnectionMultiplexer.Connect()的參數,而不是分別使用端點和密碼創建ConfigurationOptions參數。

  3. 如果您使用的是安全 TLS 連接,請將配置中的ssl=Truesslprotocols=tls12設置為最新版本。

可以參考RedisConnectionException: No connection is available to service this operation

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM