Install Nginx under Mac

Source: Internet
Author: User

Dependencies under the 1,mac:

Pcre-8.38.tar.gz

Nginx-1.4.7.tar.gz

2, Decompression Pcre: The entry to extract the directory.

eddydemacbook-pro:~ eddy$ cd/users/eddy/soft/pcre-8.38

 

Note: Nginx is installed in the/OPT directory by default, there is no/opt directory in Mac system, so specify the target directory with--prefix

sudo make

sudo make install

Note: Mac requires user's permission when installing, sudo can determine the user.

After the installation is complete, enter the Nginx installation directory.

eddydemacbook-pro:nginx-1.4.7 eddy$ lschanges        LICENSE        README        conf        contrib        man srcchanges.ru    Makefile    Auto        Configure    HTML        objs 

The execution file is in Objs.

Start

./nginx

ok~

This article refers to:

Http://www.cnblogs.com/ytfcz/p/3474907.html

Install 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.