一、Linux下安装jira
1、相关驱动下载
JDK下载:
Mysql驱动下载:http://dev.mysql.com/downloads/connector/j
Mysql下载:http://dev.mysql.com/downloads/mysql/#downloads
Jira下载: />
2、安装jdk与tomcat
先看下8080端口是否被占用
[root@name01 conf]# lsof -i:8080
如果占用要关闭占用进程
[root@name01 conf]#kill -9 pid
3、下载安装jira:
sudo chmod +x atlassian-jira-6.3.8-x64.bin
sudo ./atlassian-jira-6.3.8-x64.bin
4、安装mysql数据库
先建立jira数据库以及账号密码:
mysql> CREATE DATABASE `jira636` /*!40100 DEFAULT CHARACTER SET utf8*/;
Query OK, 1 row affected (0.13 sec)
mysql> GRANT ALL ON jira636.* TO jira_user@'%' IDENTIFIED BY 'jira_user0919';
Query OK, 0 rows affected (0.38 sec)
mysql>
5、启动jira
[root@name01 bin]# /home/jira/atlassian-jira-6.3.6-standalone/bin/start-jira.sh
打开网址如下图
点击向后配置数据库选项,在界面配置好数据库连接信息,然后点击“下一”按钮
需要将jdbc驱动包mysql-connector-java-5.1.25-bin.jar复制到/home/jira/atlassian-jira-6.3.6-standalone/atlassian-jira/WEB-INF/lib目录下面,然后重启。
没有驱动包会报一下错误:
JIRA Startup Failed
org.ofbiz.core.entity.GenericDataSourceException: SQL Exception while executing the following:SELECT pluginkey, pluginenabled FROM pluginstate (Table 'jira636.pluginstate' doesn't exist)
配置完数据库之后,在新界面录入程序标题,点击“向后”按钮
输入临时授权码,进行注册:
二、greenhopper破解
1. 下载破解补丁(jira_crack.zip)
下载地址: />
2.用破解补丁中的JiraLicenseStoreImpl.class文件覆盖/usr/local/jira/atlassian-jira/WEB_INF/classes/com/atlassian/jira/license/JiraLicenseStoreImpl.class文件
3. 用破解补丁中的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文件
直接在插件里面安装jira-greenhopper
然后在license管理里面填写:
Description=GreenHopper for JIRA 5\: 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
就可以破解成功了
汉化最新地址 />
三、迁移,更改IP等
1、查看web目录下jirahome路径,在webapps/jira下面的配置文件
配置文件:WEB-INF/classes/jira-application.properties
查看配置文件jirahome值:
# Do not modify this file unless instructed. It is here to store the location of the JIRA home directory only and is typically written to by the installer.
jira.home= /usr/local/oecs-g2/jira/jirahome
2.在jirahome路径下配置jira的数据库
配置文件:/usr/local/oecs-g2/jira/jirahome/dbconfig.xml
3、修改内容,如果以前是使用localhost,需要改成对应的IP,如果换了数据库,则需要配置成新的数据库(以下红色连接)及用户名密码:
defaultDS
default
mysql
jdbc:mysql://192.168.200.203:3306/jira?useUnicode=true&characterEncoding=UTF8&sessionVariables=storage_engine=InnoDB
com.mysql.jdbc.Driver
jira
jira
20
20
30000
select 1
60000
300000
20
true
300
true
3
4、修改jira中主页 URL
系统-设置-编辑设置-修改主页URL
5、重启jira
阅读(2476) | 评论(0) | 转发(0) |