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

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.

主站蜘蛛池模板: 资兴市| 承德县| 河南省| 南部县| 自贡市| 乡城县| 孝昌县| 漠河县| 娄烦县| 盘山县| 疏附县| 普定县| 宝丰县| 维西| 扶沟县| 辽阳市| 永宁县| 公安县| 苏尼特左旗| 钟祥市| 高清| 防城港市| 崇仁县| 涿鹿县| 含山县| 利辛县| 合川市| 宁城县| 罗江县| 尚义县| 铁岭市| 徐闻县| 五峰| 巩义市| 舞阳县| 绵阳市| 陕西省| 都匀市| 富宁县| 英德市| 渭源县|