安装stream模块

  1. ./configure 现有参数 --with-stream


后续与升级更新步骤一致

设置stream模块

  1. stream{
  2. server {
  3. listen 465;
  4. proxy_pass smtp.exmail.qq.com:465;
  5. }
  6. }
  1. upstream dns {
  2. server 192.168.0.1:53535;
  3. server dns.example.com:53;
  4. }
  5. server {
  6. listen 3690;
  7. proxy_pass dns;
  8. }