Nginx配置udp/tcp代理


 

#编译
./configure --prefix=/servyouapp/nginx  --with-stream  --with-http_stub_status_module

#nginx.conf部分配置 stream { upstream backend { server 10.7.2.86:1521; } server { listen 8686; proxy_connect_timeout 8s; proxy_timeout 24h;  #代理超时 proxy_pass backend; } }


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM