Skip to content

Windows installation

Yann Lastapis edited this page May 19, 2015 · 7 revisions

Pomelo on Windows

Redis for Windows

To install Redis on Windows x64 with unofficial port. Built binaries are available in the bin/ folder of this repository: https://github.com/ServiceStack/redis-windows/blob/master/downloads/redis64-latest.zip

Get the ZIP file, uncompress in C:\Program Files\redis

Launch a "Commande line console" as "privileged user".

> cd "Program Files"/redis
> redis-server.exe

Normally now the server run correctly. Quit with CTRL+C.

Now we should configure Redis as a service:

> redis-server --service-install redis.windows.conf --loglevel verbose
> redis-server --service-start

You can use the excellent http://redisdesktop.com/ to browse server from desktop.

nginx for Windows

Source: http://nginx.org/en/docs/windows.html

start nginx
  • To verify process:
tasklist /fi "imagename eq nginx.exe"
Image Name           PID Session Name     Session#    Mem Usage
=============== ======== ============== ========== ============
nginx.exe            652 Console                 0      2 780 K
nginx.exe           1332 Console                 0      3 112 K

Use following configuration:

#========================
# WEB SERVER
#========================
server {
	listen       80;
	server_name  chat.local;
	access_log  logs/web.access.log  main;
	location / {
		proxy_pass http://chat.local:3000;
	}
}

#========================
# WS SERVER
#========================
upstream io_nodes {
  ip_hash;
  server 127.0.0.2:3050;
  server 127.0.0.2:3051;
  server 127.0.0.2:3052;
  server 127.0.0.2:3053;
}
server {
  listen 80;
  server_name ws.chat.local;
  access_log logs/ws.access.log main;
  location / {
	proxy_set_header Upgrade $http_upgrade;
	proxy_set_header Connection "upgrade";
	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	proxy_set_header Host $host;
	proxy_http_version 1.1;
	proxy_pass http://io_nodes;
  }
}
Clone this wiki locally