jira 升级版本
备份jira安装目录
1
[root@jira app]# tar czf jira.bin.tar.gz /mnt/app/jira
备份jira.home目录
1
[root@jira app]# tar czf jira.home.tar.gz /mnt/data/jira.home
备份jira数据库
1
[root@jira app]# mysqldump -u{username} -p{password} -h{ipaddress} jira > jira.sql
升级jira
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111[root@jira app]# ./atlassian-jira-software-7.5.0-x64.bin
Unpacking JRE ...
Starting Installer ...
Oct 10, 2017 2:04:49 PM java.util.prefs.FileSystemPreferences$2 run
INFO: Created system preferences directory in java.home.
This will install JIRA Software 7.5.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], Upgrade an existing JIRA installation [3, Enter]
3
Existing installation directory:
[/mnt/app/jira]
/mnt/app/jira
Back up JIRA home directory
The upgrade process will automatically back up your JIRA installation
directory. You can also choose to back up your existing JIRA home directory.
Both directories are backed up as zip archive files in their respective
parent directory locations.
We strongly recommend choosing this option in the unlikely event that you
experience problems with the upgrade and may require these backups to
restore your existing JIRA installation.
If you have many attachments in your JIRA home directory, the zip archive of
this directory may consume a significant amount of disk space.
Back up JIRA home directory?
Yes [y, Enter], No [n]
y
Checking for local modifications.
List of modifications made within JIRA directories.
The following provides a list of file modifications within the
atlassian-jira directory.
Modified files:
bin/setenv.sh
conf/server.xml
bin/check-java.sh
Removed files:
(none)
Added files:
atlassian-jira/WEB-INF/lib/mysql-connector-java-5.1.38-bin.jar
bin/atlassian-jira-security.log
bin/atlassian-jira.log
[Enter]
Checking if your instance of JIRA Software is running
Upgrade check list
Back up your external database
We strongly recommend you back up your JIRA Software database if you have
not already done so.
Please refer to the following URL for back up guidelines:
http://docs.atlassian.com/jira/jadm-docs-075/Backing+up+data
Check plugin compatibility
Check that your non-bundled plugins are compatible with JIRA Software 7.5.0.
Access the plugin manager through the following URL:
http://localhost:8080/plugins/servlet/upm#compatibility
For more information see our documentation at the following URL:
http://docs.atlassian.com/jira/jadm-docs-075/Upgrading+JIRA+applications
Please ensure you have read the above checklist before upgrading.
Your existing JIRA installation is about to be upgraded!
The upgrade process will shut down your existing JIRA installation to complete the upgrade.
Do you want to proceed?
Upgrade [u, Enter], Exit [e]
u
Your instance of JIRA is currently being upgraded.
Shutting down JIRA...
Checking if JIRA has been shutdown...
Backing up the JIRA installation directory
Backing up the JIRA home directory
Deleting the previous JIRA installation directory...
Extracting files ...
Please wait a few moments while JIRA Software is configured.
Installation of JIRA Software 7.5.0 is complete
Start JIRA Software 7.5.0 now?
Yes [y, Enter], No [n]
y
Please wait a few moments while JIRA Software starts up.
Launching JIRA Software ...
Installation of JIRA Software 7.5.0 is complete
Your installation of JIRA Software 7.5.0 is now ready and can be accessed
via your browser.
Custom modifications
Your previous JIRA installation contains customisations (eg server.xml) that
must be manually transferred. Refer to our documentation more information:
http://docs.atlassian.com/jira/jadm-docs-075/Upgrading+JIRA+applications+manually#UpgradingJIRAapplicationsmanually-configuringnewjiraasold3.4MigrateyourexistingJIRAconfigurationsovertoyournewJIRAinstallation
JIRA Software 7.5.0 can be accessed at http://localhost:8080
JIRA Software may take several minutes to load on first start up.
Finishing installation ...停止服务
1
2
3[root@jira app]# systemctl stop jira
或者
[root@jira app]# /etc/init.d/jira stop将JDBC的客户端拷贝到jira安装目录lib下
1
2
3[root@jira app]# cp mysql-connector-java-5.1.44-bin.jar /mnt/app/jira/lib/
[root@jira app]# ls -1 /mnt/app/jira/lib/mysql-connector-java-5.1.44-bin.jar
/mnt/app/jira/lib/mysql-connector-java-5.1.44-bin.jar启动服务
1
2
3[root@jira app]# systemctl start jira
或者
[root@jira app]# /etc/init.d/jira start通过URL访问,进行验证