1. Install the wget library first
Curl-o http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.gz
CD wget-1.13.4
./configure--with-ssl=openssl
sudo make sudo make install1. Install the Pcre library first
you can download the latest version of Sourcef*ge here
wget Http://sourceforge.net/projects/pcre/files/pcre/8.37/pcre-8.37.tar.gztar ZXVF PCRE-8.37.TAR.GZCD Pcre-8.37sudo./configure--prefix=/usr/localsudo Makesudo make install
1. Install the Nginx library first
CD nginx-1.9.4
./configure--prefix=/usr/local/nginx--with-http_stub_status_module--with-http_ssl_module--with-cc-opt= "- Wno-deprecated-declarations "
sudo make
sudo make install
sudo ln-s/usr/local/nginx/sbin/nginx/usr/local/bin/nginx 267 sudo ln-s/usr/local/nginx/conf/etc/nginx 268 sudo ln-s/usr/local/nginx/logs/nginx.pid/var/run/nginx.pid 269 sudo ln-s/usr/local/nginx/ Logs/var/log/nginx
Start Nginx
sudo nginx
Stop Nginx
sudo nginx-s stop
Configure Nginx under Mac