Skip to content

Windows installation

Damien Brugne edited this page Jan 13, 2015 · 7 revisions

Pomelo on Windows

  • Uninstall all existing Visual Studio installation and C++ redistributable
  • Download and install "Microsoft Visual Studio Express 2012 pour Windows Desktop": http://go.microsoft.com/?linkid=9816758
  • Have a functionnal Python runtime (2.5 < version <3.0)

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/MSOpenTech/redis

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:

worker_processes  1;
events {
    worker_connections  1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';
    access_log  logs/access.log  main;
    sendfile        on;
    keepalive_timeout  65;

	#========================
	# 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