Linux Nginx installation (reprint)

Source: Internet
Author: User

1.linux under Installation

1. Download pcre-8.10.tar.gz nginx-1.1.1.tar.gz

2. Install Pcre let nginx support rewrite

Pcre-8.10.tar.gz upload to the/home directory

1) Unzip the Pcre

tar zxvf pcre-8.10.tar.gz decompression pcre after home/home there will be pcre-8.10 folder

2) configuration Pcre

cd/home/pcre-8.10

./configure After you enter the command, the screen generates a bunch of files that you don't have to worry about.

3) Make

After you enter make command in Linux , the screen generates a bunch of files that you don't have to worry about.

4) Installation

Enter make install in Linux

3. Installing Nginx

Nginx-1.1.1.tar.gz upload to the/home directory

1) Decompression Nginx

tar zxvf nginx-1.1.1.tar.gz after decompression nginx/home There will be nginx-1.1.1 folder

2 Configuring Nginx

CD nginx-1.1.1

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

3) Make

After you enter make command in Linux , the screen generates a bunch of files that you don't have to worry about.

4) Installation

Enter make install in Linux

5) Check if the installation is successful

CD /usr/local/nginx/sbin

./nginx-t

The results show:

Nginx:the configuration file/usr/local/nginx/conf/nginx.conf syntax is OK

Nginx:configuration file/usr/local/nginx/conf/nginx.conf Test is successful

6) Start Nginx

Enter the CD /usr/local/nginx/sbin directory below./nginx start Nginx

7) Check whether the start is successful

Enter http://192.168.15.132 in IE browser

Linux Nginx installation (reprint)

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.