在Windows上,Apache Kafka无法运行

后端开发 2026-07-11

我在Windows上尝试运行Apache Kafka,但遇到了问题。

我使用了

.\bin\windows\kafka-server-start.bat .\config\server.properties

但遇到了错误。系统找不到路径

C:\kafka>bin\windows\kafka-server-start.bat config\server.properties
DEPRECATED: A Log4j 1.x configuration file has been detected, which is no longer recommended.
To use a Log4j 2.x configuration, please see https://logging.apache.org/log4j/2.x/migrate-from-log4j1.html#Log4j2ConfigurationFormat for details about Log4j configuration file migration.
You can also use the C:\kafka/config/tool-log4j2.yaml file as a starting point. Make sure to remove the Log4j 1.x configuration after completing the migration.
The system cannot find the path specified.

解决方案

为什么不试试Docker Desktop和 Kafka镜像呢?它们很容易运行。

站内所有文章版权归属LeftHeroAI导航站,无授权禁止任何主体转载、抄袭、复制内容,亦不得私自架设镜像站点。一经侵权,本站将通过法律途径追责。

相关文章