安装jira
一.安装
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
给192.168.1.33 这个ip 分配个root 密码为 0 的访问权限
mysql> grant all privileges on *.* to root@'192.168.1.33' identified by '0'
-> ;
Query OK, 0 rows affected (0.02 sec)
mysql> select host,user,password from user;
+--------------+------------+-------------------------------------------+
| host | user | password |
+--------------+------------+-------------------------------------------+
| localhost | root | *B12289EEF8752AD620294A64A37CD586223AB454 |
| 127.0.0.1 | root | *B12289EEF8752AD620294A64A37CD586223AB454 |
| ::1 | root | *B12289EEF8752AD620294A64A37CD586223AB454 |
| localhost | | *B12289EEF8752AD620294A64A37CD586223AB454 |
| % | confluence | *B12289EEF8752AD620294A64A37CD586223AB454 |
| localhost | confluence | *B12289EEF8752AD620294A64A37CD586223AB454 |
| 192.168.1.33 | root | *B12289EEF8752AD620294A64A37CD586223AB454 |
+--------------+------------+-------------------------------------------+
7 rows in set (0.00 sec)
mysql>
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
D:\jira\atlassian-jira-enterprise-4.2.4\atlassian-jira\WEB-INF\classes目录下的entityengine.xml
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
ContactName=zzhcool@126.com
jira.LicenseEdition=ENTERPRISE
ContactEMail=zzhcool@126.com
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插件
下载包见附件
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
ContactName=zzhcool@126.com
greenhopper.NumberOfUsers=-1
greenhopper.LicenseTypeName=COMMERCIAL
ContactEMail=zzhcool@126.com
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下)
1 楼 fp_moon 2011-03-10 兄弟,目前我正在研究如何部署一个新的破解JIRA,能否留下Email供交流用,谢谢。 2 楼 ldbjakyo 2011-03-10 fp_moon 写道兄弟,目前我正在研究如何部署一个新的破解JIRA,能否留下Email供交流用,谢谢。
dongbo.lea@google.com