Installing the SonarQube server from the ZIP file
First, check the requirements. Then follow these steps for your installation:
Download and unzip the distribution (do not unzip into a directory starting with a digit).
SonarQube cannot be run as
root on Unix-based systems, so create a dedicated user account for SonarQube if necessary.
<sonarqubeHome> (below) refers to the path to the directory where the SonarQube distribution has been unzipped.
<sonarqubeHome>/conf/sonar.properties to configure the database settings. Templates are available for every supported database. Just uncomment and configure the template you need and comment out the lines dedicated to H2:
Drivers for the supported databases (except Oracle) are already provided. Do not replace the provided drivers; they are the only ones supported.
For Oracle, copy the JDBC driver into
By default, Elasticsearch data is stored in
<sonarqubeHome>/data, but this is not recommended for production instances. Instead, you should store this data elsewhere, ideally in a dedicated volume with fast I/O. Beyond maintaining acceptable performance, doing so will also ease the upgrade of SonarQube.
<sonarqubeHome>/conf/sonar.properties to configure the following settings:
The user used to launch SonarQube must have read and write access to those directories.
By default, the scripts will use the Java executable available in the PATH. If there are multiple versions of Java installed on your server, you may need to explicitly define which version of Java is used.
It is possible to overwrite the default Java executable by setting the environmental variable
setx SONAR_JAVA_PATH "C:\Program Files\java_home\bin\java.exe"
Execute the following script to start the server:
- On Linux:
- On macOS:
- On Windows:
You can now browse SonarQube at http://localhost:9000 (the default system administrator credentials are
Once your server is installed and running, you're ready to begin analyzing source code.
© 2008-2023, SonarSource S.A, Switzerland. Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution-NonCommercial 3.0 United States License. SONARQUBE is a trademark of SonarSource SA. All other trademarks and copyrights are the property of their respective owners.