linux 下sonar-scanner的安装

1.下载sonar-scanner安装包

地址:https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner

我选的是linux-64位的:https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.0.3.778-linux.zip

2.解压,安装

将下载的安装包解压到目标目录

3.配置

修改conf/sonar-scanner.properties文件:

sonar.host.url=http://localhost:9000 (之前安装的sonar地址,sonar的安装见http://www.jianshu.com/p/5cf98c88c2ca)

4.检验安装状态

./bin/sonar-scanner -h

推荐阅读更多精彩内容