linux下JIRA4安装配置

1. 下载JIRA

JIRA官网:http://www.atlassian.com/software/jira/

jira下载4.0:

http://www.atlassian.com/software/jira/ArchiveDownloads.jspa

tar zxvf atlassian-jira-enterprise-
4.0
-standalone.tar.gz  



mv atlassian-jira-enterprise-4.0
-standalone.tar.gz /home/  



cd /home/atlassian-jira-enterprise-4.0
-standalone  
tar zxvf atlassian-jira-enterprise-4.0-standalone.tar.gz
mv atlassian-jira-enterprise-4.0-standalone.tar.gz /home/
cd /home/atlassian-jira-enterprise-4.0-standalone

2.安装jdk

3.安装mysql

将mysql驱动mysql-connector-java-5.1.6拷贝到/home/jira/common/lib

create database jiradb character set  utf8;  
create database jiradb character set  utf8;

4.修改JIRA配置

进入jira/atlassian-jira/WEB-INF/classes

修改jira-application.properties文件

找到jira.home=

修改为jira.home=/root/jira_homes绝对路径

修改一

vi /home/jira/conf/server.xml  
vi /home/jira/conf/server.xml

修改成如下几项

username=
"jira"
  



password="jira"
  



driverClassName="com.mysql.jdbc.Driver"
  



url="jdbc:mysql://localhost/jiradb? autoReconnect=true&useUnicode=true&characterEncoding=UTF8"
  
username="jira"
password="jira"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/jiradb? autoReconnect=true&useUnicode=true&characterEncoding=UTF8"

删除以下两行

minEvictableIdleTimeMillis=
"4000"
  



timeBetweenEvictionRunsMillis="5000"
  
minEvictableIdleTimeMillis="4000"
timeBetweenEvictionRunsMillis="5000"

修改二

vim/home/jira/atlassian-jira/WEB_INF/classes/entityengine.xml

将其中的hsql改成mysql 数据库类型
<datasource name=
"defaultDS"
 field-type-name=
"hsql"
  



改为:  


<datasource name="defaultDS"
 field-type-name=
"mysql"
  



  


删
除    schema-name="PUBLIC"
  
<datasource name="defaultDS" field-type-name="hsql"
改为:
<datasource name="defaultDS" field-type-name="mysql"

删除    schema-name="PUBLIC"

5.运行JIRA服务

*uix使用JIRA根目录下的bin/starup.shwindows用bin\startup.bat

/home/jira/bin/startup.sh

6.WEB配置JIRA

官方文档http://www.atlassian.com/software/jira/docs/v3.13/setup.html

视频演示:http://www.atlassian.com/software/jira/videos/jira4-overview.jsp

破解

解压jira4.0_crack.rar文件,拷贝到相应目录下

启动登陆JIRA后再License位置处填入以下信息(内容可自行修改)

#Sun Oct 
25
 
00
:
50
:
34
 CDT 
2009
  



Description=JIRA\: COMMERCIAL  


CreationDate=2009
-
10
-
25
  



ContactName=haha@haha
.haha  



jira.LicenseEdition=ENTERPRISE  


ContactEMail=haha@haha
.haha  



Evaluation=false
  



jira.LicenseTypeName=COMMERCIAL  


jira.active=true
  



licenseVersion=2
  



MaintenanceExpiryDate=2013
-
10
-
24
  



Organisation=haha  


jira.NumberOfUsers=-1
  



ServerID=B6FW-B4KW-J1A3-4DQB  


LicenseID=LID  


LicenseExpiryDate=2010
-
10
-
24
  



PurchaseDate=2009
-
10
-
25
  
#Sun Oct 25 00:50:34 CDT 2009
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=2013-10-24
Organisation=haha
jira.NumberOfUsers=-1
ServerID=B6FW-B4KW-J1A3-4DQB
LicenseID=LID
LicenseExpiryDate=2010-10-24
PurchaseDate=2009-10-25

hotmail邮件服务

POP:pop3.live.com(端口995)(需要选择”此服务器需要选择加密连接(SSL)”)

SMTP:smtp.live.com(端口25or587)(需要选择“我的发送服务器(SMTP)需要验证”)

用户名:<您完整的WindowsLiveID>

密码:<您WindowsLiveID的密码>

gmail邮件服务

POP:pop.gmail.com(端口995)(需要选择”此服务器需要选择加密连接(SSL)”)

SMTP:smtp.gmail.com(端口465)(需要选择“我的发送服务器(SMTP)需要验证”)

用户名:

密码:

7.集成greenhopper4.2

替换或者拷贝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)

使用JIRA的系统管理员(初始化JIRA环境时创建的)登陆

Administration-->GeneralConfiguration-->GlobalSettings-->GreenHopper

在License处填入以下信息(内容可自行修改)

#Sat Oct 
24
 
19
:
09
:
35
 CDT 
2009
  



Description=GreenHopper for
 JIRA 
4
\: COMMERCIAL  



CreationDate=2009
-
10
-
25
  



ContactName=haha@haha
.haha  



greenhopper.NumberOfUsers=-1
  



greenhopper.LicenseTypeName=COMMERCIAL  


ContactEMail=haha@haha
.haha  



Evaluation=false
  



greenhopper.LicenseEdition=ENTERPRISE  


licenseVersion=2
  



MaintenanceExpiryDate=2013
-
10
-
24
  



Organisation=haha  


greenhopper.active=true
  



LicenseID=LID  


LicenseExpiryDate=2010
-
10
-
24
  



PurchaseDate=2009
-
10
-
25
  
#Sat Oct 24 19:09:35 CDT 2009
Description=GreenHopper for JIRA 4\: COMMERCIAL
CreationDate=2009-10-25
[email protected]
greenhopper.NumberOfUsers=-1
greenhopper.LicenseTypeName=COMMERCIAL
[email protected]
Evaluation=false
greenhopper.LicenseEdition=ENTERPRISE
licenseVersion=2
MaintenanceExpiryDate=2013-10-24
Organisation=haha
greenhopper.active=true
LicenseID=LID
LicenseExpiryDate=2010-10-24
PurchaseDate=2009-10-25

安装常见问题

覆盖破解文件和增加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.   
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\ApplicationData\JIRA\.jira-home.lock文件删除重启即可

相关推荐