安装依赖模块
yum install nginx-mod-stream
配置转发
# 与http区块平级 stream { upstream redis_6383 { server 127.0.0.1:6383; } server { listen 6386; proxy_pass redis_6383; } }
yum install nginx-mod-stream
# 与http区块平级 stream { upstream redis_6383 { server 127.0.0.1:6383; } server { listen 6386; proxy_pass redis_6383; } }