Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

准备工作

安装之前,需要对我们使用JIRA情况进行初步的评测,以解决在使用过程中的资源使用情况,包括用户数、在项目数、问题数以及访问的并发量,使用何种数据库,以确认我们应该为JIRA配置的资源内容和多少,这包括以下内容

  • 确认安装的JIRA版本
  • 针对不同版本号的服务器要求选择相应服务器
  • 被本版本JIRA所支持的数据库情况
  • https://my.atlassian.com中有权生成授权码的atlassian账户

更多JIRA版本支持使用的情况,可以参见:00-发布公告与安全资讯
因不同的JIRA版本对服务要求会有些差异,可以详细查看各版本的情况,可以参见:00-发布公告与安全资讯
我们以安装JIRA8.18.0为例,在Linux上安装,并使用mysql5.7.0数据库;我们需要做如下准备

Panel
title本页内容

Table of Contents

  1. 准备JIRA8.18.0 linux的安装包,下载地址https://www.atlassian.com/software/jira/update,我们建议使用.bin的安装方式
  2. 准备mysql数据库的环境 ,创建提供给jira使用的数据库,及账户和密码
  3. 准备jira连接mysql数据库所使用的驱动包(可使用:mysql-connector-java-8.0.22.jar);

注意

  • Linux环境建议安装中文包,并提供默认字符集为UTF8mb4
  • 安装数据库,建议使用库表名不区分大小写,并默认使用字符集为UTF8mb4
  • 链接Mysql的用户,对此库有最大最高权限(数据库字符集建议使用: UTF8mb4, COLLATE使用utf8mb4_bin))
  • 安装之前会检查是否有必要的字体集,如果不存在可以选择默认安装(yum install fontconfig)

创建数据库

Code Block
languagesql
linenumberstrue
-- 创建用户
CREATE USER 'jirauser'@'%'  IDENTIFIED BY 'jirauser';
-- 创建数据库
CREATE DATABASE jiradb CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
-- 进行授权
GRANT ALL PRIVILEGES ON jiradb.* TO 'jirauser'@'%';
-- 让授权马上生效
flush privileges;
安装JIRA

确认安装权限

因为我们使用的是bin方式,它是自带JDK的,因此不需要特定的安装JDK,开箱即用。

1、使用root权限登录linux

2、进入到目录:cd /opt (我们是将安装包放在此目录下,文件名为:atlassian-jira-software-7.5.0-x64.bin)

3、将上文件权限可以执行

4、执行安装文件包 ./ atlassian-jira-software-8.18.0-x64.bin

5、接下根据安装提示进行安装

确认是否有相应管理员安装权限

INFO: Created system preferences directory in java.home.
You do not have administrator rights to this machine and as such, some installation options will not be available. Are you sure you want to continue?

Wiki Markup
*Yes \[y, Enter\],*

No [n]

确认安装实例

This will install JIRA Software 8.18.0 on your computer.

Wiki Markup
OK \[o, Enter\],

Cancel [c]

确认安装方式

Choose the appropriate installation or upgrade option. Please choose one of the following:

Wiki Markup
Express Install (use default settings) \[1\],
Wiki Markup
*Custom Install (recommended for advanced users) \[2, Enter\],*
Wiki Markup
Upgrade an existing JIRA installation \[3\]
填写安装目录(INSTALL_HOME)和文件目录(JIRA_HOME)

确认安装目录

Where should JIRA8.18.0 be installed?

Wiki Markup
\[/opt/atlassian/jira\]

/usr/local/jira Default location for JIRA data

Wiki Markup
\[/var/atlassian/application-data/jira\]

/usr/local/jira_data
会有默认目录,如果我们有需要修改的,可以直接将目录全地址填入

确认文件目录

Wiki Markup
\[/var/atlassian/application-data/jira\]

/usr/local/jira_data
会有默认目录,如果我们有需要修改的,可以直接将目录全地址填入


配置应用的访问端口号

Configure which ports JIRA 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) -

Wiki Markup
*Recommended \[1, Enter\]{*}
Wiki Markup
, 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?

Wiki Markup
*Yes \[y, Enter\]{*}
Wiki Markup
, No \[n\]

安装完成提示

上一步系统开始执行安装,当出现以下信息为安装完成

Please wait a few moments while JIRA starts up. Launching JIRA ... Installation of JIRA 8.18.0 is complete Your installation of JIRA 8.18.0 is now ready and can be accessed via your browser. JIRA 8.18.0 can be accessed at http://localhost:8080


后续

8、接下根据安装提示进行安装接下根据安装提示进行安装

我们将数据库驱动包放在{ INSTALL_HOME }/ jira/lib下。

  • 9、重新启动JIRA

执行{ INSTALL_HOME }/ jira/bin/jira-startup.sh10、启动完成打开浏览器,开始系统应用初始化配置

  • 启动完成打开浏览器,开始系统应用初始化配置

如此下来可以进行系统初始化,可以参见:05-JIRA系统初始化