简体   繁体   English

.sh执行询问“您想如何打开此文件”,而不是在cmd中执行

[英].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.batkafka-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.

相关问题 有没有办法在 python 中发送电子邮件而 Windows 询问您“您想如何打开此文件”? - Is there a way to send emails in python without Windows asking you "How you want to open this file"? 如何显示一个消息框询问用户是否真的要退出 cmd 窗口? - How to display a message box asking if user really want to exit the cmd window? 如何在cmd中使用默认应用程序打开文件? - How to open file with default application in cmd? 如何在运行中打开 python 文件的 cmd - How to open cmd of python file now on the run Windows powershell AWSCLI 退出并提示“您想如何打开此文件” - Windows powershell AWSCLI exits with prompt 'How do you want to open this file' 在 PowerShell 上运行 npm 询问“你想如何打开这个文件?”,命令行很好 - Running npm on PowerShell asks "How do you want to open this file?", command line is fine 从“你想如何打开这个 x 文件”窗口中获取文本? - Get text from “How do you want to open this x file” -window? 使用python 2.7 for Windows执行sh文件 - using python 2.7 for windows executing an sh file 如何用硒打开Cmd? - How to open Cmd with selenium? 如何使用 Windows 终端 Ubuntu 打开 .sh 或 .bash 文件? - How do you make .sh or .bash files open with Windows Terminal Ubuntu?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM