![](/img/trans.png)
[英]Is there a way to send emails in python without Windows asking you "How you want to open this file"?
[英].sh execution asking for “how you want to open this file” , not executing in cmd
我已经下载了kafka并尝试使用以下命令执行启动脚本
.\bin\kafka-server-start.sh
.\config\server.properties
在cmd提示符下,但脚本未执行,而是Windows抛出“您想如何打开此.sh文件”。
“设置关联”中的当前默认值为“未知应用程序”,无法弄清楚为什么不执行它。
bin/windows
目录中有所有脚本的Windows版本,请参阅https://github.com/apache/kafka/tree/trunk/bin/windows 。
在Windows上运行时,请使用这些脚本代替普通的Shell脚本。 在文档的“ 快速入门”部分的第一行中确实提到了这一点。
Kafka在<kafka dir>/bin/windows
目录中有单独的Windows环境批处理文件。 使用它们在这样的Windows环境中运行。
将kafka-server-start.bat
和kafka-server-stop.bat
用于kafka集群。
您可以找到更多详细信息。 https://github.com/apache/kafka/tree/trunk/bin/windows
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.