工具从来不嫌多

Atlassian系列之Jira8安装

2019-03-16  本文已影响0人  Daisy小朋友

系统:Centos7.2

Jira版本:jira8

数据库版本:postgresql9.5

用途:

jira是一个项目与事务跟踪工具,被广泛应用于缺陷跟踪(bug管理)、客户服务、需求收集、流程审批、任务跟踪、项目跟踪和敏捷管理等工作领域。比如tester提交了一个bug,developer解决了这个bug,同时提交了几个java类,如果你想看到针对这个bug项目里面的代码做了哪些修改,jira-subversion plugin就发挥作用了。安装好subversion plugin之后,只需要developer在做svn commit的时候在comments里面写上jira id,在jira的subversion tab里面就会显示这个comments和这次提交的文件。而jira fisheye plugin则是将fisheye的功能集成到jira中,同时也是随jira id来显示版本的变更记录。为了能关联SVN的变更与JIRA中的Issue,要在提交代码时在注释里填写Issue ID ,不然就关联不上了。

1.下载

51下载地址
云盘地址
链接:https://pan.baidu.com/s/1uGYaGEfZ8qM9C1DwrTNwQA
提取码:5f03
复制这段内容后打开百度网盘手机App,操作更方便哦

2.安装

[root@izbp1fzs35shvqfkb75a89z ~]# ./atlassian-jira-software-8.0.0-x64.bin
Unpacking JRE ...
Starting Installer ...
三月 16, 2019 10:55:23 上午 java.util.prefs.FileSystemPreferences$1 run
信息: Created user preferences directory.
三月 16, 2019 10:55:23 上午 java.util.prefs.FileSystemPreferences$2 run
信息: Created system preferences directory in java.home.

This will install JIRA Software 8.0.0 on your computer.
OK [o, Enter], Cancel [c]
o
Choose the appropriate installation or upgrade option.
Please choose one of the following:
Express Install (use default settings) [1], Custom Install (recommended for advanced users) [2, Enter], Upgrade an existing JIRA installation [3]
2

Where should JIRA Software be installed?
[/opt/atlassian/jira]

Default location for JIRA Software data
[/var/atlassian/application-data/jira]

Configure which ports JIRA Software will use.
JIRA requires two TCP ports that are not being used by any other
applications on this machine. The HTTP port is where you will access JIRA
through your browser. The Control port is used to startup and shutdown JIRA.
Use default ports (HTTP: 8080, Control: 8005) - Recommended [1, Enter], Set custom value for HTTP and Control ports [2]

JIRA can be run in the background.
You may choose to run JIRA as a service, which means it will start
automatically whenever the computer restarts.
Install JIRA as Service?
Yes [y, Enter], No [n]
y
Details on where JIRA Software will be installed and the settings that will be used.
Installation Directory: /opt/atlassian/jira
Home Directory: /var/atlassian/application-data/jira
HTTP Port: 8080
RMI Port: 8005
Install as service: Yes
Install [i, Enter], Exit [e]
Extracting files ...                                                                    
Please wait a few moments while JIRA Software is configured.
Installation of JIRA Software 8.0.0 is complete
Start JIRA Software 8.0.0 now?
Yes [y, Enter], No [n]   ## 暂时不启动
n
Installation of JIRA Software 8.0.0 is complete
Your installation of JIRA Software 8.0.0 is now ready.
Finishing installation ...

jira官方推荐使用普通用户jira启动应用,所以启动的时候机器将[jira-home]目录授权给jira用户并启动服务
浏览器访问:ip:8080
语言选择中文


image.png

选择生产安装,下一步


image.png
配置数据库访问
image.png
下一步输入license,去官网先申请试用。
image.png
image.png

安装页面粘贴许可证


image.png
配置jira管理信息
image.png
安装完成就可以使用了。

3.破解

将[jira-home]/atlassian-jira/WEB-INF/lib/atlassian-extras-3.2.jar拷贝出来
并将破解插件atlassian-extras-3.2.jar放到此目录下即可
重启confluence服务即可。

4.启动&关闭

使用普通用户jira启动和停止
启动:
[jira_home]/bin/start-jira.sh
停止:
[jira_home]/bin/stop-jira.sh

5.备份

注意:xml备份时不保证XML备份一致,因为在备份过程中可能会更新数据库。当生成具有不一致性的XML备份时,Jira不会报告任何警告或错误消息,并且此类XML备份将在还原过程中失败。在Jira处于活动状态时,本机数据库备份工具提供了更加一致和可靠的存储(和恢复)数据的方法。
jira的xml备份和confluence不同,不是完整备份
我目前采用的是【xml备份不包含附件】+【附件备份+数据库备份+家目录备份】两种方式共同使用。

#!/usr/bin/env bash
#jira备份脚本
#20190306 by chy
remote_IP=192.168.1.203
LogFile=/root/scripts/logs/jira-backup.log

##jira将xml备份(不包含附件)到203远程机器上,并将log输出到/root/scripts/log/jira-backup.log中
jira_dir=/jira/data/export/
jira_remote=/backup/atlassian/jira/
jiraBegin=`date +"%Y-%m-%d %H:%M:%S"`
/usr/bin/rsync -avz --progress $jira_dir root@$remote_IP:$jira_remote
jiraEnd=`date +"$%Y-%m-%d %H:%M:%S"`
echo jira_backup_start:$jiraBegin end:$jiraEnd  >> $LogFile

##jira将附件备份到203远程机器上,并将log输出到jira-backup.log中
jira_dir_a=/jira/data/data/attachments
jira_remote_a=/backup/attachments/jira/
jira_a_Begin=`date +"%Y-%m-%d %H:%M:%S"`
/usr/bin/rsync -avz --progress $jira_dir_a root@$remote_IP:$jira_remote_a
jira_a_End=`date +"$%Y-%m-%d %H:%M:%S"`
echo jira_backup_start:$jira_a_Begin end:$jira_a_End  >> $LogFile

##jira将数据库备份到203远程机器上,并将log输出到jira-backup.log中
jira_dir_pg=/backup/pgBackup/jira/
jira_remote_pg=/backup/database/jira/
jira_pg_Begin=`date +"%Y-%m-%d %H:%M:%S"`
/usr/bin/rsync -avz --progress $jira_dir_pg root@$remote_IP:$jira_remote_pg
jira_pg_End=`date +"$%Y-%m-%d %H:%M:%S"`
echo wiki_backup_start:$jira_pg_Begin end:$jira_pg_End  >> $LogFile
上一篇下一篇

猜你喜欢

热点阅读