- 准备JIRA8.18.0 linux的安装包,下载地址https://www.atlassian.com/software/jira/update,我们建议使用.bin的安装方式
- 准备mysql数据库的环境 ,创建提供给jira使用的数据库,及账户和密码
- 准备jira连接mysql数据库所使用的驱动包(可使用:mysql-connector-java-8.0.22.jar);
注意
- Linux环境建议安装中文包,并提供默认字符集为UTF8mb4
- 安装数据库,建议使用库表名不区分大小写,并默认使用字符集为UTF8mb4
- 链接Mysql的用户,对此库有最大最高权限(数据库字符集建议使用: UTF8mb4, COLLATE使用utf8mb4_bin))
- 安装之前会检查是否有必要的字体集,如果不存在可以选择默认安装(yum install fontconfig)
创建数据库
-- 创建用户 CREATE USER 'jirauser'@'%' IDENTIFIED BY 'jirauser'; -- 创建数据库 CREATE DATABASE jiradb CHARACTER SET utf8mb4 COLLATE utf8mb4_bin; -- 进行授权 GRANT ALL PRIVILEGES ON jiradb.* TO 'jirauser'@'%'; -- 让授权马上生效 flush privileges;
确认安装权限
因为我们使用的是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. Yes [y, Enter], No [n] |
确认安装实例
This will install JIRA Software 8.18.0 on your computer. OK [o, Enter], Cancel [c] |
确认安装方式
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] |
确认安装目录
Where should JIRA8.18.0 be installed? [/opt/atlassian/jira] /usr/local/jira Default location for JIRA data [/var/atlassian/application-data/jira] /usr/local/jira_data |
确认文件目录
[/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) - 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] |
安装完成提示
上一步系统开始执行安装,当出现以下信息为安装完成
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 |
后续
接下根据安装提示进行安装
我们将数据库驱动包放在{ INSTALL_HOME }/ jira/lib下。
- 9、重新启动JIRA
执行{ INSTALL_HOME }/ jira/bin/jira-startup.sh
- 启动完成打开浏览器,开始系统应用初始化配置
如此下来可以进行系统初始化,可以参见:05-JIRA系统初始化