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购买正版,谢谢合作!
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.bin2. 创建数据库
这里采用的是postgresql数据库。
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. 开始安装
[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 端口
## 开放8080端口 firewall-cmd --add-port=8080/tcp --permanent systemctl reload firewalld firewall-cmd --list-all此时访问jira,会发现出现license问题。
Technical details Logs 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。
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
79 #export JAVA_OPTS 80 export JAVA_OPTS="-javaagent:/opt/atlassian/atlassian-agent.jar ${ JAVA_OPTS}"启动jira systemctl start jira
4. 初始化配置
配置数据库链接信息,待测试连接通过后点击下一步。
设置站点信息
注册
复制license
注册完成
开始使用!
参考官网文档:https://confluence.atlassian.com/adminjiraserver/connecting-jira-applications-to-postgresql-938846851.html
高防服务器