@echo off setlocal enabledelayedexpansion chcp 65001 >nul title RocketMQ Topic Initialization :: BROKER_NAME set "BROKER_NAME=broker-a" :: 集群名称 set "CLUSTER_NAME=DefaultCluster" echo. echo [INFO] 正在创建普通主题 for %%t in ( "rt-efficiency-index" "scenario-content-publish" "scenario-content-subscribe" "scenario-factor-publish" "scenario-factor-subscribe" "simulation-command" "simulation-engine" "simulation-running-control-percent" "simulation-running-control-sse" "simulation-task-feedback" "simulation-task-publish" "simulation-trainExRl" ) do ( echo [INFO] 创建普通主题: %%~t curl -X POST ^ http://localhost:8088/topic/createOrUpdate.do ^ -H "Content-Type: application/json" ^ -d "{\"writeQueueNums\":8,\"readQueueNums\":8,\"perm\":6,\"order\":false,\"topicName\":\"%%~t\",\"brokerNameList\":[\"%BROKER_NAME%\"],\"messageType\":\"NORMAL\",\"clusterNameList\":[\"%CLUSTER_NAME%\"]}" echo. ) echo 所有主题创建完成! pause exit /b 0