2017-12-14 1 views

Antwort

0

Gemäß der official document und dem Fall Does Azure Redis work over http? verwenden Azure Redis das TCP-Protokoll und unterstützt das HTTP-Protokoll nicht.

Sie müssen also Socket 4/5 Proxy anstelle von HTTP-Proxy verwenden und Proxy-Parameter in der Java-App festlegen.

Properties prop = System.getProperties(); 
prop.setProperty("socksProxyHost", "IP ADDRESS"); 
prop.setProperty("socksProxyPort", "PORT"); 
Authenticator.setDefault(new MyAuthenticator("userName", "Password")); 
Verwandte Themen