title: Could not connect to Redis at 10.XX.XX.28:6379: Unknown error - while accessing from Spring Batch or windows machine
body: <p>I have followed all the steps from  link: <a href="https://linuxtechlab.com/how-install-redis-server-linux/" rel="nofollow noreferrer">https://linuxtechlab.com/how-install-redis-server-linux/</a> and using below linux version.</p>
  <blockquote>
  <p>uname -a</p>
  <p>Linux ech-10-XX-XX-28 2.6.32-696.13.2.el6.x86_64 #1 SMP Thu Oct 5 17:03:21 PDT 2017 x86_64 x86_64 x86_64 GNU/Linux</p>
  </blockquote>
  <p>This is installed somewhere on cloud on virtual machine and from local windows machine I am trying to access the redis getting below error mentioned here: <a href="https://stackoverflow.com/questions/51408969/nested-exception-is-redis-clients-jedis-exceptions-jedisconnectionexception-cou?noredirect=1#comment89811063_51408969">nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool</a>.</p>
  <p>My Windows machine:</p>
  <pre><code>C:\Softwares\redis-2.4.5-win32-win64\64bit&gt;redis-cli -h 10.XX.XX.28 -P 6379
  Could not connect to Redis at 10.XX.XX.28:6379: Unknown error
  </code></pre>
  <p>Redis installed on Linux machine:</p>
  <pre><code>[user@10.XX.XX-28:~]$ redis-cli
  127.0.0.1:6379&gt; KEYS *
  1) &quot;Prateek&quot;
  127.0.0.1:6379&gt;
  </code></pre>
  <p>The version  of redis installed on Unix</p>
  <pre><code>[user@10.XX.XX.28:~]$ redis-server --version
  Redis server v=3.2.9 sha=00000000:0 malloc=jemalloc-4.0.3 bits=64 build=d8a68cad035640c6
  </code></pre>