#vi sonar.properties
sonar.jdbc.username:                       sonar
sonar.jdbc.password:                       sonar
sonar.jdbc.url:                            jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true
# Optional properties
sonar.jdbc.driverClassName:                com.mysql.jdbc.Driver

???????sonar-runner?????????
?????л???sonar-runner???????£????sonar-runner.properties
???????????????????????????????

#Configure here general information about the environment?? such as SonarQube DB details for example
#No information about specific project should appear here
#----- Default SonarQube server
sonar.host.url=http://localhost:9000
#----- PostgreSQL
#sonar.jdbc.url=jdbc:postgresql://localhost/sonar
#----- MySQL
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8
#----- Oracle
#sonar.jdbc.url=jdbc:oracle:thin:@localhost/XE
#----- Microsoft SQLServer
#sonar.jdbc.url=jdbc:jtds:sqlserver://localhost/sonar;SelectMethod=Cursor
#----- Global database settings
sonar.jdbc.username=sonar
sonar.jdbc.password=sonar
#----- Default source code encoding
sonar.sourceEncoding=UTF-8
#----- Security (when 'sonar.forceAuthentication' is set to 'true')
sonar.login=admin
sonar.password=admin

????3.????????????
????????Oracle?????????????????????????????????????Щ????????????sonar???????????????
?????????Oracle????????????JDBC??????<install_directory>/extensions/jdbc-driver/oracle??
????4.???????
???????л???sonar??<install_directory>/bin/linux-x86-64/???????????
????#./sonar.sh start   ???????
????#./sonar.sh stop    ??????
????#./sonar.sh restart ???????
?????????sonar???????
????????http:\localhost:9000????
????5.sonar????????????
????????????
???????????????????????????http:\localhost:9000????sonar???????????????
??????????????????????????SONARQUBE_HOME/extensions/plugins???????????SonarQube????