Wed. Jul 22nd, 2026

java

kafka 常用查看命令

查看topic bin/kafka-topics.sh \ --zookeeper emr-header-1:2181,emr-header-2:2181,emr-header-3:2181/kafka-1.0.1 \ --list 查看kafka的topic详细信息 bin/kafka-topics.sh \ --zookeeper emr-header-1:2181,emr-header-2:2181,emr-header-3:2181/kafka-1.0.1 \ --topic T1…

解决intellij idea控制台中文乱码

第一步:修改intellij idea配置文件: 找到intellij idea安装目录,bin文件夹下面idea64.exe.vmoptions和idea.exe.vmoptions这两个文件,分别在这两个文件中添加:-Dfile.encoding=UTF-8 第二步:找到intellij idea的file—settings—Editor—FileEncodings的GlobalEncoding和ProjectEncoding和Default encoding for properties都配置成UTF-8 第三步:在部署Tomcat的VM options项中添加:-Dfile.encoding=UTF-8 第四步:重启Intellij idea即可解决乱码问题 如果是java 运行程序,…

命令行登录harbor

命令行登录harbor 1.1 需先修改配置文件并重启docker vim /etc/docker/daemon.json,设置insecure-registries指定的IP为harbor私有仓库的地址,这里主要是告知客户端要连接http而不是https { "insecure-registries": , "registry-mirrors": } 重启docker systemctl daemon-reload systemctl restart…