docker
docker 就是容器盒子(类)和class(镜像文件)的关系

如果本地没有,就去下载镜像最新, 把镜像拉下来然后放到一个容器上面

查看docker镜像的ip 后面才是完整版

docker的网络,桥接模式


docker 常见命令

kafka所有的脚本都存在于bin目录下

查看查看 test 主题的详情
[root@VM-24-2-centos kafka]# bin/kafka-topics.sh --list --bootstrap-server localhost:9092
[root@VM-24-2-centos kafka]# bin/kafka-topics.sh --list --bootstrap-server localhost:9092
__consumer_offsets
test1
test2
生产者
[root@VM-24-2-centos kafka]# bin/kafka-console-producer.sh --topic test1 --broker-list localhost:9092
>aaa
>hello world
>helo^Hl^H^H^H^H\^H
>hsllo^H
>hello kafka
消费者
[root@VM-24-2-centos kafka]# bin/kafka-console-producer.sh --topic test1 --broker-list localhost:9092
>aaa
>hello world
>helo^Hl^H^H^H^H\^H
>hsllo^H
>hello kafka

浙公网安备 33010602011771号