# From the ZIP file

## Starting SonarQube <a href="#starting-sonarqube" id="starting-sonarqube"></a>

* **Linux**: Execute `<sonarqubeHome>/bin/linux-x86-64/sonar.sh start`
* **macOS**: Execute `<sonarqubeHome>/bin/macosx-universal-64/sonar.sh start`
* **Windows**: Execute `<sonarqubeHome>\bin\windows-x86-64\StartSonar.bat`

The "SonarQube is operational" message is displayed once the startup has successfully completed.

## Stopping SonarQube gracefully <a href="#stopping-gracefully" id="stopping-gracefully"></a>

* **Linux:** Execute `<sonarqubeHome>/bin/linux-x86-64/sonar.sh stop`
* **macOS:** Execute `<sonarqubeHome>/bin/macosx-universal-64/sonar.sh stop`
* **Windows:** There’s a similar `stop` functionality in the Windows script, but it might be a bit less explicit. You can often stop it by running `sonar.sh stop` from the command line.

Stop does a graceful shutdown where no new analysis report processing can start, but the tasks in progress are allowed to finish. The time a stop will take depends on the processing time of the tasks in progress.

## Hard-stopping SonarQube <a href="#hard-stopping" id="hard-stopping"></a>

* **Linux:** Execute `<sonarqubeHome>/bin/linux-x86-64/sonar.sh force-stop`
* **macOS:** Execute `<sonarqubeHome>/bin/macosx-universal-64/sonar.sh force-stop`
* **Windows:** A "force-stop" might not be directly available. Stopping the process via Windows Task Manager or similar tools could be considered a hard stop.

## Related pages <a href="#related-pages" id="related-pages"></a>

* [Running as a service](/sonarqube-server/2026.2/server-installation/from-zip-file/starting-stopping-server/running-as-a-service.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sonarsource.com/sonarqube-server/2026.2/server-installation/from-zip-file/starting-stopping-server/from-zip-file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
