50-20-010-kafka 配置-Listeners

1.视界

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-md5tlsDU-1609940180535)(./00-kafka-image/image-20191019180730599.png)]

server.properties配置

############################# Socket Server Settings #############################

# The address the socket server listens on. It will get the value returned from 
# java.net.InetAddress.getCanonicalHostName() if not configured.
# Kafka Server使用的协议、主机名以及端口的格式如下:
#   FORMAT:
#     listeners = listener_name://host_name:port
#   EXAMPLE:
#     listeners = PLAINTEXT://your.host.name:9092
# 这是默认配置,使用PLAINTEXT,端口是9092
#listeners=PLAINTEXT://:9092


# Hostname and port the broker will advertise to producers and consumers. If not set, 
# it uses 

猜你喜欢

转载自blog.csdn.net/qq_21383435/article/details/112298440