nginx安装并支持upstream和tcp代理模块
2014-03-28 16:36
351 查看
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模块
git clone https://github.com/yaoweibin/nginx_tcp_proxy_module.git //tcp代理模块
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 //加入快速启动, nginx脚本在附件
chmod 755 /etc/rc.d/init.d/nginx
cp /data/q/sh/conf/nginx.conf /usr/local/nginx/conf/ //修改nginx的配置, nginx.conf在附件
service nginx start
nginx 配置可参考 https://github.com/yaoweibin/
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模块
git clone https://github.com/yaoweibin/nginx_tcp_proxy_module.git //tcp代理模块
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 //加入快速启动, nginx脚本在附件
chmod 755 /etc/rc.d/init.d/nginx
cp /data/q/sh/conf/nginx.conf /usr/local/nginx/conf/ //修改nginx的配置, nginx.conf在附件
service nginx start
nginx 配置可参考 https://github.com/yaoweibin/
相关文章推荐
- nginx安装并支持upstream和tcp代理模块
- Nginx发布1.9.0版本,新增支持TCP代理和负载均衡的stream模块
- Nginx发布1.9.0版本,新增支持TCP代理和负载均衡的stream模块
- nginx系列(一)之tcp转发模块支持
- nginx入门学习—— 在已安装好的nginx上添加nginx_upstream_check_module模块(三)
- Nginx发布1.9.0版本,新增支持TCP代理和负载均衡的stream模块
- centos6.5生产环境编译安装nginx-1.11.3并增加第三方模块ngx_cache_purge、nginx_upstream_check、ngx_devel_kit、lua-nginx
- centos6.5生产环境编译安装nginx-1.11.3并增加第三方模块ngx_cache_purge、nginx_upstream_check、ngx_devel_kit、lua-nginx
- centos中安装nginx与新增加https模块支持
- Linux下安装php环境并且配置Nginx支持php-fpm模块
- centos7.2 源码编译安装nginx,实现tcp反向代理,不中断服务新增编译模块
- nginx支持tcp代理mysql
- Linux下安装php环境并且配置Nginx支持php-fpm模块
- Nginx发布1.9.0版本,新增支持TCP代理和负载均衡的stream模块
- Nginx安装upstream-fair模块(第三方模块)
- 自动安装带nginx_upstream_check_module模块的Nginx脚本
- nginx 安装并支持upstream监控
- Nginx服务器安装,高性能的HTTP、TCP、反向代理、负载均衡等服务和配置
- Linux下安装php环境并且配置Nginx支持php-fpm模块
- Linux下安装php环境并且配置Nginx支持php-fpm模块