sonar之安装篇
sonar 是一个很好的质量度量平台,安装方式有很多种。下面我教大家使用j2ee 容器的方式安装,我们使用tomcat
1.准备:
1.1 环境redhat linux
1.2 下载sonar 从http://www.sonarsource.org/
1.3 安装mysql,一般系统自带的就可以,直接使用service mysql start 即可启动
1.4 需要jdk1.6 的版本
1.5 下载tomcat,从tomcat.apache.org,版本6.0 系列
2. 安装
2.1首先建一个目录:mkdir /soft
2.2 cp sonar$version.zip /soft
2.3 cp tomcat$version.zip /soft
2.4 解压sonar 和tomcat 使用unzip 命令
2.5 cd /soft/sonar$vesion
2.6 修改 conf/sonar.properties 如下
- # The schema must be created first.
- sonar.jdbc.username: sonar
- sonar.jdbc.password: sonar
- #----- MySQL 5.x/6.x
- # Comment the embedded database and uncomment the following line to
- use MySQL
- sonar.jdbc.url: jdbc:mysql://localhost:3306/sonar?user=sonar&password=sonar&useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true
- # Optional properties
- sonar.jdbc.driverClassName: com.mysql.jdbc.Driver
- sonar.jdbc.validationQuery: select 1
2.7 在mysql 里创建数据库sonar,及其使用sonar,sonar 用户名和密码访问授权操作,命令如下:
- mysql
- mysql>create database sonar;
- mysql>grant all on *.* to sonar@'localhost' identified by 'sonar';
- mysql>grant all on *.* to sonar@'%' identified by 'sonar';
- mysql>flush privileges;
2.8 build sonar 的war 包,修改文件 /soft/sonar$version/war/sonar-server/WEB-INF/classes/sonar-war.properties
SONAR_HOME=/soft/sonar$version (即sonar 的解压目录)
cd /soft/sonar$version/war
sh ./build-war.sh
2.9 复制 sonar.war 到tomcat/webapps/
2.10 修改tomcat 参数,修改$tomcat_home/bin/catalina.sh, 添加如下
CATALINA_OPTS="-Xmx1024m -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -XX:MaxPermSize=256m"
2.11 启动tomcat,cd $tomcat_home/bin; sh ./startup.sh
3. 访问sonar:htt://localhost:8080/sonar ,使用admin,admin 即可登录
更多资料关注:www.kootest.com ;技术交流群:182526995
sonar之安装篇的更多相关文章
- k8s入门系列之扩展组件(一)DNS安装篇
DNS (domain name system),提供域名解析服务,解决了难于记忆的IP地址问题,以更人性可读可记忆可标识的方式映射对应IP地址. Cluster DNS扩展插件用于支持k8s集群系统 ...
- Linux负载均衡软件LVS之二(安装篇)[转]
Linux负载均衡软件LVS之二(安装篇) 2011-04-26 16:01:47 标签:lvs安装配置 linux lvs 休闲 linux高可用 原创作品,允许转载,转载时请务必以超链接形式标明文 ...
- 开源文档管理系统LogicalDOC测试报告---安装篇
开源文档管理系统LogicalDOC测试报告---安装篇 分类: Linux2011-06-22 15:40 7436人阅读 评论(3) 收藏 举报 文档管理测试mysql数据库installerja ...
- MongoDB安装篇-Win7 X64
介绍 MongoDB是一个基于分布式文件存储的数据库.由C++语言编写.旨在为WEB应用提供可扩展的高性能数据存储解决方案. MongoDB是一个介于关系数据库和非关系数据库之间的产品,是非关系数据库 ...
- Flow简易教程——安装篇
.mydoc_h1{ margin: 0 0 1em; } .mydoc_h1_a{ color: #2c3e50; text-decoration: none; font-size: 2em; } ...
- Ubuntu 16.04 RabbitMq 安装与运行(安装篇)
Ubuntu 16.04 RabbitMq 安装与运行(安装篇) 2018年08月15日 15:05:24 我跟吴彦祖四六开 阅读数:1966 前言 目前公司用阿里云 + redis 的方式实现的 ...
- git在工作中的用法总结-环境安装篇
使用git有很长一段时间了 ,平时用到的时候都是直接google,经常用到的一些也记录在笔记中,但有时候笔记太多,实在是太乱了(其实是我太懒~ 哈?),找都要半天的时候还不如直接google,今天有空 ...
- rabbitmq学习(一) —— 安装篇
安装篇之windows: 略(楼主在windows上安装基本就是按部就班的没遇到什么坑) 安装篇值centos7: 主要记录下centos7下的安装,因为在该系统下安装稍微折腾了下 参考https:/ ...
- OracleDesigner学习笔记1――安装篇
OracleDesigner学习笔记1――安装篇 QQ:King MSN:qiutianwh@msn.com Email:qqking@gmail.com 一. 前言 Oracle是当 ...
随机推荐
- 文件/图片,批量上传【神器】--WebUploader
<system.web> <httpRuntime maxRequestLength="102400" executionTimeout="720&qu ...
- xcode7 app loader error itms 90168
. $ cd ~/.itmstransporter . $ rm update_check* . $ mv softwaresupport softwaresupport.bak . $ ...
- VS2008的默认打开重置为VS2008
- 动态内存 this指针
#include <iostream> #include <string> class Company { public: Company(std::string theNam ...
- CQRS学习——Dpfb以及其他[引]
[Dpfb的起名源自:Ddd Project For Beginer,这个Beginer自然就是博主我自己了.请大家在知晓这是一个入门项目的事实上,怀着对入门者表示理解的心情阅读本系列.不胜感激.] ...
- easyui DateTimeBox 取值
$('#dt').datetimebox('getValue')
- uva 147
一个简单的dp 面值是5的倍数 将面值都除5 因为输出问题wa .... #include <iostream> #include <cstring> #includ ...
- WAF SSI
http://www.2cto.com/Article/201405/299154.html
- 基于web的项目管理软件Redmine
Redmine是用Ruby开发的基于web的项目管理软件,是用ROR框架开发的一套跨平台项目管理系统,据说是源于Basecamp的ror版而来, 支持多种数据库,有不少自己独特的功能,例如提供wiki ...
- node.js EventEmitter发送和接收事件
EventEmitter是nodejs核心的一部分.很多nodejs对象继承自EventEmitter,用来处理事件,及回调.api文档地址: http://nodejs.org/api/events ...