Comments (4)
I used redis 3.0.3 with centos 6.2
from redis-cache.
Have you config the redis.properties file?
Note that the default host is "localhost" and port 6379.
from redis-cache.
I had the same problem as you.Finally i debug the source code, and found that there is a bug.
File:RedisConfigurationBuilder.java(line:100)
The orginal code is: jedisConfig.setHost("localhost");
I modified this code to: jedisConfig.setHost(config.getProperty("redis.ip"));
And this solved the problem.
from redis-cache.
Hi all.
The line "jedisConfig.setHost("localhost");" was indeed wrong but made no difference because the value was lately overwritten by the "host" property from the config file. Moreover, if there was no "host" property "localhost" will be set by default in RedisConfig.
So if you are getting a connection proproblem I would 1st check your host and port are right in your propierties file as @live106 pointed.
from redis-cache.
Related Issues (20)
- beta3? HOT 3
- KryoSerializer is more space consuming than JDKSerializer? HOT 1
- KryoSerializer 线程不安全,这里使用,当并发序列化时,是否有线程安全问题
- What's the status of this project? HOT 2
- When does the entire redis cache expire? HOT 1
- Dependency Dashboard
- Several data were obtained from the database, but only one of them was obtained from redis HOT 1
- redis.clients.jedis.exceptions.JedisDataException: NOAUTH Authentication required. HOT 2
- If you use AliCloudDB for Redis,set the clientName to be empty. HOT 2
- mybatis update DB cache not update HOT 1
- cache setting [flushInterval] not work HOT 3
- Is this framework support SQL's join? HOT 3
- Property name in redis.properties collided with jdbc.properties. HOT 2
- when redis server down HOT 4
- profile & jedis update HOT 4
- Ssl not handled properly in redis 2.9.x HOT 1
- Maven Project
- version error HOT 2
- How to use with spring HOT 2
- Is there no secondary cache implementation for redis cluster? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis-cache.