What nginx is:
He is a high-performance HTTP and reverse proxy server.
1. Download Nginx pcre Library (note the location of the download my location is/usr/local)
Unzip file: TAR-ZXVF pcre-8.40.tar.gz
Access: CD pcre.8.40
To install the C + + compiler:yum install -y gcc gcc-c++(如果缺少才需用安装)
To configure the operation:./configure
Install: Make install
2. Install zlib Library (note the location of the download disk my location is/usr/local)
Go back to the previous level to enter Local: CD.
Quick installation: Wget http://zlib.net/zlib-1.2.11.tar.gz
To configure the operation.
Unzip file: TAR-ZXVF zlib-1.2.11.tar.gz
First entry: CD zlib-1.2.11
To configure the operation:./configure
Install: Make install
3. Install SSL
Go back to the previous level to enter Local: CD.
Quick installation: Wget http://www.openssl.org/source/openssl-1.0.1j.tar.gz
To configure the operation.
Unzip file: TAR-ZXVF tar-zxvf openssl-1.0.1j.tar.gz
First entry: CD openssl-1.0.1j
To configure the operation:./configure (Note case!!) )
Install: Make install
Execution under Root: Export ld_library_path=/usr/local/lib: $LD _library_path
4. Installing Nginx
Create a new file inside the path Local:
mkdir Nginx
Access file: CD Nginx
Then download
wget http://nginx.org/download/nginx-1.6.2.tar.gz
Unzip the file:
Tar zxvf nginx-1.6.2.tar.gz
Access: CD nginx-1.6.2
To configure the operation:./configure
Install: Make install
Start Operation:/usr/local/nginx/sbin/nginx
Ps-ef | grep nginx
Flag for test Installation success:
Installing Nginx under Linux