Jump to content

OSX: Howto install nginx (load balancer)


Leon
 Share

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+

 

#!/bin/bash

 

## DOWNLOADS

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

make

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

make

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...