kafka---->nginx代理配置
kafka消费者传递数据是通过tcp
stream {
include /usr/local/nginx/conf/stream/*.stream;
}
vi /usr/local/nginx/conf/stream/hdp.stream
upstream kafka {
hash $remote_addr consistent;
server 10.133.0.144:9092;
}
server {
listen 19092;
proxy_pass kafka;
}
本文来自博客园,作者:zk01,转载请注明原文链接:https://www.cnblogs.com/zhangxiaokui/p/16171196.html