Ubuntu高手进阶

Ubuntu 18.0.4 SonarQube-6.7.x 安装

2020-02-21  本文已影响0人  Lrxc

安装环境及版本:

一 下载sonar

  1. 官网地址:https://www.sonarqube.org/downloads/

二 上传至Ubuntu

//解压
unzip sonarqube-6.7.7.zip
//移动目录
mv sonarqube-6.7.7 /usr/local/sonar

三 数据库配置

mysql> CREATE DATABASE sonar CHARACTER SET utf8 COLLATE utf8_general_ci;
Query OK, 1 row affected (0.00 sec)
mysql> CREATE USER 'sonar' IDENTIFIED BY '123456'; 
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL ON sonar.* TO 'sonar'@'%' IDENTIFIED BY '123456';
Query OK, 0 rows affected, 1 warning (0.01 sec)

mysql> GRANT ALL ON sonar.* TO 'sonar'@'localhost' IDENTIFIED BY '123456';
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&useSSL=false
sonar.jdbc.username=sonar
sonar.jdbc.password=123456

四 启动

//新建用户
useradd sonar
//赋权
chown -R sonar.sonar /usr/local/sonar
//修改密码
passwd sonar
//切换到sonar用户
su sonar
./bin/linux-x86-64/sonar.sh console

五 登录系统

参考:
https://blog.csdn.net/weixin_43931358/article/details/102666710
https://blog.csdn.net/ToFate_/article/details/86007770

上一篇 下一篇

猜你喜欢

热点阅读