In this tutorial, I would like to show how to configure and install nginx on Mac OS X. My Mac system is Mavericks 10.9.2.
You have to install Xcode command line tools.
I've been using nginx for a few months without issue, but after upgrading to Mac OS X 10.9 Mavericks, when trying to start nginx I get this: nginx: emerg bind to 0.0.0.0:80 failed (48: Address. Bitnami NGINX Open Source Stack for Windows / Linux / MacOS / OS X VM NGINX Open Source is a web server that can be also used as a reverse proxy, load balancer, and HTTP cache. Recommended for high-demanding sites due to its ability to provide faster content.
1. Download the latest stable version – nginx 1.4.7.
2. Unzip the downloaded package by the command “tar xvzf nginx-1.4.7.tar.gz”.
3. “cd nginx-1.4.7”.
4. “sudo ./configure”. There is an error displayed:
5. To fix the error, visit the tutorial page and read “Building nginx from Sources”, in which you can find the link of PCRE library.
6. Go to PCRE official site, and find the latest version of PCRE library on SourceForge.
7. Download the package and unzip it by the command “tar xvzf pcre-8.34.tar.bz2”.
8. Now, you can run the configure file again with the parameters “sudo ./configure –with-pcre=path”.
Nginx For Mac Os X 10.7
9. Configuration is done.
the default nginx path prefix is “/usr/local/nginx”.
10. To install nginx, type in “sudo make install”.
Nginx Restart Mac Os X
11. Find the executable file “cd /usr/local/nginx/sbin”
12. Launch nginx “sudo ./nginx”
Nginx Mac Os X Config File
The nginx is successfully running now!
Nginx Reverse Proxy Mac Os X
If you have any questions, just email {desmond at dynamsoft dot com}.