Lightweight HTTP Server nginx: Installation and Configuration

Source: Internet
Author: User
Keywords Nginx installation HTTP server
Tags aliyun configuration configure content development download homepage html

Wind Network (ithov.com) original article: The following content involves Nginx installation and configuration, you can through detailed installation instructions to learn.

Download and install Nginx

&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP; Nginx's official website is http://sysoev.ru/nginx/, the English homepage for http://nginx.net, where you can get the latest version of Nginx information. Nginx has three versions: stable, development, and history stable. Development updates are faster, contain the latest features and fixes for bugs, but may also present new bugs. Once the update is stabilized, the development version is added to the stable branch. However, some new features may not necessarily be added to the stable version. Stable version updates are slow, but fewer bugs can be used as the preferred production environment, so a stable version is generally recommended. The historical stable version is a summary of previous stable versions and does not contain the latest features.

Here, select the current stable version nginx-0.7.65 as an Introduction object to begin the introduction of the compile installation. Before installing Nginx, make sure that the GCC, openssl-devel, Pcre-devel, and Zlib-devel software libraries are installed on the system.

The Linux development library is installed by hand when installing the system, GCC, Openssl-devel, zlib-dcvel three software libraries can choose to install directly from the installation CD, and the Pcre-devel library is not on the system CD by default. So here is an introduction to the Pcre-devel library.

1. Pcre-devel Libraries required to install Nginx

The Pcre library is installed to enable Nginx to support HTTP rewrite modules. The following installation process is as follows:

[Root@localhost home] # tar zxvf pcre-8.02.tar.gz
[Root@localhost Home] # CD pcre-8.02
[Root@localhost pcre-8.02j #/configure
[Root@localhost pcre-8.02j #make
[root@localhost pcre-8.02] #make Install

2. Start Installation Nginx

Nginx is easy to install. By default, a compiled installation of Nginx contains most of the available modules. You can use the "./configure--help" option to set the usage of individual modules, such as for unwanted http_ssi modules, which can be turned off by "--without-http_ssi_module" mode. Similarly, if you need a "Http_perl" module, you can install it in "-with-http_perl_module" mode. The following is the installation process:

[Root@localhost home] # tar zxvf nginx-0.7.65.tar.gz
[Root@localhost home] #cd nginx-0.7.65
[Root@localhost nginx-0.7.65] #/conf Igure
-with-http_stub_status Module--prefix=/opt/nginx
[Root@localhost nginx-0.7.65j #make
[Root@localhost nginx-o.7.65j #make Install

In the Configure option above, "--with-http_stub_status_module" can be used to enable the Nginxstatus function of Nginx to monitor the current state of the Nginx.

At this point, Nginx has been installed.

Related Article

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.