Today it's just a simple nginx, and it doesn't use the functionality, and it's going to be a document about Nginx load balancing and reverse proxies.
At the same time, if you can see that there are not many places in the document, please ask, thank you first.
First, download
To build a nginx, you need to install a few packages to create an environment.
These packages can be installed directly with Yum, configure the Yum warehouse, and execute the command:
Yum-y Install openssl*
Yum-y Install gcc*
Yum-y Install pcre*
After loading, you can download the Nginx source package to install.
Nginx Download Address: http://nginx.org/en/download.html
I'm under the latest 1.1.16.
Second, the installation
1, TAR-ZXVF nginx-1.1.16.tar.gz will extract the Nginx source code to open
2, CD nginx-1.1.16 into the Nginx ' catalogue
3./configure--prefix=/usr/local/nginx configures Nginx to/usr/local/nginx directory
Of course./configure also has a lot of parameters, specific can be used:./configure--help View.
4, make && make install
The following figure:
Startup method:/usr/local/nginx/sbin/nginx