簡體   English   中英

.sh執行詢問“您想如何打開此文件”,而不是在cmd中執行

[英].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.batkafka-server-stop.bat用於kafka集群。

您可以找到更多詳細信息。 https://github.com/apache/kafka/tree/trunk/bin/windows

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM