搭建JIRA环境(试用JIRA)

主要如下:见http://ldbjakyo.iteye.com/blog/916392
            http://blog.sina.com.cn/s/blog_465f50b90100ikcr.html
我安装版本为4.2.2
使用以下授权码安装成功
Description=JIRA\: COMMERCIAL
CreationDate=2009-10-25
[email protected]
jira.LicenseEdition=ENTERPRISE
[email protected]
Evaluation=false
jira.LicenseTypeName=COMMERCIAL
jira.active=true
licenseVersion=2
MaintenanceExpiryDate=2099-10-24
Organisation=haha
jira.NumberOfUsers=-1
ServerID=B6FW-B4KW-J1A3-4DQB
LicenseID=LID
LicenseExpiryDate=2099-10-24

以下备份:
文章分类:Java编程
一.安装

1.安装MYSQL,

----
首先去www.mysql.com上下载最新的免安装压缩包,然后解压到某目录,这里我假设解压到D:\java\Database\MySql5目录。



然后找到该目录下的my-small.ini文件(或者my-medium.ini也可),另存为my.ini。



接下来,打开my.ini,根据自己需要进行一些修改。下面列举我本次进行的修改:


追加写入

default-character-set=utf8
character-set-server=utf8
basedir=D:\\mysql\\mysql-5.5.9-win32
datadir=D:\\mysql\\mysql-5.5.9-win32\\data 

[WinMySQLAdmin]
Server=D:\\mysql\\mysql-5.5.9-win32\\bin\\mysqld-nt.exe

default-storage-engine=innodb 
innodb_data_home_dir = D:\\mysql\\mysql-5.5.9-win32\\data
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = D:\\mysql\\mysql-5.5.9-win32\\data



保存即可。

-------------------------------- 启动和关闭 -----------------------------------

启动MySQL的命令为:
D:\java\Database\MySql5\bin\mysqld --console


-------------------------------- 注册为服务 -------------------------------------

如果有权限,也可以用以下命令将MySQL注册为系统服务(windows环境):
mysqld --install MySQL5
卸载服务:
mysqld --remove MySQL5
启动服务:
net start MySQL5
停止服务:
net stop MySQL5
---


并开启服务,  mysqld --console


C:\Users\dell>mysql -h 127.0.0.1 -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.5.9-log MySQL Community Server (GPL)

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database jiradb character set utf8;Query OK, 1 row affected (0.00 sec)

mysql> use jiradb;
Database changed



2.下载atlassian-jira-enterprise-4.2.4-b591-standalone.zip,

http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-enterprise-4.2.4-b591-standalone.zip


解压缩到一个目录,我这里举例

D:\jira\atlassian-jira-enterprise-4.2.4

里面包括bin , lib等文件夹


3.设置环境变量

CATALINA_HOME
D:\jira\atlassian-jira-enterprise-4.2.4

%CATALINA_HOME%\bin;加到PATH的最前面

JDK环境变量
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_21
CLASSPATH=.;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%
\bin;
path=%JAVA_HOME%\bin;


4.修改两个文件D:\jira\atlassian-jira-enterprise-4.2.4\conf目录下的server.xml

Xml代码 
<Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"   
            username="[enter db username]"   
           password="[enter db password]"   
          driverClassName="com.mysql.jdbc.Driver"   
           url="jdbc:mysql://localhost/jiradb?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=UTF8"  
           />  
这里删除了 
minEvictableIdleTimeMillis="4000" 
timeBetweenEvictionRunsMillis="5000" 


D:\jira\atlassian-jira-enterprise-4.2.4\atlassian-jira\WEB-INF\classes目录下的entityengine.xml

Xml代码 
<datasource name="defaultDS" field-type-name="mysql"  
移除schema-name="PUBLIC" 
  



D:\jira\atlassian-jira-enterprise-4.2.4\atlassian-jira\WEB-INF\classes目录下的jira-application.properties

设置jira.home =D:\\jira\\home


可以启动bin的starup了









------

二、破解

1. 下载破解补丁 下载地址见附件


2.用破解补丁中的JiraLicenseStoreImpl.class文件覆盖
D:\jira\atlassian-jira-enterprise-4.2.4\atlassian-jira\WEB-INF\classes\com\atlassian\jira\license\JiraLicenseStoreImpl.class文件

3. 用破解补丁中的Version2LicenseDecoder.class文件覆盖D:\jira\atlassian-jira-enterprise-4.2.4\atlassian-jira\WEB-INF\lib\atlassian-extras-2.2.2.jar包中的atlassian-extras-2.2.2.jar\com\atlassian\extras\decoder\v2\Version2LicenseDecoder.class文件

注:jar包可以用WinRAR打开,并可以采用拖拽的方式覆盖文件

4.运行JIRA服务

bin/startup.sh

5.WEB 配置 JIRA

官方文档 http://www.atlassian.com/software/jira/docs/v3.13/setup.html
视频演示 : http://www.atlassian.com/software/jira/videos/jira4-overview.jsp

安装时使用如下注册码:

#Sun Oct 25 00:50:34 CDT 2009
Description=JIRA\: longmaster
CreationDate=2010-02-22
[email protected]
jira.LicenseEdition=ENTERPRISE
[email protected]
Evaluation=false
jira.LicenseTypeName=COMMERCIAL
jira.active=true
licenseVersion=2
MaintenanceExpiryDate=2099-10-24
Organisation=zzh
jira.NumberOfUsers=-1
ServerID=B5EU-IZVX-K1SZ-39HC
LicenseID=LID
LicenseExpiryDate=2099-10-24
PurchaseDate=2010-10-25


七:安装汉化包

1. Stop JIRA

2. 将中文件(language_zh_CN.jar)拷贝至\atlassian-jira\WEB-INF\lib\目录下;

3. Start JIRA

language_zh_CN.jar下载地址见附件,覆盖掉lib下的即可

八:安装GreenHopper插件

     下载包:http://download.csdn.net/source/2839846

1、下载jira-greenhopper-plugin-4.2.1-jira40.jar,如果你下载到了a.zip这类的文件,那么重命名为a.jar

2、关闭 JIRA

3、替换或者拷贝jar到 {JIRA_HOME}/plugins/installed-plugins

注意:{JIRA_HOME}在jira/atlassian-jira/WEB-INF/classes/jira-application.properties文件中的jira.home = /usr/local/atlassian/jira/data(这是我定义的jira_HOME)



4、从{JIRA_INSTALL}/atlassian-jira/WEB-INF/lib目录中移除所有jira-greenhopper-plugin-*.jar

5、重启JIRA

使用jira管理员登录全局权限设置

在系统管理页面上点击工具栏上的“系统管理”并且选择全局配置,可以看到GreenHopper

在updata License出输入以下内容:

Description=GreenHopper for JIRA 4\: longmaster

CreationDate=2010-02-21

[email protected]

greenhopper.NumberOfUsers=-1

greenhopper.LicenseTypeName=COMMERCIAL

[email protected]

Evaluation=false

greenhopper.LicenseEdition=ENTERPRISE

licenseVersion=2

MaintenanceExpiryDate=2099-10-24

Organisation=zzhcool

greenhopper.active=true

LicenseID=LID

LicenseExpiryDate=2099-10-24

PurchaseDate=2010-10-25

单点ADD,破解完成

覆盖破解文件和增加plugin时经常发生JIRA访问报错

The jira.home directory 'C:\Program Files\Atlassian\Application Data\JIRA' is already locked. Please see the JIRA documentation for more information on locked jira.home directories.

解决办法:

将\Atlassian\Application Data\JIRA\.jira-home.lock文件删除重启即可(在设置的HOME下)

猜你喜欢

转载自raoliv.iteye.com/blog/958780