Administrators Leon Posted August 16, 2012 Administrators Share Posted August 16, 2012 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.