Configure Nginx under Mac

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.