Jump to content

OSX: Howto install nginx (load balancer)


Recommended Posts

  • Administrators

Creds goes to Kevin Worthington


I optimized and corrected a few links so here is a ready to use guide for installing nginx on OSX 10.6+





sudo curl -OL h http://ftp.exim.llorien.org/pcre/pcre-8.01.tar.gz > /usr/local/src/pcre-8.01.tar.gz

sudo curl -OL h http://nginx.org/download/nginx-0.8.33.tar.gz > /usr/local/src/nginx-0.8.33.tar.gz


## Install PCRE

sudo mkdir -p /usr/local/src

cd /usr/local/src

tar xvzf pcre-8.01.tar.gz

cd pcre-8.01

./configure --prefix=/usr/local


sudo make install

cd ..


## Install Nginx

tar xvzf nginx-0.8.33.tar.gz

cd nginx-0.8.33

./configure --prefix=/usr/local --with-http_ssl_module


sudo make install


## Start Nginx

sudo nginx

You may even paste this into eg. build.sh to make it even easier.. after installation you will find:


nginx.conf -> /usr/local/conf

stop nginx: killall nginx

start nginx: /usr/local/sbin/nginx

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now
  • Create New...