windows下成功使用sonar,踩了很多坑 | 您所在的位置:网站首页 › 协议版本4属性打开闪退 › windows下成功使用sonar,踩了很多坑 |
1.下载sonarqube-7.8
官网下载:Download | SonarQube 选择版本最好根据mysql版本来,我下载的是社区版,如果是开发者版或者企业版会报错 百度网盘地址永久有效:链接:https://pan.baidu.com/s/1F9JOB0kXV6ZKK1Nt34MUYQ 提取码:gzpm 3.配置信息配置sonarqube,在sonarqube解压目录下conf下打开sonar.properties加入下面配置 sonar.jdbc.username=root sonar.jdbc.password=123456 sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&useSSL=false sonar.web.port=9000配置sonar-scanner,在解压目录conf下sonar-scanner.properties编辑加以下配置信息 #Configure here general information about the environment, such as SonarQube server connection details for example #No information about specific project should appear here #----- Default SonarQube server #sonar.host.url=http://localhost:9000 #----- Default source code encoding #sonar.sourceEncoding=UTF-8 sonar.jdbc.username=root sonar.jdbc.password=123456 sonar.jdbc.url=jdbc:mysql://127.0.0.1:3306/sonar?useUnicode=true&characterEncoding=utf8 然后配置环境变量在电脑-环境变量高级-Path加入D:\env\sonar\sonar-scanner-4.7.0.2747-windows\bin,然后查看版本信息sonar-scanner -v 4.1.在sonarqube解压目录bin目录下找到StartSonar.bat双击启动,如果闪退可能是版本太高或者mysql版本太低,还可以打开任务管理结束掉java进程,直接的方式重启电脑,前提先检查配置没问题! ![]() 4.2.访问管理页面localhost:9000,用户名和密码admin 4.3.创建新工程,点击右上角加号
查看bug
|
CopyRight 2018-2019 实验室设备网 版权所有 |