Centos7.5 Sonarqube+artifactory Deployment

Source: Internet
Author: User
Tags artifactory

I. Overview
SonarQube是一个用于代码质量管理的开源平台,用于管理源代码的质量通过插件形式可以支持包括java,C#,C/C++,PL/SQL,Cobol,JavaScrip,Groovy等等二十几种编程语言的代码质量管理与检测。``` #### mysql5.6安装及配置数据库centos自带的repo是不会自动更新每个软件的最新版本,所以无法通过yum方式安装MySQL的高级版本。安装mysql5姿势是要先安装带有可用的mysql5系列社区版资源的rpm包wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpmyum -y install mysql-community-release-el7-5.noarch.rpm查看当前可用的mysql安装资源yum listyum repolist enabled | grep "mysql.*-community.*"mysql-connectors-community/x86_64 MySQL Connectors Community ? ? ? ? ? ? ? ? ?65mysql-tools-community/x86_64 ? ? ?MySQL Tools Community ? ? ? ? ? ? ? ? ? ? ? 69mysql56-community/x86_64 ? ? ? ? ?MySQL 5.6 Community Server ? ? ? ? ? ? ? ? 412使用yum的方式安装MySQLyum -y install mysql-community-server启动mysql并设置开机启动systemctl enable mysqldsystemctl start mysqld
Mysql-uroot-p New Database Sonar

CREATE DATABASE sonar CHARACTER SET UTF8 COLLATE utf8_general_ci;

New user sonar and set password sonar

CREATE USER ' sonar ' identified by ' sonar ';

Authorized

GRANT all on Sonar. To ' sonar ' @ '% ' of ' identified by ' sonar ';
GRANT all on Sonar.
To ' sonar ' @ ' localhost ' identified by ' sonar ';
FLUSH privileges;

Sonarqube installation and configuration 1, JDK installation mdkir/app/tools-ptar-xvf jdk-8u181-linux-x64.tar.gz chown-r root.root jdk1.8.0_181cd/app/ mkdir jdkcd jdkmv/app/tools/jdk1.8.0_181./2, JDK configuration Vim/etc/profileexport java_home=/app/jdk/jdk1.8.0_181export Classpath=.: $JAVA _home/jre/lib/rt.jar: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jarexport path= $PATH: $JAVA _ Home/binsource/etc/profile[[email protected] jdk1.8.0_181]# java-version java version "1.8.0_181" Java (TM) SE Runtime Environment (build 1.8.0_181-b13) Java HotSpot (TM) 64-bit Server VM (build 25.181-b13, Mixed mode) [[Email pro Tected] jdk1.8.0_181]# which java/app/jdk/jdk1.8.0_181/bin/javauseradd-d/app/sonarqube-m sonarqube;echo "Sonarqube" | passwd--stdin sonarqubeunzip sonarqube-6.7.5.zip-d/app/sonarqubechown-r sonarqube.sonarqube *grep-n ^[a-Z]/app/sona Rqube/sonarqube-6.7.5/conf/sonar.properties 16:sonar.jdbc.username=sonar17:sonar.jdbc.password=sonar26: Sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useunicode=true&characterencoding=utf8&rewritebatchedstatements=true&useconfigs=maxperformance&usessl=falsesu-sonarqube/app/ sonarqube/sonarqube-6.7.5/bin/linux-x86-64/sonar.sh startstarting Sonarqube ... Started sonarqube.http://172.16.8.253:9000! [] (http://i2.51cto.com/images/blog/201810/21/23b4634dee73e4adf72578eb063a6d38.png?x-oss-process=image/ watermark,size_16,text_qduxq1rp5y2a5a6i,color_ffffff,t_100,g_se,x_10,y_10,shadow_90,type_zmfuz3pozw5nagvpdgk=) Default User: admin password: admin! [] (http://i2.51cto.com/images/blog/201810/21/bab7d4930d0b37e8e0b08d26ea4cc425.png?x-oss-process=image/ watermark,size_16,text_qduxq1rp5y2a5a6i,color_ffffff,t_100,g_se,x_10,y_10,shadow_90,type_zmfuz3pozw5nagvpdgk=) ! [] (http://i2.51cto.com/images/blog/201810/21/fdde9754087219fa7672e2bd537d4048.png?x-oss-process=image/ watermark,size_16,text_qduxq1rp5y2a5a6i,color_ffffff,t_100,g_se,x_10,y_10,shadow_90,type_zmfuz3pozw5nagvpdgk=) Sonarqube's Chinese package Compatibility List is as follows:! [] (Http://i2.51cto.com/images/blog/201810/21/2bceefd7d9250d250420afc60eb74d8d.png?x-oss-procEss=image/watermark,size_16,text_qduxq1rp5y2a5a6i,color_ffffff,t_100,g_se,x_10,y_10,shadow_90,type_ zmfuz3pozw5nagvpdgk=)

Centos7.5 Sonarqube+artifactory Deployment

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.