可对端口 日志等信息做一些修改
server.port=8080 debug=false # 设置session timeout为6小时 server.servlet.session.timeout=21600 spring.security.user.name=admin spring.security.user.password=admin spring.datasource.url=jdbc:mysql://127.0.0.1:3306/kafka_center?useUnicode=true&characterEncoding=utf-8 spring.datasource.username=root spring.datasource.password=123456 spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.type=com.zaxxer.hikari.HikariDataSource spring.datasource.hikari.minimum-idle=5 spring.datasource.hikari.maximum-pool-size=15 spring.datasource.hikari.pool-name=KafkaCenterHikariCP spring.datasource.hikari.max-lifetime =30000 spring.datasource.hikari.connection-test-query=SELECT 1 management.health.defaults.enabled=false public.url=http://localhost:8080 connect.url=http://localhost:8000/#/ system.topic.ttl.h=16 monitor.enable=true monitor.collect.period.minutes=5 monitor.elasticsearch.hosts=localhost:9200 monitor.elasticsearch.index=kafka_center_monitor #是否启用收集线程指定集群收集 monitor.collector.include.enable=false #收集线程指定location,必须属于remote.locations之中 monitor.collector.include.location=dev collect.topic.enable=true collect.topic.period.minutes=10 # remote的功能是为了提高lag查询和收集,解决跨location网络延迟问题 remote.query.enable=false remote.hosts=gqc@localhost2:8080 remote.locations=dev,gqc #发送consumer group的lag发送给alert service alert.enable=false alert.dispause=2 alert.service= alert.threshold=1000 alter.env=other #是否开启邮件功能,true:启用,false:禁用 mail.enable=false spring.mail.host= spring.mail.username=KafkaCenter@xaecbd.com # oauth2 generic.enabled=false generic.name=oauth2 Login generic.auth_url= generic.token_url= generic.redirect_utl= generic.api_url= generic.client_id= generic.client_secret= generic.scopes= 3、运行推荐使用docker
docker run -d -p 8080:8080 --name KafkaCenter -v ${PWD}/application.properties:/opt/app/kafka-center/config/application.properties xaecbd/kafka-center:2.1.0