nginx1.6.3 source installation, CENTOS6 system under the detailed

Source: Internet
Author: User

Nginx Official website:

Http://nginx.org/en/download.html

wget http://nginx.org/download/nginx-1.6.3.tar.gz

Tar zxvf nginx-1.6.3.tar.gz-c/opt/nginx

CD!$

./configure initialization Configuration

If error: Description does not install Pcre library file

650) this.width=650; "src=" http://www.linuxidc.com/upload/2015_03/15031418518380.jpg "alt=" 15031418518380.jpg "/ >

After installing Pcre, you can initialize successfully, display the installation path of Nginx

650) this.width=650; "src=" Http://www.linuxidc.com/upload/2015_03/15031418513659.jpg "alt=" detailed Linux installation configuration Nginx "/ >

Make && make install build installation

Cp/usr/local/nginx/sbin/nginx/usr/sbin adding the Nginx launcher to the $PATH environment variable

/usr/local/nginx/sbin/nginx-s start/stop/reload/restart nginx Control command

(/usr/local/nginx/sbin/nginx-c conf/nginx.conf Specify configuration file startup)

If error:

./nginx:error while loading shared libraries:libpcre.so.1:cannot open Shared object file:no such file or directory

Note that the installed Pcre library is not shared, and a soft connection to the/lib64 shared library is available (if the 32-bit system is connected to/lib)

Ln-s/usr/local/lib/libpcre.so.1/lib64

Start the Nginx again and start normally.


Next is to modify the Nginx configuration file nginx.conf, tuning integration.


PS: Install Pcre Library

Download Source Bundle: https://sourceforge.net/projects/pcre/files/pcre/8.38/

Tar zxvf pcre-8.38.tar.gz-c/opt/pcre

CD!$

./configure

Make && make install


Reference Documentation:

Http://www.linuxidc.com/Linux/2015-03/114988.htm


nginx1.6.3 source installation, CENTOS6 system under the detailed

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.