-
Notifications
You must be signed in to change notification settings - Fork 0
Windows installation
Yann Lastapis edited this page May 19, 2015
·
7 revisions
- 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) like : https://www.python.org/ftp/python/2.7.9/python-2.7.9.amd64.msi
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.
Source: http://nginx.org/en/docs/windows.html
- Download lastest stable: http://nginx.org/en/download.html
- Unzip and go to folder
- Start with:
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;
}
}