title: Can I run redis on a windows server?
body: <p>I have designed an app in django using django channels with redis servers for websocket communication, but I have to host it on a windows server. I can run the redis server locally on my windows machine and it works well for testing on my localhost. I want to know if I can do the same for a windows server. Can I and how do I run redis servers for that application. Is there any alternative to this?
  The other answers that I've found are out-dated, and are about running redis on the local machine.</p>
  <p>I am adding some details of my code as to how I'm using my redis servers for real time websockets communication.</p>
  <pre><code>CHANNEL_LAYERS = {
      'default': {
          'BACKEND': 'channels_redis.core.RedisChannelLayer',
          'CONFIG': {
              &quot;hosts&quot;: [('peaceful-dusk-14195.herokuapp.com', 6379), ('127.0.0.1', 6379)],
          },
      },
  }
  </code></pre>
  <p>I have installed channels-redis module for django to use the configurations of redis servers, as taught in the tutorials of the <a href="https://channels.readthedocs.io/en/stable/tutorial/index.html" rel="nofollow noreferrer">django channels documentation</a>.</p>
  <p>Now this code works perfectly if I run the redis server on my local machine. But since redis is a linux based server, I am having problems with hosting it on windows server. I have used the server.c file from this code inside the src folder to run my redis server: <a href="https://download.redis.io/releases/redis-6.0.9.tar.gz?_ga=2.34441697.1582008402.1607680109-788793498.1604506161" rel="nofollow noreferrer">Download Redis 6.0.9</a></p>
  <p>I run the C program in my Windows Subsystem for Linux (wsl) and the redis server becomes active. This is done in my testing environment.</p>
  <p>Now my question is, can I do the same for the windows server where I will be hosting the application. Will I have to reconfigure something in my server to run the redis servers, or can I simply run the windows server without any modifications?</p>