项目管理之jira 9.1安装
项目管理之jira 9.1安装
系统环境centos8
1.下载程序包
a,访问下载连接,进行下载最新的安装包 更新 Jira Software Server | Atlassian
# 软件包大概441M
mkdir -p /data/
cd /data/
https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-9.1.0.tar.gz
b.1 本次使用的是postgresql数据库 Connecting Jira applications to PostgreSQL | Administering Jira applications Data Center and Server 9.1 | Atlassian Documentation
postgresql 数据库安装可以参考 安装postgresql 数据库_第九系艾文的博客-CSDN博客
CREATE USER jiradbuser WITH ENCRYPTED PASSWORD 'jiradbpwd..';
CREATE DATABASE jiradb WITH ENCODING 'UNICODE' LC_COLLATE 'C' LC_CTYPE 'C' TEMPLATE template0;
grant all privileges on database jiradb to jiradbuser;
c,准备jdk环境,如有可忽略
Jira requires 1.8 or 11 to run.Centos 8 默认安装就是1.8的,可以通过dnf直接安装
dnf install java -y
2.安装
tar xvf atlassian-jira-software-9.1.0.tar.gz
cd atlassian-jira-software-9.1.0-standalone/
一种是通过jira自带的命令进行配置
cd /data/atlassian-jira-software-9.1.0-standalone/bin
./config.sh
第二种是自己进行配置
a.创建jira-home 并配置
mkdir -pv /data/jira-home
vim /data/atlassian-jira-software-9.1.0-standalone/atlassian-jira/WEB-INF/classes/jira-application.properties
# 增加配置项
jira.home = /data/jira-home
b.在jira-home下创建一个文件名为 dbconfig.xml 的文件,用与连接数据库
vim dbconfig.xml
<?xml version="1.0" encoding="UTF-8"?>
<jira-database-config>
<name>defaultDS</name>
<delegator-name>default</delegator-name>
<database-type>postgres72</database-type>
<schema-name>public</schema-name>
<jdbc-datasource>
<url>jdbc:postgresql://127.0.0.1:5432/jiradb</url>
<driver-class>org.postgresql.Driver</driver-class>
<username>jiradbuser</username>
<password>jiradbpwd..</password>
<pool-min-size>40</pool-min-size>
<pool-max-size>40</pool-max-size>
<pool-max-wait>30000</pool-max-wait>
<validation-query>select 1</validation-query>
<min-evictable-idle-time-millis>60000</min-evictable-idle-time-millis>
<time-between-eviction-runs-millis>300000</time-between-eviction-runs-millis>
<pool-max-idle>40</pool-max-idle>
<pool-remove-abandoned>true</pool-remove-abandoned>
<pool-remove-abandoned-timeout>300</pool-remove-abandoned-timeout>
<pool-test-on-borrow>false</pool-test-on-borrow>
<pool-test-while-idle>true</pool-test-while-idle>
<connection-properties>tcpKeepAlive=true;socketTimeout=240</connection-properties>
</jdbc-datasource>
</jira-database-config>
c.修改访问端口,默认是8080
vim /data/atlassian-jira-software-9.1.0-standalone/conf/server.xml
d.添加启动用户,并授权,不建议通过root用户启动
useradd --create-home --comment 'Account for running Jira Software' --shell /bin/bash jira
chown -R jira.jira /data/jira-home/ /data/atlassian-jira-software-9.1.0-standalone/
e.启动服务
提前下载准备好的agent
cd /data/jira-home/
wget https://github.com/nineaiyu/atlassian-agent/releases/download/v1.0.0/atlassian-agent.jar
su - jira
export LIB_PATH="/data/atlassian-jira-software-9.1.0-standalone/atlassian-jira/WEB-INF/lib/"
export JAVA_OPTS="-javaagent:/data/jira-home/atlassian-agent.jar=${LIB_PATH}"
cd /data/atlassian-jira-software-9.1.0-standalone/bin
./start-jira.sh
3.密钥破解
java -jar atlassian-agent.jar -m 'jira@qq.com' -p jira -o 'http://192.168.179.132:8080' -s 'BINY-U5YX-P3QI-WXGV'
将通过命令获取的license填入页面License Key中
打开页面会发现有错误提示,如果没有问题请忽略下面内容
您使用的产品许可证不合法。请联系您的许可证颁发者或颁发机构
看了下文档,是新版本增加了加入了一个证书哈希验证,可以自己下载源码编译
GitHub - nineaiyu/atlassian-agent: Atlassian's productions crack.
所需要的agent我这里已经准备好了
git clone https://github.com/nineaiyu/atlassian-agent.git
编译jar包
1.安装maven环境
dnf install maven -y
2.增加国内pom源,可以增加阿里云
vim /etc/maven/settings.xml
<mirrors>
<mirror>
<id>aliyun</id>
<mirrorOf>central</mirrorOf>
<name>aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
</mirrors>
3.执行编译命令
mvn clean && mvn install -Dmvn.test.skip=true
4.将编译好的jar包,复制到 /data/jira-home/atlassian-agent.jar
cp target/atlassian-agent-jar-with-dependencies.jar /data/jira-home/atlassian-agent.jar
启动服务
su - jira
export LIB_PATH="/data/atlassian-jira-software-9.1.0-standalone/atlassian-jira/WEB-INF/lib/"
export JAVA_OPTS="-javaagent:/data/jira-home/atlassian-agent.jar=${LIB_PATH}"
cd /data/atlassian-jira-software-9.1.0-standalone/bin
./start-jira.sh
git上面发现了一个容器部署方案,可以参考 GitHub - haxqer/jira: The simplest docker file of JIRA. Support v9.1.0
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
所有评论(0)