Page tree

如需转载请标注内容地址为: https://wiki.shileizcc.com/confluence/display/atlassian/Jire+install+8.11.0

Skip to end of metadata
Go to start of metadata

请在使用站内资源的同时不要恶意进行爬取或倒链等行为,感谢支持!

Jire install 8.11.0

MySQL install

通过容器部署 MySQL:

$ docker run -d --name mysql -p 3306:3306 -v /data/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=shileizcc.com slzcc/mysql:5.6-custom

创建 Database:

$ docker exec -it mysql mysql -uroot -pshileizcc.com -e "CREATE DATABASE jire CHARACTER SET 'UTF8' COLLATE 'utf8_bin';"

Jira install

下载 Jire bin package:

$ wget https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-8.11.0-x64.bin
$ chmod +x atlassian-jira-software-8.11.0-x64.bin

执行安装:(全部默认回车即可)

$ ./atlassian-jira-software-8.11.0-x64.bin
We couldn't find fontconfig, which is required to use OpenJDK. Press [y, Enter] to install it.
For more info, see https://confluence.atlassian.com/x/PRCEOQ

Installing fontconfig...
Hit:1 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB]
Get:3 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]
Hit:4 https://download.docker.com/linux/ubuntu focal InRelease
Get:5 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [315 kB]
Get:6 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [118 kB]
Get:7 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [7964 B]
Get:8 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [29.2 kB]
Get:9 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [7732 B]
Get:10 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [146 kB]
Get:11 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [73.9 kB]
Get:12 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [4920 B]
Hit:13 http://archive.canonical.com/ubuntu focal InRelease
Get:14 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Get:15 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [148 kB]
Get:16 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [52.0 kB]
Get:17 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [3428 B]
Get:18 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [29.2 kB]
Get:19 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [7732 B]
Get:20 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [44.4 kB]
Get:21 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [23.6 kB]
Get:22 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [1832 B]
Fetched 1329 kB in 2s (609 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
19 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  libnuma1
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  fontconfig-config fonts-dejavu-core libfontconfig1
The following NEW packages will be installed:
  fontconfig fontconfig-config fonts-dejavu-core libfontconfig1
0 upgraded, 4 newly installed, 0 to remove and 19 not upgraded.
Need to get 1355 kB of archives.
After this operation, 3902 kB of additional disk space will be used.
Get:1 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu focal/main amd64 fonts-dejavu-core all 2.37-1 [1041 kB]
Get:2 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu focal/main amd64 fontconfig-config all 2.13.1-2ubuntu3 [28.8 kB]
Get:3 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu focal/main amd64 libfontconfig1 amd64 2.13.1-2ubuntu3 [114 kB]
Get:4 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu focal/main amd64 fontconfig amd64 2.13.1-2ubuntu3 [171 kB]
Fetched 1355 kB in 0s (5301 kB/s)
Selecting previously unselected package fonts-dejavu-core.
(Reading database ... 63081 files and directories currently installed.)
Preparing to unpack .../fonts-dejavu-core_2.37-1_all.deb ...
Unpacking fonts-dejavu-core (2.37-1) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../fontconfig-config_2.13.1-2ubuntu3_all.deb ...
Unpacking fontconfig-config (2.13.1-2ubuntu3) ...
Selecting previously unselected package libfontconfig1:amd64.
Preparing to unpack .../libfontconfig1_2.13.1-2ubuntu3_amd64.deb ...
Unpacking libfontconfig1:amd64 (2.13.1-2ubuntu3) ...
Selecting previously unselected package fontconfig.
Preparing to unpack .../fontconfig_2.13.1-2ubuntu3_amd64.deb ...
Unpacking fontconfig (2.13.1-2ubuntu3) ...
Setting up fonts-dejavu-core (2.37-1) ...
Setting up fontconfig-config (2.13.1-2ubuntu3) ...
Setting up libfontconfig1:amd64 (2.13.1-2ubuntu3) ...
Setting up fontconfig (2.13.1-2ubuntu3) ...
Regenerating fonts cache... done.
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Unpacking JRE ...
Starting Installer ...

This will install Jira Software 8.11.0 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]


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]


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: /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.11.0 is complete
Start Jira Software 8.11.0 now?
Yes [y, Enter], No [n]


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

Installation of Jira Software 8.11.0 is complete
Your installation of Jira Software 8.11.0 is now ready and can be accessed
via your browser.
Jira Software 8.11.0 can be accessed at http://localhost:8080
Finishing installation ...

访问 http://ip:8080 通过 UI 安装。

安装 MySQL 驱动:

$ wget -qO- https://mirror.shileizcc.com/Atlassian/MySQL-Package/mysql-connector-java-5.1.48-bin.jar >  /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/mysql-connector-java-5.1.48-bin.jar

重启 Jira:

$ /opt/atlassian/jira/bin/shutdown.sh
$ /opt/atlassian/jira/bin/startup.sh

点击测试:

初始化数据完毕后配置 BaseURL:

试用激活:

创建管理员账户:

是否设置邮件服务器:

选择语言:

安装完毕:

需要创建一个项目才可以看到 Settings。

破解

下载破解包:

$ wget https://mirror.shileizcc.com/Atlassian/Jira/jira7.2-crack-patches.zip
$ unzip jira7.2-crack-patches.zip
$ mv /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/atlassian-extras-3.2.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/atlassian-extras-3.2.jar.back
$ cp -a jira7.2/atlassian-extras-3.1.2.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/atlassian-extras-3.2.jar

重启 Jire 即可生效:

$ /opt/atlassian/jira/bin/shutdown.sh
$ /opt/atlassian/jira/bin/startup.sh

Docker

容器化,停止 Jira:

$ /opt/atlassian/jira/bin/shutdown.sh

备份数据库:

$ docker exec -it mysql sh -c "mysqldump -uroot -pshileizcc.com  jire > /var/lib/mysql/jire_`date +%F_%R`.sql"
$  mv /data/mysql/jire_2020-07-30_13\:07.sql /mnt/

拷贝数据目录:

$ cp -a /var/atlassian/application-data /mnt/
$ cp -a /opt/atlassian /mnt/
$ rm -rf /mnt/atlassian/jira/logs/*
$ cd /mnt

创建 Dockerfile:

Dockerfile
FROM ubuntu:18.04

LABEL AuthorEmail 383821949@qq.com \
      Domain Shileizcc.com \
      CreateTime 2020年 07月 30日 星期四

RUN apt update && \
    echo "Asia/Shanghai" > /etc/timezone && \
    apt install -y tzdata && \
    dpkg-reconfigure -f noninteractive tzdata && \
    apt install -y net-tools openssh-server fonts-baekmuk fonts-nanum language-pack-zh-hans && \
    rm -rf  /var/cache/apt/archives/* && \
    apt clean

COPY atlassian /opt/atlassian
COPY application-data /var/atlassian/application-data
COPY *.sql /
COPY docker-entrypoint.sh /docker-entrypoint.sh

ENV TZ="Asia/Shanghai"
 
EXPOSE 8090 8000
 
CMD ["/docker-entrypoint.sh"]
docker-entrypoint.sh
#!/bin/bash
set -e
# Start Server
/opt/atlassian/jira/bin/startup.sh
 
exec tailf /opt/atlassian/jira/logs/catalina.out

打包:

$ chmod +x docker-entrypoint.sh
$ docker build -t slzcc/jira:8.11.0 .

文档创建于 最后一次更新于  , 文档当前的状态 正式版 , 当前编写页面的版本 V1.3.1 。

  • No labels