[英].sh execution asking for “how you want to open this file” , not executing in cmd
I have downloaded kafka and trying to execute the start script using 我已经下载了kafka并尝试使用以下命令执行启动脚本
.\bin\kafka-server-start.sh
.\config\server.properties
in cmd prompt, but the script is not executing ,instead windows is throwing "How do you want to open this .sh file". 在cmd提示符下,但脚本未执行,而是Windows抛出“您想如何打开此.sh文件”。
The current default in "Set Assosiations" is "unknown application", not able to figure out why it is not executed. “设置关联”中的当前默认值为“未知应用程序”,无法弄清楚为什么不执行它。
There are Windows versions of all the scripts in the bin/windows
directory, see https://github.com/apache/kafka/tree/trunk/bin/windows . bin/windows
目录中有所有脚本的Windows版本,请参阅https://github.com/apache/kafka/tree/trunk/bin/windows 。
When running on Windows, use those instead of the normal shell scripts. 在Windows上运行时,请使用这些脚本代替普通的Shell脚本。 This is mentioned literally in the first line of the Quick Start section in the docs.
在文档的“ 快速入门”部分的第一行中确实提到了这一点。
Kafka has seperate batch files for windows environment in <kafka dir>/bin/windows
directory. Kafka在
<kafka dir>/bin/windows
目录中有单独的Windows环境批处理文件。 Use those to run on windows environment like this. 使用它们在这样的Windows环境中运行。
Use kafka-server-start.bat
and kafka-server-stop.bat
for kafka cluster. 将
kafka-server-start.bat
和kafka-server-stop.bat
用于kafka集群。
You can find more details. 您可以找到更多详细信息。 https://github.com/apache/kafka/tree/trunk/bin/windows
https://github.com/apache/kafka/tree/trunk/bin/windows
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.