Files
example-code-2e/concurrency/flags
2015-04-15 05:20:25 -03:00
..
2014-12-29 04:01:21 -02:00
2015-02-27 20:34:12 -03:00
2015-02-27 20:34:12 -03:00
2015-02-27 20:34:12 -03:00
2015-01-26 11:15:08 -02:00
2014-11-14 12:03:10 -02:00
2014-12-29 03:51:34 -02:00
2014-12-29 03:51:34 -02:00
2014-12-29 03:51:34 -02:00
2014-12-06 15:39:48 -02:00
2014-12-29 03:51:34 -02:00
2015-04-15 05:20:25 -03:00
2015-02-27 20:34:12 -03:00
2014-11-14 12:03:10 -02:00
2014-11-14 12:03:10 -02:00

=========================================
Setting up the test environment 
=========================================

Some of the concurrency examples in this book require a local HTTP
server. These instructions show how I setup Ngnix on GNU/Linux,
Mac OS X 10.9 and Windows 7.

Nginx setup on Mac OS X
========================

Homebrew (copy & paste code at the bottom of http://brew.sh/)::

  $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  $ brew doctor
  $ brew install nginx

Download and unpack::

Docroot is: /usr/local/var/www
/usr/local/etc/nginx/nginx.conf

To have launchd start nginx at login:
    ln -sfv /usr/local/opt/nginx/*.plist ~/Library/LaunchAgents
Then to load nginx now:
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist
Or, if you don't want/need launchctl, you can just run:
    nginx

Nginx setup on Lubuntu 14.04.1 LTS
==================================

/usr/share/nginx/html