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

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.

主站蜘蛛池模板: 新乡市| 靖宇县| 临洮县| 铜山县| 辛集市| 水城县| 白山市| 汕头市| 双柏县| 巨野县| 大庆市| 信阳市| 鲜城| 涪陵区| 都兰县| 高清| 扎赉特旗| 申扎县| 右玉县| 图片| 鄂托克前旗| 德昌县| 合阳县| 赤水市| 淳化县| 永和县| 广平县| 毕节市| 永清县| 集贤县| 银川市| 仙游县| 汝州市| 淳化县| 崇仁县| 开阳县| 稷山县| 邳州市| 蒙阴县| 霞浦县| 禄劝|