安装平台需要软件:
atlassian-jira-enterprise-4.2-standalone.tar.gz
MySQL-client-5.5.21-1.rhel5.i386.rpm
MySQL-server-5.5.21-1.rhel5.i386.rpm
mysql-connector-java-5.1.18.tar.gz
language_zh_CN.jar
下载地址如下:
http://www.oracle.com/technetwork/java/javase/overview/index.html
http://www.atlassian.com/software/jira/JIRADownloadCenter.jspa
http://dev.mysql.com/downloads/connector/j/
第一步:
安装jdk1.6.0.24跳过
第二步:
安装mysql数据库
rpm -qa | grep -i mysql ##查询有无安装过低级版本的mysql
rpm -e 卸载掉
rpm -ivh xxxx.rpm 安装
service mysqld start
chkconfig mysqld on
关键:
mysql 进入mysql
create database jiradb character set utf8; ##建立名为jiradb的数据库
grant all on jiradb.* to 'jira'@'localhost' identified by 'jira'; ##建立jira帐号
flush privileges; 刷新配置
quit
数据库安装到此结束。
第三步:
tar -zxvf atlassian-jira-enterprise-4.2-standalone.tar.gz ##安装4.2版本jira
mv atlassian-jira-enterprise-4.2-standalone /usr/local/jira ##把jira文件夹移动到 /usr/local/jira下面
mkdir /usr/local/jira_home ##创建jira.home的目录
vi /usr/local/jira/atlassian-jira/WEB-INF/classes/jira-application.properties
jira.home = /usr/local/jira_home ##修改配置文件设置jira.home的绝对路径
修改主配置文件:
vi /usr/local/jira/conf/server.xml
修改成如下几项
username= "jira"
password="jira"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/jiradb?autoReconnect=true&useUnicode=true&characterEncoding=UTF8"
删除以下两行
minEvictableIdleTimeMillis= "4000"
timeBetweenEvictionRunsMillis="5000"
validationQuery="select 1"
修改jira应用数据库类型:
vi /usr/local/jira/atlassian-jira/WEB_INF/classes/entityengine.xml ##可以通过 find / -name entityengine.xml 查找,然后通过vi修改
##将其中的hsql改成mysql 数据库类型
<datasource name= "defaultDS" field-type-name= "hsql"
改为:
<datasource name="defaultDS" field-type-name= "mysql"
##删除 schema-name="PUBLIC"
##添加mysql数据库驱动:
##将mysql-connector-java-5.1.6.tar.gz解压,拷贝里面的mysql-connector-java-5.1.6-bin.jar 到/usr/local/jira/lib/目录下 个人使用mysql-connector-java-5.1.8-bin.jar
cp mysql-connector-java-5.1.18-bin.jar /usr/local/jira/lib/
破解jira
下载破解补丁(jira_crack.zip)
下载地址:http://download.csdn.net/source/2812878
用破解补丁中的JiraLicenseStoreImpl.class文件覆盖/usr/local/jira/atlassian- jira /WEB_INF/classes/com/atlassian/jira/license/JiraLicenseStoreImpl.class文件
用破解补丁中的Version2LicenseDecoder.class文件覆盖/usr/local/jira/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打开,并可以采用拖拽的方式覆盖文件
运行JIRA服务
/usr/local/jira/bin/startup.sh
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\: COMMERCIAL
CreationDate=2009-10-25
ContactName=ct@ct.ct
jira.LicenseEdition=ENTERPRISE
ContactEMail=ct@ct.ct
Evaluation=false
jira.LicenseTypeName=COMMERCIAL
jira.active=true
licenseVersion=2
MaintenanceExpiryDate=2010-10-24
Organisation=haha
jira.NumberOfUsers=-1
ServerID=此处替换成输入框上方的ID值
LicenseID=LID
LicenseExpiryDate=2010-10-24
PurchaseDate=2009-10-25
汉化:
拷贝汉化文件 jira-lang-zh_CN.jar 到 /usr/local/jira/atlassian-jira/WEB-INF/lib/ 目录下,然后平台设置里面选中文即可。
转载于:https://blog.51cto.com/ty1207/999254