wget http://nginx.org/download/nginx-1.4.5.tar.gz
Tar zxvf nginx-1.4.5.tar.gz
CD nginx-1.4.5
Git Clone Https://github.com/yaoweibin/nginx_upstream_check_module.git//upstream module
git clone https://github.com/yaoweibin/nginx_tcp_proxy_module.git//tcp proxy module
Yum Install patch
PATCH-P1 <nginx_upstream_check_module/check_1.2.6+.patch
PATCH-P1 <nginx_tcp_proxy_module/tcp.patch
Yum Groupinstall "Development tools"
Yum-y Install Pcre-devel OpenSSL openssl-devel
./configure--add-module=nginx_upstream_check_module--add-module=nginx_tcp_proxy_module
Make
Make install
Cp/data/q/sh/conf/nginx/etc/rc.d/init.d/nginx//Join Quick Start, Nginx script in attachment
chmod 755/etc/rc.d/init.d/nginx
cp/data/q/sh/conf/nginx.conf/usr/local/nginx/conf///Modify Nginx configuration, nginx.conf in attachment
Service Nginx Start
Nginx configuration can refer to https://github.com/yaoweibin/
This article is from the "Dream to Reality" blog, please be sure to keep this source http://lookingdream.blog.51cto.com/5177800/1850765
Nginx installs and supports upstream and TCP proxy modules