The most stable version on the official website is 1.6.1. This tutorial takes 1.6.1 as an example: 1. You can set the rpm source for RedHat and CentOS, RHEL5RHEL6RHEL7CentOS5CentOS6CentOS7 download and install the above file. Run the command yuminstallnginxdebian and Ubuntu to configure the following source debhttp: // ngin
The most stable version on the official website is 1.6.1. This tutorial takes 1.6.1 as an example:
1. You can set the rpm source for RedHat and CentOS,
- RHEL 5
- RHEL 6
- RHEL 7
- CentOS 5
- CentOS 6
- CentOS 7
Download and install the above files
Run the command yum install nginx
You can configure the following sources for debian and Ubuntu:
Deb http://nginx.org/packages/debian/ codename nginx
The deb-src http://nginx.org/packages/debian/ codename nginx
Or
Deb http://nginx.org/packages/ubuntu/ codename nginx
The deb-src http://nginx.org/packages/ubuntu/ codename nginx
Run
Apt-get update
Apt-get install nginx
2. source code compilation
Http://nginx.org/en/download.html downloading nginx1.6.1
./configure --sbin-path=/usr/local/nginx/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --with-http_ssl_modulemakemake install
Dependencies may exist in the middle. You can install related dependencies as prompted.
More installation information reference http://nginx.org/en/docs/configure.html
-------------------------------------- Split line --------------------------------------
CentOS 6.2 Deployment Nginx + MySQL + PHP http://www.linuxidc.com/Linux/2013-09/90020.htm
Build a WEB server http://www.linuxidc.com/Linux/2013-09/89768.htm with Nginx
Build a Web server http://www.linuxidc.com/Linux/2013-09/89692.htm Based on Linux6.3 + Nginx1.2 + PHP5 + MySQL5.5
Nginx Performance Tuning http://www.linuxidc.com/Linux/2013-09/89656.htm in CentOS 6.3
Configure Nginx to load ngx_pagespeed module http://www.linuxidc.com/Linux/2013-09/89657.htm under CentOS 6.3
CentOS 6.4 install and configure Nginx + Pcre + php-fpm http://www.linuxidc.com/Linux/2013-08/88984.htm
Nginx installation configuration use notes http://www.linuxidc.com/Linux/2014-07/104499.htm
Nginx log filtering using ngx_log_if does not record specific log http://www.linuxidc.com/Linux/2014-07/104686.htm
-------------------------------------- Split line --------------------------------------
Nginx details: Click here
Nginx: Click here
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-08/105468.htm