简体   繁体   中英

.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

.\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".

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 .

When running on Windows, use those instead of the normal shell scripts. 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. Use those to run on windows environment like this.

Use kafka-server-start.bat and kafka-server-stop.bat for kafka cluster.

You can find more details. https://github.com/apache/kafka/tree/trunk/bin/windows

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM