Centos7软件安装系列【十三】安装sonarqube-7.0

#安装
cd /home/software
unzip sonarqube-7.0.zip
cd sonarqube-7.0

vi conf/sonar.properties
sonar.web.port=19000

firewall-cmd --permanent --zone=public --add-port=19000/tcp
firewall-cmd --reload

vi bin/linux-x86-64/sonar.sh
RUN_AS_USER=sonar

su sonar
bin/linux-x86-64/sonar.sh start

#数据库配置
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;

#配置文件修改
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance

sonar.jdbc.username=sonar

sonar.jdbc.password=sonar

#访问
http://192.168.233.20:19000/
admin admin

 

你可能感兴趣的:(Centos软件安装系列)