转自:
https://www.cnblogs.com/JoePotter/p/14633345.html
stream{ upstream sqlserver{ server 172.16.102.8:1433 weight=1 max_fails=2 fail_timeout=30s; } server{ listen 60073; proxy_connect_timeout 1s; proxy_timeout 3s; proxy_pass sqlserver; } }
注意 stream 段加在 event 或者 http 同级别的段.
有任何需要沟通交流的联系QQ群:276483863 加好友备注【博客园技术交流】