DEV Community

Shivani Sharma
Shivani Sharma

Posted on

SonarQube setup on macOS (part 1)

Install SonarQube from
https://www.sonarqube.org/downloads/

You can unzip sonarqube-8.6.0.39681 or whatever version you have downloaded.

Once unzipped, move to macosx-universal-64 using command:
cd Downloads/sonarqube-8.6.0.39681/bin/macosx-universal-64

To Start SonarQube:
./sonar.sh start

once sonarqube is started you can see message:
Starting SonarQube...
Started SonarQube.

You can check if sonarqube is running or not using :
./sonar.sh status

SonarQube is running (1731).

Open a browser and check port 9000
http://localhost:9000/

In order to change the default 9000 port, you can move to conf folder where you can see a file sonar.properties, where default port 9000 can be changed.

To Stop SonarQube:
./sonar.sh stop

Prerequisite for sonarqube:

If not installed previously, please install Java 11.
https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html

In case of issues like Error as “wrapper” cannot be opened because the developer cannot be verified
Please check the solution provided here

Part 2: https://dev.to/shivani15sharma/running-sonarqube-to-check-javascript-code-part-2-730

Top comments (0)