我正在尝试resque(i.e jesque java version)
在 Cloud Foundry 中部署基于独立的应用程序,我在部署应用程序时绑定了 redis 服务。
我正在使用STS
所有这些过程。但是我越来越像
redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused
at redis.clients.jedis.Connection.connect(Connection.java:134)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:69)
at redis.clients.jedis.Connection.sendCommand(Connection.java:79)
at redis.clients.jedis.BinaryClient.select(BinaryClient.java:148)
at redis.clients.jedis.Jedis.select(Jedis.java:328)
at net.greghaines.jesque.TestUtils.createJedis(TestUtils.java:75)
at net.greghaines.jesque.TestUtils.resetRedis(TestUtils.java:45)
at com.accenture.creditcard.UseCreditCard.resetRedis(UseCreditCard.java:23)
at com.accenture.creditcard.UseCreditCard.main(UseCreditCard.java:56)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at redis.clients.jedis.Connection.connect(Connection.java:129)