kafka默认端口号:9092 改成 19092bootstrap
端口号能够被任意修改。若是端口号设置为小于1024,那么kafka须要以root身份启动。server
config下kafka
一、service.properties port = 19092 不指定的话,按照默认9092class
二、connect-distributed.properties bootstrap.servers=localhost:19092service
三、producer.properties bootstrap.servers=localhost:19092端口
四、connect-standalone.properties bootstrap.servers=localhost:19092di
五、consumer.properties bootstrap.servers=localhost:19092vi