![](/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.