ubuntu 12.04中配置sonarqube5.0
来源:互联网 发布:淘宝钻展怎么开通 编辑:程序博客网 时间:2024/06/12 01:17
1 require: jdk , mysql
sudo apt-get install mysql-server
mysql -u root -p
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;
2. Edit <install_directory>/conf/sonar.properties to configure the database settings
#self jdbc default
sonar.jdbc.url=
sonar.web.host=IP地址
sonar.web.port=9000
sonar.web.context=/sonar
3. for better performance
<install_directory>/conf/wrapper.conf:
wrapper.java.additional.X=-server
4 add plugin folder
5. bin/<YOUR OS>/sonar.sh start
chmod u+x *.sh
chmod u+x wrapper
6. setup sonar-runner
editing <install_directory>/conf/sonar-runner.properties:
sonar.jdbc.url=
sonar.host.url=
7. environment runner
sudo gedit /etc/environment
:/home/XX/sonar/sonar-runner-2.4/bin
SONAR_RUNNER_HOME=/home/XX/sonar/sonar-runner-2.4
SONAR_RUNNER_OPTS="-Xmx512m -XX:MaxPermSize=128m"
ANDROID_HOME=/home/XX/edclipse/sdk
source /etc/environment
8. analyzing projects
Create a configuration file in the root directory of the project: sonar-project.properties
# Required metadata
sonar.projectKey=my:project
sonar.projectName=My project
sonar.projectVersion=1.0
sonar.sourceEncoding=UTF-8
sonar.my.property=value
sonar.scm.provider=git
sonar.sources=src
sonar.modules=XX,XX
9 sonar.skipPackageDesign=true
检测包设计结构指标
10. setup eclipse plugin
http://dist.sonar-ide.codehaus.org/eclipse
sudo apt-get install mysql-server
mysql -u root -p
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;
2. Edit <install_directory>/conf/sonar.properties to configure the database settings
#self jdbc default
sonar.jdbc.url=
sonar.web.host=IP地址
sonar.web.port=9000
sonar.web.context=/sonar
3. for better performance
<install_directory>/conf/wrapper.conf:
wrapper.java.additional.X=-server
4 add plugin folder
5. bin/<YOUR OS>/sonar.sh start
chmod u+x *.sh
chmod u+x wrapper
6. setup sonar-runner
editing <install_directory>/conf/sonar-runner.properties:
sonar.jdbc.url=
sonar.host.url=
7. environment runner
sudo gedit /etc/environment
:/home/XX/sonar/sonar-runner-2.4/bin
SONAR_RUNNER_HOME=/home/XX/sonar/sonar-runner-2.4
SONAR_RUNNER_OPTS="-Xmx512m -XX:MaxPermSize=128m"
ANDROID_HOME=/home/XX/edclipse/sdk
source /etc/environment
8. analyzing projects
Create a configuration file in the root directory of the project: sonar-project.properties
# Required metadata
sonar.projectKey=my:project
sonar.projectName=My project
sonar.projectVersion=1.0
sonar.sourceEncoding=UTF-8
sonar.my.property=value
sonar.scm.provider=git
sonar.sources=src
sonar.modules=XX,XX
9 sonar.skipPackageDesign=true
检测包设计结构指标
10. setup eclipse plugin
http://dist.sonar-ide.codehaus.org/eclipse
0 0
- ubuntu 12.04中配置sonarqube5.0
- ubuntu 12.04中安装配置svn服务器
- ubuntu中配置SSH
- ubuntu中sublime配置
- Ubuntu中配置OpenCV
- Ubuntu中配置Caffe
- Ubuntu中配置minicom
- ubuntu中vim配置
- ubuntu中配置tftp
- Ubuntu 中配置 yum
- ubuntu中配置caffe
- linux下安装sonarqube5.6.6
- linux下安装sonarqube5.6.6
- Ubuntu中配置java环境
- ubuntu中ftp服务器配置
- ubuntu中配置完美Vim
- ubuntu中Java安装配置
- ubuntu中安装配置tomcat
- ubuntu 常用快捷键
- lseek函数
- RAC 通过rman迁移至单实例
- MySQL 加锁处理分析
- hid触摸屏调试记录 Linux3.5 for Android
- ubuntu 12.04中配置sonarqube5.0
- 基本TCP套接字总结
- 天上思念的云
- Windows下用Nginx+Tomcat配置集群负载均衡
- 2588 欧拉函数的应用
- jquery的smartWizard插件使用方法
- 蓝牙编程介绍
- 算法学习-动态规划(最长公共子序列)
- Visual Studio添加整个目录到空项目中