Sonar Qube安装

下载地址:https://www.sonarqube.org/downloads/

 

 

注意:sonarqube-7.9.1发现需要jdk11,怀疑7.9以后都需要要jdk11版本

 

因为我用的是jdk1.8

所以我下载的是:https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-7.8.zip

1.解压

2.到解压目录的bin\windows-x86-64(我的是64位的)目录下

3.双击StartSonar.bat文件 启动SonarQube

4. 到浏览器界面,输入 : http://localhost:9000 // 能够进入界面证明安装成功

5.登录默认是admin/admin

6.设置数据库

修改配置文件:

conf/sonar.properties在msyql节点增加以下配置

sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&useSSL=false
sonar.jdbc.username=root
sonar.jdbc.password=root
sonar.sorceEncoding=UTF-8

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章