Skip to content

SonarQube Configuration


Configure Database Connection

Edit the configuration file:

sudo nano /opt/sonarqube/conf/sonar.properties

Add/replace these lines:

sonar.jdbc.username=sonar
sonar.jdbc.password=sonar
sonar.jdbc.url=jdbc:postgresql://localhost:5432/sonar

Start SonarQube

cd /opt/sonarqube/bin/linux-x86-64
sudo -u sonar ./sonar.sh start

Check status:

sudo -u sonar ./sonar.sh status

Access SonarQube at: http://your-server-ip:9000

Default credentials:

  • Username: admin
  • Password: admin

Tip: For production, set up as a systemd service.

Official Guide: Install the Server