Installation of the Linux Nginx

Source: Internet
Author: User

Nginx is a relatively common server, developed by the Russians, the biggest feature is load balancing, smooth start. This blog mainly explains the installation of Nginx.

First step: Download and install Pcre. From Ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/to find the latest Pcre installation package and download, I downloaded the pcre-8.35.zip; command line input after download:

TAR-ZXVF Pcre-8.35.zip to Unzip, then enter: CD pcre-8.35 into the Pcre installation directory, and then:./configure, make and make install. This completes the installation of the Pcre.

The second step: Download Nginx, for pre-installation configuration. Find the latest nginx download from http://nginx.org/en/download.html and put it in the/home directory, I downloaded version 1.7.2, using the command: Tar zxvf nginx-1.7.2.tar.gz decompression NGINX;CD nginx-1.7.2 into the Nginx directory;./configure--prefix=/usr/local/nginx--with-http_stub_status_module configuration, and make Install to complete the installation.

Test: Enter the/usr/local/nginx/sbin directory, enter the NGINX-V, have the print Nginx version number, indicating the successful installation. You can also enter the local address in the browser, if returning Welcome to Nginx also indicates that the installation was successful.

If the trouble, you can use the Apt-get install installation, only need: sudo apt-get install nginx can, but this installation of the Nginx version is lower Oh, it seems that 1. Version of X.


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.