【发布时间】:2018-12-22 11:24:22
【问题描述】:
想用nginx-1.13.12在windows平台上传输UDP报文包,但是不行。当我启动 nginx 时,它在 /logs/error.log 中显示错误。详细信息是 [emerg] 13404#13956:D:\soft_install\nginx-1.13.12/conf/nginx.conf:26 中的“udp”参数无效
流动的是我的 nginx.conf 文件。 我想知道nginx是否可以在windows中传输udp包。
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
stream {
log_format main '$remote_addr - [$time_local] "';
upstream dns {
server 223.3.71.149:5801 weight=2;
server 223.3.71.149:5802 weight=3;
}
server {
listen 5800 udp;
proxy_responses 1;
proxy_timeout 10s;
proxy_pass dns;
access_log logs/access_dns.log main;
error_log logs/error_dns.log;
}
}
【问题讨论】: