Nginx installs and supports upstream and TCP proxy modules

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.