2017-03-02 1 views
0

방금 ​​개발 서버 중 하나에 REDIS 서버를 설치했습니다. 그리고 내 로컬 호스트 응용 프로그램을이 외부 서버에 연결하려고합니다. StackExchange.REDIS API를 사용하여 내부 개발 서버 10.26.130.170에있는이 REDIS 서버에 연결합니다. 모든 것을 기본값으로 REDIS 소프트웨어를 설치했고 지금까지 사용자 화를하지 않았습니다. 여기 ASP.net 앱 연결 REDIS SocketFailure on Ping

내 프로젝트에서 연결 클래스 ::

public sealed class RedisSingleton 
{ 
    private static Lazy<ConfigurationOptions> configOptions = new Lazy<ConfigurationOptions>(() => 
       { 
        var configOptions = new ConfigurationOptions(); 
        configOptions.EndPoints.Add("10.26.130.170:6379"); 
        configOptions.ClientName = "MyAppRedisConn"; 
        configOptions.ConnectTimeout = 100000; 
        configOptions.SyncTimeout = 100000; 
        configOptions.AbortOnConnectFail = true;       
        return configOptions; 
       }); 

    private static Lazy<ConnectionMultiplexer> LazyRedisconn = new Lazy<ConnectionMultiplexer>(
                            () => ConnectionMultiplexer.Connect(configOptions.Value)); 

    public static ConnectionMultiplexer ActiveRedisInstance 
    { 
     get 
     { 
      return LazyRedisconn.Value; 
     } 
    } 
} 

enter image description here

enter image description here

몇 가지 제안에 알려 주시기 바랍니다 있습니다. 거기에 신속하게 내 localhost에서 확인하고 PED 또는 다른 명령을 사용하여 포트 6379에서 REDIS 서버에 연결 도달을 확인할 수있는 방법이 있나요.

redis의 원격 서버에서 6379 포트가 열려 있지 않습니다. 윈도우의 도움으로 발견했습니다. PortQueryUI 도구.

답변