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!