udp的負(fù)載需要使用nginx的stream模塊,請(qǐng)實(shí)現(xiàn)檢查是否已經(jīng)安裝
具體配置文件:
udp的負(fù)載需要使用nginx的stream模塊,請(qǐng)實(shí)現(xiàn)檢查是否已經(jīng)安裝
具體配置文件:
# Load balance UDP-based DNS traffic across two servers
stream {
upstream dns_upstreams {
server 192.168.136.130:53;
server 192.168.136.131:53;
}
server {
listen 53 udp; #表明是udp
proxy_pass dns_upstreams;
proxy_timeout 1s;
proxy_responses 1;
error_log logs/dns.log;
}
}