nginx tcp代理
来源:互联网 发布:保湿乳液推荐 知乎 编辑:程序博客网 时间:2024/06/05 04:51
nginx1.7.7之前不支持tcp代理,使用tcp代理需安装nginx_tcp_proxy_module,
参考:http://blog.csdn.net/aspnet_lyc/article/details/52267175
nginx 1.7.7后开始支持tcp代理,nginx 1.9.13后添加了udp代理的支持.
如果需要用到这个功能,就需要加上 --with-stream 参数重新编译nginx
重新编译nginx, 并加上--with-stream 参数
通过平滑升级的方式启动nginx 参考:http://blog.csdn.net/aspnet_lyc/article/details/52266875
参考:http://blog.csdn.net/aspnet_lyc/article/details/52267175
nginx 1.7.7后开始支持tcp代理,nginx 1.9.13后添加了udp代理的支持.
如果需要用到这个功能,就需要加上 --with-stream 参数重新编译nginx
重新编译nginx, 并加上--with-stream 参数
通过平滑升级的方式启动nginx 参考:http://blog.csdn.net/aspnet_lyc/article/details/52266875
配置和http一样,简单明了
stream {upstream backend {#hash $remote_addr consistent;#server backend1.example.com:12345 weight=5;#server unix:/tmp/backend3;server 192.168.0.2:22 max_fails=3 fail_timeout=30s;server 192.168.0.3:22 max_fails=3 fail_timeout=30s;}server {listen 9998;proxy_connect_timeout 1s;proxy_timeout 3s;proxy_pass backend;}}
0 0
- nginx TCP 反向代理
- Nginx TCP/UDP 代理
- nginx tcp代理
- nginx tcp代理
- nginx搭建TCP代理
- nginx代理TCP模块
- nginx tcp 反向代理
- nginx添加tcp代理模块
- Nginx实现TCP反向代理
- nginx实现tcp反向代理
- Nginx实现TCP反向代理
- nginx支持tcp代理mysql
- 安装nginx及tcp代理
- nginx tcp http 代理配置
- nginx tcp代理模块安装
- nginx及tcp代理分发
- Nginx的tcp反向代理初探
- 【Nginx】基于TCP的反向代理
- Linux queue.h之TAILQ队列分析
- C++友元重载运算符,模板类友元重载
- 原生JS阻止冒泡
- [HDU5790] Prefix 字典树+主席树
- 并查集+字符排序-困兽之斗(乐视题)
- nginx tcp代理
- [模板]hash链式前向星模板
- uboot学习记录
- Binder框架 -- android AIDL 的使用
- mybatis连接数据库映射文件
- [高斯消元] HDU 5755 Gambler Bo
- 最短的名字
- VMware Workstation Pro安装ubuntu14.04
- **手撸STL------------------>allocator**