下载
wget http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-5.0.4.tar.gz
解压tar包
tar -zxvf atlassian-jira-5.0.4.tar.gz -C /usr/local/
进入解压后的目录
- [root ~]# cd /usr/local/
- [root local]# ln -s atlassian-jira-5.0.4-standalone/ jira
创建速度库 [最简单的办法 直接root 创建个库 配置root 账户 密码 即可 以下DB部分可跳过]
- mysql -u root –p
- Enter password:
-
- mysql> create database jiradb character set utf8;
- Query OK, 1 row affected (0.02 sec)
-
- mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX on
- jiradb.* TO 'jirauser'@'localhost' IDENTIFIED BY 'mypassword';
- Query OK, 0 rows affected (0.00 sec)
-
- mysql> flush privileges;
- Query OK, 0 rows affected (0.00 sec)
-
- mysql>\q
- Bye
测试一下 添加的jira用户
- [root]# mysql -u jirauser -p mypassword
-
- Access denied for user 'jirauser'@'localhost' (using password: YES)
修改一下数据库内的host记录
- [root]# mysql -u root -p
- Enter password:
-
- Welcome to the MySQL monitor. Commands end with ; or \g.
- Your MySQL connection id is 55
- Server version: 5.0.95 Source distribution
-
- Copyright (c) 2000, 2011, 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> select host,user from mysql.user;
- +-------------+----------+
- | host | user |
- +-------------+----------+
- | 127.0.0.1 | root |
- | localhost | jirauser |
- | localhost | root |
- +-------------+----------+
- 7 rows in set (0.00 sec)
- mysql> update user set host='localhost.localdomain' where user='jirauser';
- Query OK, 1 row affected (0.00 sec)
- Rows matched: 1 Changed: 1 Warnings: 0
- mysql> flush privileges;
- Query OK, 0 rows affected (0.03 sec)
创建jira家目录
- [root]# cd /usr/local/
- [root]# mkdir jira_home
在配置文件内添加家目录
- [root]# vim /usr/local/jira/atlassian-jira/WEB-INF/classes/jira-application.properties
-
- jira.home = /usr/local/jira_home
删除 /usr/local/jira/conf/server.xml内
- minSpareThreads="25"
- maxSpareThreads="75"
如果,你喜欢破解这个jira程序。下载附件 atlassian-jira破解文件.rar [内含二个class文件]
替换 文件1:jira\atlassian-jira\WEB-INF\classes\com\atlassian\jira\license\JiraLicenseStoreImpl.class
替换文件2: 用WinRar等压缩工具打开 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
进入bin目录下,启动服务/usr/local/jira/bin,记者看着屏幕哦~也许某个文件或者/tmp不可写错误!
[root]# ./startup.sh && tail -f ../logs/ca*.*
一般都不会有问题的,启动成功后,访问: http://IP:8080 ,页面正常,则继续操作
选择配置外部数据库,如下图配置:
输入破解KEY
- Description=JIRA:商业
- CreationDate=2009-10-25(创建时间)
- ContactName=xxx(管理员的名字)
- jira.LicenseEdition=ENTERPRISE
- ContactEMail=xxx@xxx.xxx(管理员的邮箱)
- Evaluation=false
- jira.LicenseTypeName=COMMERCIAL
- jira.active=true
- licenseVersion=2
- MaintenanceExpiryDate=2099-10-24(维护过期时间)
- Organisation=xxx(组织名称)
- jira.NumberOfUsers=-1
- ServerID=B6FW-B4KW-J1A3-4DQB
- LicenseID=LID
- LicenseExpiryDate=2099-10-24(授权过期时间)
- PurchaseDate=2009-10-25(购买时间)
这里括号中的为备注,复制的时候请去除,ServerID请替换成配置页面上的ServerID
然后选择下一步,输入破解后的key,成功后,会跳到如下图所示:
继续下一步,然后是配置邮件,这个可以以后在配置,先禁用掉。直接完成!
进入欢迎界面,很炫丽哦
安装中文插件