我有两个运行COUCHBASE的AWS实例..和,,,,尝试连接到AWS实例。在Telnet / SSH工作正常时Ping失败。
可以使用http://xscx:8091
通过java api进行此操作时出现错误,如
2013-10-23 19:59:06.534 WARN com.couchbase.client.CouchbaseConnection: Closing, and reopening {QA sa=172.31.12.165/172.31.12.165:11210, #Rops=0, #Wops=1, #iq=0, topRop=null, topWop=Cmd: 1 Opaque: 1 Key: 0 Cas: 0 Exp: 0 Flags: 0 Data Length: 1570, toWrite=0, interested=0}, attempt 3.
2013-10-23 19:59:06.544 INFO com.couchbase.client.CouchbaseConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@60051f44
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:692)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:423)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:261)
at com.couchbase.client.CouchbaseConnection.run(CouchbaseConnection.java:288)
2013-10-23 19:59:06.545 WARN com.couchbase.client.CouchbaseConnection: Closing, and reopening {QA sa=172.31.5.85/172.31.5.85:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}, attempt 3.``
ava.lang.RuntimeException: Timed out waiting for operation
答案 0 :(得分:2)
你说
Ping失败,而Telnet / SSH工作正常
Ping使用ICMP,而Telnet和SSH使用TCP / IP。这些是不同的协议,在防火墙处被阻止不同。许多防火墙运营商明确阻止ICMP以减轻拒绝服务攻击,因此这并不奇怪。
答案 1 :(得分:0)
您需要明确打开端口(如果需要在Windows防火墙的端口中打开Windows)。默认情况下,AWS端口将关闭(本地打开)