Tuesday, February 3, 2015

SonarQube Install

SonarQube (previously known as "Sonar") Install

SonarQube (previously known as "Sonar")

  • Download and extract the latest sonarqube.zip http://dist.sonar.codehaus.org/sonarqube-x.x.zip.
  • Edit <install_directory>/conf/sonar.properties to configure the database settings.
Say DB available for sonar is mysql then
sonar.jdbc.username=sonaruser
sonar.jdbc.password=sonarpwd
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar
[Better to uncomment above lines in the default sonar.properties file] 
More advance features (as host, port, context, java options, proxy...) can be edited in this files.
  • To start sonarqube on windows 64bit(choose the folder according to your OS).
C:>"<install_directory>\bin\windows-x86-64\StartSonar.bat" 
  • Install sonarqube as service.
C:>"<install_directory>\bin\windows-x86-64\InstallNTService.bat"
  • Start sonarqube service
C:>"<install_directory>\bin\windows-x86-64\StartNTService.bat"

Troubleshooting

  • I service does not start then
  • Open windows services (Window+R > Type services + Enter) and go to SonarQube.
  • Open properties > Log On > This account > provide the admin user details for the system.

No comments:

Post a Comment