Jira8.12.0部署

日期:2020.08.27
Jira版本:8.12.0
系统:CentOS 7.6

下载地址:
全系列下载地址
Jira8.12.0下载地址

官方安装文档:
Installing Jira applications on Linux

  • 数据库环境

  1. 安装MySql数据库
    根据8.12.0 的release notes,好像支持MySql8.0了,我部署的MySql 5.7.31,部署过程略过;
  2. 创建数据库
    在这提供官方建议的创建方法,建议根据官方的来,不然部署完以后一直提示「字符集和排序规则」检测不通过:
    MySql 5.6/5.7/8.0的数据库创建方法
    MySql 5.7 创库:
CREATE DATABASE jiradb CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;

配置用户权限(必须包含REFERENCES权限):

GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,ALTER,INDEX on .* TO ''@'' IDENTIFIED BY '';
flush privileges;
  1. 配置数据库文件

[mysqld]
default-storage-engine=INNODB
character_set_server=utf8mb4
innodb_default_row_format=DYNAMIC
innodb_large_prefix=ON
innodb_file_format=Barracuda
innodb_log_file_size=2G
// remove this if it exists
#sql_mode = NO_AUTO_VALUE_ON_ZERO

  1. 下载JDBC Driver
    mysql-connector-java-5.1.49.jar
    备用
  2. 下载破解文件
    atlassian-agent-v1.2.3
    备用
  • 系统环境

    官网关于limit的要求

    在 /etc/security/limits.conf 加入以下内容并重新登录终端(jira默认会创建一个jira用户,带家目录):

jira soft nofile 4096
jira hard nofile 8192
jira soft nproc 4096
jira hard nproc 8192

  • 安装

    1. 安装过程没截图,在这摘取其他博主的文章内容 作为参考,执行下载的bin文件,回显是一样的,bin文件需要x权限;
    2. 注意配置的过程需要交互;
    3. 确保本地yum可以正常使用,会通过yum安装一些包(好像是字体);
[root@ecs-9b93-0009 ~]# ./atlassian-jira-software-8.5.1-x64.bin 
Unpacking JRE ...
Starting Installer ...

This will install JIRA Software 8.5.1 on your computer.
OK [o, Enter], Cancel [c]

Click Next to continue, or Cancel to exit Setup.

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  #自定义安装

Select the folder where you would like JIRA Software to be installed.
Where should JIRA Software be installed?
[/opt/atlassian/jira]
# 默认,回车

Default location for JIRA Software data
[/var/atlassian/application-data/jira]
/opt/data/jira
# 我的/opt 目录有单独的数据目录,所以数据目录换掉了

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]


Details on where JIRA Software will be installed and the settings that will be used.
Installation Directory: /data/home/jira/soft 
Home Directory: /data/home/jira/data 
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.5.1 is complete
Start JIRA Software 8.5.1 now?
Yes [y, Enter], No [n]


Please wait a few moments while JIRA Software starts up.
Launching JIRA Software ...

Installation of JIRA Software 8.5.1 is complete
Your installation of JIRA Software 8.5.1 is now ready and can be accessed
via your browser.
JIRA Software 8.5.1 can be accessed at http://localhost:8080
Finishing installation ...
  • 安装后的配置

  1. 停掉服务
/opt/atlassian/jira/bin/stop-jira.sh
  1. 配置JDBC driver
cp mysql-connector-java-5.1.49.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/
  1. 将atlassian-agent-v1.2.3解压,并将jar包放到 /opt/atlassian/ 下

  2. 配置补丁包

[root@localhost ~]# vim /opt/atlassian/jira/bin/setenv.sh 
# 大约第80行左右,添加以下内容:
export JAVA_OPTS="-javaagent:/opt/atlassian/atlassian-agent.jar ${JAVA_OPTS}"
  • 启动服务并开始页面配置

  1. 启动服务
/opt/atlassian/jira/bin/start-jira.sh
  1. 打开http://IP:8080 ,选择第二项 「I'll set it up myself.」,下一步;

  2. 配置数据库链接,选「My own database. 」,配置自己的数据库连接信息并测试连接;

  3. 配置你的Jira的名(无所谓)

  4. 配置是私有(管理员邀请开通帐号,默认),还是所有人允许注册,此配置后续可修改;

  5. 设置基础URL,如果后续要用域名或者要在前面加Nginx,这里直接配置成最终的URL地址,页面跳转的路径都会变成这个,下一步;

  6. 填入Jira的授权码,将服务器ID 记录下来;

java -jar atlassian-agent.jar -p jira -m [email protected] -n my_name -o https://zhile.io -s ABCD-1234-EFGH-5678   
# 这条命令会生成一些乱七八糟的字符,那堆乱七八糟的字符就是你想要的东西,往哪里填你应该明白
# 你要是不明白,我也不明白
# https://gitee.com/pengzhile/atlassian-agent/blob/master/README.md
# 以上命令,除了-p jira 和最后 -s 服务器ID,其他随便改(为啥要改呢?)
  1. 创建管理员帐号

  2. 配置邮件,默认不配置即可,以后再搞

  3. Start using Jira

That's it! Your Jira site is accessible from your base URL or a URL like this:
http://:
Here's a few things that will help you get your team up and running:

  • Add and invite users to get your team on board, or configure user directories for slightly bigger teams.
  • Create your first project to have something to work on.
  • Configure SSL or HTTPS to keep Jira and your team more secure.

创建个项目,在应用程序里面看授权;

  1. Stop Jira and Remove Database
    测试同鞋说太难用了,要填的东西太多了,我打算删掉换禅道了(黑脸)

参考文章:
https://www.jianshu.com/p/9ca92a191f36

你可能感兴趣的:(Jira8.12.0部署)