Installing Nginx under Linux

Source: Internet
Author: User

1. Specify a file storage location USR/LOCAL/SRC

2. Download Nginx, wget http://nginx.org/download/nginx-1.12.0.tar.gz

3. Unzip: Tar zxf nginx ...

4. Go to nginx directory, do not know how to operate can view help (./configure--help)

Specify the installation directory:./configure--prefix=/usr/local/nginx

This will be reported not installed Pcre,zlib class library, yum look for the installation,

Yum Search Pcre

Yum install pcre pcre-devel confirm y Download and install

Yum Install zlib Zlib-devel

After success, then back to install Nginx

./configure--prefix=/usr/local/nginx

Make && make install

At this time the installation is successful, the next to start Nginx, first go to the Nginx installation directory

(View port occupancy: NETSTAR-TUPLN | grep 80)

Turn off fire service iptables stop

Cd/usr/local/nginx/sbin

  

Installing Nginx under Linux

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.