Tencent Cloud CentOS 6.6 Quick Install Nginx server graphics and text tutorial _nginx

Source: Internet
Author: User
Tags openssl centos server nginx server

A. Download Nginx

Download the latest version of Nginx from Nginx's official website (http://nginx.org/en/download.html), where I am downloading nginx-1.9.12.

When the download is complete, get a compressed package as shown in the following figure

Upload the Nginx tar packets to the Linux server, as shown in the following illustration:

Two. Install Nginx

2.1. Installation Prerequisites

Before installing Nginx, you need to ensure that the system has G++,GCC, Openssl-devel, Pcre-devel, and Zlib-devel software installed.

1. Installation must software: yum-y install zlib zlib-devel OpenSSL openssl--devel pcre pcre-devel

The installation process is shown in the following illustration:

2.2. Installation of Nginx: Yum install GeoIP gd libxpm libxslt

The installation process is shown in the following illustration:

2.2. Decompression installation Nginx

Unpack the Nginx package in the directory where you entered the Nginx installation package, as shown in the following illustration:

Decompression complete, a nginx-1.9.12 directory, into the nginx-1.9.12 directory to view the contents, as follows:

The installation of the source code generally consists of 3 steps: Configuration (Configure), compilation (make), installation (make install)

1. Implementation./configure

The./configure command executed successfully

2. Perform the make operation as shown in the following illustration:

The make operation completes.

3. Perform the Make install command for installation.

2.3. Verify that the installation Nginx is successful

1. View Nginx Installation path (Whereis nginx)

2. Start Nginx

In the browser, enter the Http://centos server IP access Nginx, such as my server IP address is: 115.159.95.35, input http://115.159.95.35/Access installed Nginx, access results shown in the following image:

To see the Nginx Welcome page normally, it means that Nginx has been installed successfully.

The above is a small set to introduce Tencent Cloud CentOS 6.6 Fast installation Nginx server graphics and text tutorials, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

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.