摘要: stream { upstream server1{ hash $remote_addr consistent; server 127.0.72.60:3000; } server { listen 8400; proxy_connect_timeout 50s; proxy_timeout 50s 阅读全文
posted @ 2021-10-25 15:45 China Soft 阅读(1150) 评论(0) 推荐(0) 编辑
摘要: 今天从公网的服务器连接本地内网的FTP server copy文件时,系统老是提示227 Entering Passive Mode (xxx,xxx,,xxx,xxx,x),很是奇怪,于是上网找资料仔细研究了一下,原来FTP有两种工作模式,PORT模式和PASV模式. 在主动模式下,FTP客户端随 阅读全文
posted @ 2021-10-25 15:42 China Soft 阅读(3835) 评论(0) 推荐(0) 编辑
摘要: windows nginx TCP代理 负载均衡 必须是 nginx-1.9.0 以上版本(包括1.9.0)。该版本之后,增加了 stream module,可以实现该功能。 下载地址:http://nginx.org/download/nginx-1.9.9.zip http://nginx.or 阅读全文
posted @ 2021-10-25 09:34 China Soft 阅读(354) 评论(0) 推荐(0) 编辑
摘要: nginx1.9之后直接使用Stream配置就可以了,当然需要先安装stream模块 1.nginx 增加tcp ./configure --with-stream --with-pcre=../pcre-8.38 ./configure --with-stream --without-http_r 阅读全文
posted @ 2021-10-25 09:29 China Soft 阅读(512) 评论(0) 推荐(0) 编辑