kafka默認端口號:9092 改為 19092
端口號可以被任意修改。如果端口號設置為小於1024,那么kafka需要以root身份啟動。
config下
1、service.properties port = 19092 不指定的話,按照默認9092
2、connect-distributed.properties bootstrap.servers=localhost:19092
3、producer.properties bootstrap.servers=localhost:19092
4、connect-standalone.properties bootstrap.servers=localhost:19092
5、consumer.properties bootstrap.servers=localhost:19092