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.解壓掠河,安裝
將下載的安裝包解壓到目標(biāo)目錄
3.配置
修改conf/sonar-scanner.properties文件:
sonar.host.url=http://localhost:9000 (之前安裝的sonar地址,sonar的安裝見http://www.reibang.com/p/5cf98c88c2ca)
4.檢驗(yàn)安裝狀態(tài)
./bin/sonar-scanner -h