openresty增加tcp端口转发 1.配置文件nginx.conf 增加stream模块 stream { include /etc/nginx/conf.d/stream/*.conf; } 2.在nginx/conf/目录下创建个stream文件夹 新增个10000.conf配置文件 server { listen 10000; proxy_pass data_tcp; upstream data_tcp { server 10.10.10.2:10000; }