yum -y install gcc gcc-c++ autoconf automake
yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel
wget http://nginx.org/download/nginx-1.4.4.tar.gz 
wget https://github.com/yaoweibin/nginx_tcp_proxy_module/archive/master.zip
unzip master.zip(找到tcp.patch)
1.patch -p1 < /path/to/nginx_tcp_proxy_module/tcp.patch   
2../configure --user=www --group=www \
--prefix=/usr/local/nginx \
--with-http_stub_status_module \
--with-http_ssl_module \
--with-http_sub_module \
--with-md5=/usr/lib \
--with-sha1=/usr/lib \
--with-http_gzip_static_module \
--add-module=/usr/local/src/modules/nginx_tcp_proxy_module   
3.make   
4.make install