Installation of Nginx under Centos/linux

Source: Internet
Author: User

1. Installing the GCC compiler

First, see if the GCC compiler is installed

In the shell console input gcc-v if not installed see next

Installing GCC with Yuma

Yum Intsall gcc

See the following view to indicate that the installation was successful

2. Installing Pcre

Installing using the Yum command

  

Yum Install Pcre-devel

See the following view indicating that the installation is complete

3. Installing zlib

Command:

Yum Install zlib Zlib-devel

The following view indicates that the installation is complete

4. Installing OpenSSL

  

Yum Install OpenSSL Openssl-devel

Installation Successful

5. Download Nginx

Command:

  

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

6. Unzip the Nginx

Command:

Tar zxvf nginx-1.13.4.tar.gz-c. /dev/

7. Installing Nginx

CD nginx-1.13.4/./configuremakemake Install

  Note: When executing the makeinstall command, it is best to use root user execution

8. Verify that the Nginx installation is complete

Whereis Nginx

If a slice appears, the installation is complete

  

9. Configure Nginx to the shell command

Vim/etc/profile

Add Last Face

Export Nginx_home=/usr/local/nginx/export path= $PATH: $JAVA _home/bin: $MAVEN _home/bin: $NGINX _home/sbin

Then enter: Wq Save the file to take effect

Source/etc/profile

10. Start Nginx

Nginx

11. See if Nginx is started successfully

Ps-ef |grep Nginx

Appears as shown to indicate successful start

Installation of Nginx under Centos/linux

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.