diff --git a/kafka/operation.md b/kafka/operation.md index 3a399cf..fdfefc9 100644 --- a/kafka/operation.md +++ b/kafka/operation.md @@ -2,7 +2,7 @@ title: 基本操作 description: published: true -date: 2022-01-20T03:45:31.873Z +date: 2022-01-20T13:13:08.033Z tags: kafka editor: markdown dateCreated: 2022-01-20T03:45:31.873Z @@ -12,6 +12,12 @@ dateCreated: 2022-01-20T03:45:31.873Z 进入 bin 目录 -``` +```bash $ ./kafka-topics.sh --bootstrap-server localhost:9092 --list +``` + +# 删除主题 + +```bash +$ ./kafka-topics.sh --bootstrap-server localhost:9092 --delete --topic deleteTopic ``` \ No newline at end of file