Configure SonarQube
After installation, the next job is to point SonarQube at PostgreSQL and start the service cleanly.
Update the Database Settings
Edit the main configuration file:
sudo nano /opt/sonarqube/conf/sonar.properties
Add or update these values:
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 the status:
sudo -u sonar ./sonar.sh status
Access the UI
Open:
http://your-server-ip:9000
Default credentials:
- Username:
admin - Password:
admin
Practical Advice
- Change the default password immediately
- Run SonarQube as a service for long-term use
- Keep database credentials out of screenshots and shared notes
Quick Check
curl http://localhost:9000
Official guide: Install the Server