Posts

Showing posts from October, 2015

How to install sonar runner in unbuntu.

Create database and user: CREATE DATABASE sonar CHARACTER SET utf8 COLLATE utf8_general_ci; CREATE USER 'sonar' IDENTIFIED BY 'sonar'; GRANT ALL ON sonar.* TO 'sonar'@'%' IDENTIFIED BY 'sonar'; GRANT ALL ON sonar.* TO 'sonar'@'localhost' IDENTIFIED BY 'sonar'; FLUSH PRIVILEGES;   Download and unzip Sonar distribution: wget http://dist.sonar.codehaus.org/sonarqube- 5.1 .zip unzip sonarqube- 5.1 .zip mv sonarqube- 5.1 /opt/sonar   Edit sonar.properties: Open /opt/sonar/conf/sonar.properties with your favourite text editor, and modify it. MySQL settings: sonar.jdbc.username=sonar sonar.jdbc.password=sonar sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance Web Server settings: sonar.web.host= 127.0.0.1 sonar.web.port=9000   Implement Sonar server as a service: sudo cp bin/linux-x86- 64 /sonar.sh /...