标签:jdbc javascrip character shadow lin jdk1.8 pre ase text
一、概述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.rpm
yum -y install mysql-community-release-el7-5.noarch.rpm
查看当前可用的mysql安装资源
yum list
yum repolist enabled | grep "mysql.*-community.*"
mysql-connectors-community/x86_64 MySQL Connectors Community ? ? ? ? ? ? ? ? ?65
mysql-tools-community/x86_64 ? ? ?MySQL Tools Community ? ? ? ? ? ? ? ? ? ? ? 69
mysql56-community/x86_64 ? ? ? ? ?MySQL 5.6 Community Server ? ? ? ? ? ? ? ? 412
使用yum的方式安装MySQL
yum -y install mysql-community-server
启动mysql并设置开机启动
systemctl enable mysqld
systemctl start mysqld
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;
sonarqube安装及配置
1、JDK安装
mdkir /app/tools -p
tar -xvf jdk-8u181-linux-x64.tar.gz
chown -R root.root jdk1.8.0_181
cd /app/
mkdir jdk
cd jdk
mv /app/tools/jdk1.8.0_181 ./
2、JDK配置
vim /etc/profile
export JAVA_HOME=/app/jdk/jdk1.8.0_181
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
source /etc/profile
[root@qas-sonarqube-artifactory 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)
[root@qas-sonarqube-artifactory jdk1.8.0_181]# which java
/app/jdk/jdk1.8.0_181/bin/java
useradd -d /app/sonarqube -m sonarqube;echo "sonarqube" | passwd --stdin sonarqube
unzip sonarqube-6.7.5.zip -d /app/sonarqube
chown -R sonarqube.sonarqube *
grep -n ^[a-Z] /app/sonarqube/sonarqube-6.7.5/conf/sonar.properties
16:sonar.jdbc.username=sonar
17:sonar.jdbc.password=sonar
26:sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&useSSL=false
su - sonarqube
/app/sonarqube/sonarqube-6.7.5/bin/linux-x86-64/sonar.sh start
Starting 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=)
默认用户:admin 密码: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的汉化包
兼容列表如下:
![](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部署
标签:jdbc javascrip character shadow lin jdk1.8 pre ase text
原文地址:http://blog.51cto.com/10880347/2307044