nginx.conf 配置
stream {
error_log logs/dev-stream-error.log info;
# udp测试
server {
listen 8090 udp;
content_by_lua_block {
require('./app/pw_socket_udp_main.lua').run()
}
}
}
windows下, linux下运行nginx均报错:
nginx: [emerg] the invalid "udp" parameter in ./conf/nginx.conf:34
nginx: [emerg] invalid parameter "udp" in ./conf/nginx.conf:34
人都裂开了.请问是怎么回事啊, tcp的可以建立listen