Install and configure SonarQube in centos 6.5

Source: Internet
Author: User

Install and configure SonarQube in centos 6.5

1. Download the installation package:
Http://www.sonarqube.org/downloads/

2. Upload the server and decompress it:

Unzip sonarqube-5.6.zip-d/dir

3. Install MySQL and enter mysql

3.1 mysql-u root-p3.2 create a database and an account:
mysql> CREATE DATABASE sonar CHARACTER SET utf8 COLLATE utf8_general_ci; mysql> CREATE USER 'sonar' IDENTIFIED BY 'sonar';mysql> GRANT ALL ON sonar.* TO 'sonar'@'%' IDENTIFIED BY 'sonar';mysql> GRANT ALL ON sonar.* TO 'sonar'@'localhost' IDENTIFIED BY 'sonar';mysql> FLUSH PRIVILEGES;

4. Configure the sonar parameter to connect to the mysql vi/conf/sonar. properties file.

Remove comments and add:

 sonar.jdbc.url=jdbc:mysql://192.168.16.219:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformancesonar.jdbc.username=rootsonar.jdbc.password=rootsonar.sorceEncoding=UTF-8sonar.login=adminsonar.password=admin

5. Start the service directory and switch to

/Bin/linux-x86-64/directory to start the service

#./Sonar. sh start service #./sonar. sh stop Service #./sonar. sh restart service

Access http: \ ip: 9000

Tips: Sometimes, check whether iptables is blocked. You can use service iptables stop to check whether it is affected.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.