跟http平级
stream {
upstream sqlserver {
server 192.168.1.110:1433 weight=1 max_fails=2 fail_timeout=120s;
}
server {
listen 9000;
proxy_connect_timeout 10s;
proxy_timeout 30s;
proxy_pass sqlserver;
}
}
2023-11-01 09:29:34
跟http平级
stream {
upstream sqlserver {
server 192.168.1.110:1433 weight=1 max_fails=2 fail_timeout=120s;
}
server {
listen 9000;
proxy_connect_timeout 10s;
proxy_timeout 30s;
proxy_pass sqlserver;
}
}