5.1.1、yum安装mysql
https://www.cnblogs.com/brianzhu/p/8575243.html
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql-community-server
systemctl start mysqld.service
systemctl status mysqld.service
grep "password" /var/log/mysqld.log
mysql -uroot -p
ALTER USER 'root'@'localhost' IDENTIFIED BY 'new password';
create database sonar;

5.1.1、安装sonar
下载sonar压缩包: https://www.sonarqube.org/downloads/
yum install unzip
unzip sonarqube-6.7.4.zip
mkdir /ecapp/sonar
mv sonarqube-6.7.4/* /ecapp/sonar
useradd sonar 创建sonar用户,必须sonar用于启动,否则报错
chown -R sonar:sonar /ecapp/sonar 更改sonar
修改sonar配置文件
vi /ecapp/sonar/conf/sonar.properties
内容如下:
#mysql用户名
sonar.jdbc.username=root
#mysql密码
sonar.jdbc.password=Root@123
#jdbc连接mysql
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&useSSL=false
启动&停止
cd /ecapp/sonar
su sonar ./bin/linux-x86-64/sonar.sh start 启动
su sonar ./bin/linux-x86-64/sonar.sh status 查看状态
su sonar ./bin/linux-x86-64/sonar.sh stop 停止
tail -f logs/sonar.log查看日志
访问sonar
http://47.93.249.164:9000/
默认账户:admin/admin


eboss_sonarqube: 9a00a5af1959e38e65e1836fefa3e7a110935311
记下来 后面会用
5.1.1、sonar汉化列表
https://github.com/xuhuisheng/sonar-l10n-zh/releases/tag/sonar-l10n-zh-plugin-1.28
https://codechina.csdn.net/mirrors/sonarqubecommunity/sonar-l10n-zh/-/tree/master

sonar-l10n-zh-plugin-1.19.jar
这里用的6.7的sonar版本,所以汉化包用的为1.19,放到目录 ll /ecapp/sonar/extensions/plugins/下

