#建站 "Installing Nginx 1.7.4 under CentOS7.0"

Source: Internet
Author: User

Source:blog.csdn.net Author:quantseven original link: here

  A CentOS7.0 under the installation of Nginx 1.7.4 tutorial, pro-Test effective. The following tutorials are directly:

First, installation Preparation

  First, because some of the Nginx modules rely on some Lib library, so before installing Nginx, you must first install these Lib libraries, these dependent libraries mainly have g++, GCC, openssl-devel, pcre-devel and Zlib-devel so execute the following command installation.

$   ./configure  $ default installation in/usr/local/nginx   $   make  $ make   Install

Second, install Nginx

Before installing, it is advisable to check if Nginx is installed.

$   find-name Nginx

If the system already has Nginx installed, then uninstall it first.

$   Yum Remove Nginx

First enter the/usr/local directory.

$   cd/usr/local

Download the latest version of Nginx from the official website.

$   wget http://nginx.org/download/nginx-1.7.4.tar.gz

Unzip the Nginx compressed package.

$   TAR-ZXVF nginx-1.7.4.tar.gz

will produce a nginx-1.7.4 directory, then enter the nginx-1.7.4 directory.

$   CD nginx-1.7.4

Next install, use the--prefix parameter to specify the Nginx installation directory, make, make install installation.

$   ./configure  $ default installation in/usr/local/nginx   $   make  $ make   Install

If there is no error, after the successful completion, it is best to look at the Nginx installation directory.

$   Whereis Nginx

Once the installation is complete, you can start or stop it by entering the post-installation directory (/usr/local/nginx).

In this, the use of CentOS installation Nginx has been completed, in fact, it is quite simple to see.

  

  

  

 

#建站 "Installing Nginx 1.7.4 under CentOS7.0"

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.