环境:Linux+jdk+atlassian-jira-enterprise-4.0.2-standalone+mysql
一、安装、配置jdk
1、安装jdk
chmod +x jdk-6u21-linux-i586.bin
./jdk-6u21-linux-i586.bin
mv jdk1.6.0_21 /usr/local/jdk
2、设置jdk环境
vi /etc/profile
JAVA_HOME=/usr/local/jdk
JRE_HOME=/usr/local/jdk/jre
CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME
export JRE_HOME
export PATH
export CLASSPATH
source /etc/profile
二、安装mysql、及相应配置
mysql安装步骤忽略。下面说下部署jira的前mysql上的相关设置
创建jiradb库 mysql> create database jiradb character set utf8;
添加一个用户,名为jira_user密码为1qaz@WSX,并赋予连接权限
mysql> grant all privileges on *.* to ‘jira_user’@’%’ identified by ‘1qaz@WSX ‘ with grant option;
mysql> grant all privileges on *.* to ‘jira_user’@localhost identified by ‘1qaz@WSX ‘ with grant option;
mysql> flush privileges;
三、安装jira
1)tar zxvf atlassian-jira-enterprise-4.0.2-standalone.tar.gz
mv atlassian-jira-enterprise-4.0.2-standalone /usr/local/jira
2) 解压mysql-connector-java-5.0.8.tar.gz,
将目录里的mysql-connector-java-5.0.8-bin.jar 文件拷到 /usr/local/jira/common/lib/ 目录下
3) 编辑conf/server.xml
<Server port=”8015″ shutdown=”SHUTDOWN”>
<Service name=”Catalina”>
<Connector port=“8090”
<Context path=”” docBase=”${catalina.home}/atlassian-jira” reloadable=”false”>
<Resource name=”jdbc/JiraDS” auth=”Container” type=”javax.sql.DataSource”
username=”jira_user“
password=”1qaz@WSX“
driverClassName=”com.mysql.jdbc.Driver” url=”jdbc:mysql://192.168.170.102/jiradb“
[删除这里的minEvictableIdleTimeMillis and timeBetweenEvictionRunsMillis 参数]/>
4)编辑 jira374/atlassian-jira/WEB-INF/classes/entityengine.xml, 改变 field-type-name 属性为mysql
<datasource name=”defaultDS” field-type-name=”mysql“
删除schema-name=”PUBLIC“
5)进入/usr/local/jira/atlassian-jira/WEB-INF/classes 目录下修改文件jira-application.properties ,设置jira.home = /usr/local/jira
6) 启动jira
进入bin目录
./catalina.sh start
./startup.sh
四、破解
下载jira破解包,将破解包里的东西解压后覆盖掉原来的,重启jira,在注册的授权码中就可以使用明文注册了如下:
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=2099-10-24
Organisation=haha
jira.NumberOfUsers=-1
ServerID=B6FW-B4KW-J1A3-4DQB
LicenseID=LID
LicenseExpiryDate=2099-10-24
PurchaseDate=2009-10-25
五、汉化
我在部署过程中遇到汉化无效果的情况,原因是汉化跟系统自身的语言环境有关,系统语言环境一定要支持中文,汉化包自己去网上搜下就能找到。
将language_ZH汉化包cp至/usr/local/jira/atlassian-jira/WEB-INF/lib
重启jira