官术网_书友最值得收藏!

Installing SonarQube on Windows

To install SonarQube on Windows, download the latest version, I got 6.2, from the website (https://www.sonarqube.org/downloads/). Unzip the contents of the zip file and put them somewhere. I simply unzipped the sonarqube-6.2 folder to C:\. Now, we need to hook up SonarQube to the database. This is actually exactly the same as in Linux. Open C:\sonarqube-6.2\conf\sonar.properties (or wherever you have unzipped it) and change sonar.jdbc.username= and sonar.jdbc.password= to sonar.jdbc.username=sonar and sonar.jdbc.password=sonar. After that, scroll further down the file and you will find the settings for PostgreSQL. The only thing you need to do is uncomment the line #sonar.jdbc.url=jdbc:postgresql://localhost/sonar by removing #.

Now, if you go to C:\sonarqube-6.2\bin\windows-x86-64 (replace Windows-x86-x64 with your own OS), you will find some .bat files. To start SonarQube, simply run StartSonar.bat; to install SonarQube as a service, run InstallNTService.bat (with administrative privileges); and to start the service, run StartNTService.bat (also with administrative privileges). Using a browser, browse to localhost:9000 and you should see SonarQube.

主站蜘蛛池模板: 图们市| 洛南县| 邵武市| 朝阳县| 和田市| 和平县| 隆安县| 通榆县| 舒城县| 洪湖市| 澎湖县| 永嘉县| 贵港市| 北宁市| 孟州市| 横山县| 泰顺县| 吴江市| 怀化市| 陆丰市| 咸阳市| 和政县| 阿荣旗| 永新县| 多伦县| 文水县| 呼和浩特市| 鹿邑县| 永福县| 聂荣县| 班戈县| 新乡市| 屯留县| 大厂| 雷山县| 鹤山市| 嘉兴市| 元氏县| 大化| 磐石市| 张家界市|