Server 和 Data Center 产品的重大变更 我们将对 Server 和 Data Center 产品执行一系列变更,包括在 2021 年 2 月 2 日停止销售新 Server 许可证,并在 2024 年 2 月 2 日停止对 Server 的支持。了解这些变更对您的影响。 也就是说以后Jira 更多的是saas版本和数据中心版本。
1. 下载软件包
进入官网 https://www.atlassian.com/zh/software/jira/download
选择同意许可协议,然后提交。如果有其他版本需求,这里也可以选择其他的历史版本。
下载完成后,是一个可执行的bin文件,需要上传到服务器。顺便下载agent,用于学习研究使用。https://gitee.com/pengzhile/atlassian-agent。本项目只做个人学习研究之用,不得用于商业用途!商业使用请向Atlassian购买正版,谢谢合作!
代码语言:javascript复制scp atlassian-jira-software-8.13.2-x64.bin root@192.168.1.200:/root
ssh 182.168.1.200
wget https://gitee.com/pengzhile/atlassian-agent/attach_files/283101/download/atlassian-agent-v1.2.3.tar.gz
## 可以看到两个文件
atlassian-agent-v1.2.3.tar.gz atlassian-jira-software-8.13.2-x64.bin
## 添加可执行权限,并执行。
chmod x atlassian-jira-software-8.13.2-x64.bin
./atlassian-jira-software-8.13.2-x64.bin
2. 创建数据库
这里采用的是postgresql数据库。
代码语言:javascript复制CREATE USER jiraadmin WITH PASSWORD 'password';
CREATE DATABASE jiradb WITH ENCODING 'UNICODE' LC_COLLATE 'C' LC_CTYPE 'C' TEMPLATE template0;
GRANT ALL PRIVILEGES ON DATABASE jiradb TO jiraadmin;
3. 开始安装
代码语言:javascript复制[root@zeyang-nuc-service jira]# ./atlassian-jira-software-8.13.2-x64.bin
Unpacking JRE ...
Starting Installer ...
This will install Jira Software 8.13.2 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]
1 ## 选择默认安装(当你的本地8080 8005 端口被占用可以选择 自定义安装2)
The following default options cannot be used. You will be asked to provide alternatives for these options.
* Home Directory (Existing home directory)
Default location for Jira Software data ## 默认的数据目录
[/var/atlassian/application-data/jira]
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.13.2 is complete
Start Jira Software 8.13.2 now?
Yes [y, Enter], No [n] ## 启动jira服务
Please wait a few moments while Jira Software starts up.
Launching Jira Software ...
Installation of Jira Software 8.13.2 is complete
Your installation of Jira Software 8.13.2 is now ready and can be accessed
via your browser.
Jira Software 8.13.2 can be accessed at http://localhost:8080
Finishing installation ...
开放 8080 端口
代码语言:javascript复制## 开放8080端口
firewall-cmd --add-port=8080/tcp --permanent
systemctl reload firewalld
firewall-cmd --list-all
此时访问jira,会发现出现license问题。
代码语言:javascript复制Technical details
Log's referral number: fa4a4176-5d14-419f-a15f-cebd0d7bd08c
Cause
Referer URL: Unknown
com.atlassian.cache.CacheException: java.lang.IllegalStateException: Unable to parse license: AAABgg0ODAoPeJx9klFvgjAUhd/7K0j2DAJTU..
.....
我们需要在jira启动的时候添加atlassian-agent.jar。
代码语言:javascript复制systemctl stop jira
cd
tar zxf atlassian-agent-v1.2.3.tar.gz
ls
## atlassian-agent-v1.2.3 atlassian-agent-v1.2.3.tar.gz atlassian-jira-software-8.13.2-x64.bin
mv atlassian-agent-v1.2.3/atlassian-agent.jar /opt/atlassian/
编辑文件: /opt/atlassian/jira/bin/setenv.sh
代码语言:javascript复制79 #export JAVA_OPTS
80 export JAVA_OPTS="-javaagent:/opt/atlassian/atlassian-agent.jar ${JAVA_OPTS}"
启动jira systemctl start jira
4. 初始化配置
配置数据库链接信息,待测试连接通过后点击下一步。
设置站点信息
注册
代码语言:javascript复制[root@zeyang-nuc-service atlassian]# java -jar atlassian-agent.jar -d -m admin@test.com -n JIRA -p jira -o http://192.168.1.200:8080 -s BRTQ-XNWS-FZVU-9DZR
====================================================
======= Atlassian Crack Agent =======
======= https://zhile.io =======
======= QQ Group: 30347511 =======
====================================================
Your license code(Don't copy this line!!!):
AAABpg0ODAoPeJyNkt1uozAQhe95CqReQ40rJRDJUlugKi0huyFpV71zyKRxBQaNTdrs068JVP2Lo
pV8Y2vO8Zlv5izn2o6gsD1qUzqh3oRc2Lf3C5sSSqxnBJDbumkA3VQUIBUs9g1kvAIWzqbTeB4mV
6kVInAtahlxDawTOh41xzohiUAVKJpOxZayFJXQsLbLXmCv9vZW60ZNzs//bkUJrqitKRdSg Syg
PitEbgffvMDh4zNsV4E8veU8Vr01lmaTJNFHFlZW60AZ5ulAlTM8d7DnfBqsF63hXa7i6PqjX7lC
O4PoxO1vNBiB0xjC19Yfn4/ITepeAima xLBzwP5uOuOWrl7eoD46Ek3vGyPQyDbXipBvvvRjN85
lKovq4jbUB7AXW9ke96LiVk4hOfWGEttYkaG/Ql4 tKyEsNSrtFXfW x1n8Z3e55tgl6nMO40gil
iZRHmdO6o3IeOxTf3QRBOTLdI8tVA64AzTy6/nit/Mne8ydm6eHpRNET/Nje/xzQ361WGy5gu9b/
Fl8YNigUEN7Jig7EnYAd8h4l8yv/gFQAiiKMC0CFQCLuuECX/7U3ayiI7eUqxkQSEJOzwIUUI1sI
rXvj97xv860m5NjlsvJZF8=X02kc
复制license
注册完成
开始使用!
参考官网文档:https://confluence.atlassian.com/adminjiraserver/connecting-jira-applications-to-postgresql-938846851.html