1:安装docker 环境

2:docker pull xujianflying/mysql57 

3:   CREATE DATABASE jira91 CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;

4:   下载 atlassian-jira-software-9.1.0.tar.gz

# 软件包大概441M
mkdir -p /data/
cd /data/
<https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-9.1.0.tar.gz>  

5:yum install java -y  

6:   配置 cd /data

             tar xvf atlassian-jira-software-9.1.0.tar.gz
             cd atlassian-jira-software-9.1.0-standalone/

            ./config.sh

7:   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

8: /data/jira-home/dbconfig.xml 

<?xml version="1.0" encoding="UTF-8"?>

<jira-database-config>
<name>defaultDS</name>
<delegator-name>default</delegator-name>
<database-type>mysql57</database-type>
<jdbc-datasource>
<url>jdbc:mysql://address=(protocol=tcp)(host=192.168.108.36)(port=3306)/jira91?sessionVariables=default_storage_engine=InnoDB</url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<username>root</username>
<password>123456</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>
<validation-query-timeout>3</validation-query-timeout>
</jdbc-datasource>
</jira-database-config>

9:    vim /data/atlassian-jira-software-9.1.0-standalone/conf/server.xml

10   cd /data/jira-home/
       wget <https://github.com/nineaiyu/atlassian-agent/releases/download/v1.0.0/atlassian-agent.jar>

11:  启动:

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

标签: none

已有 6 条评论

  1. 叼茂SEO.bfbikes.com

  2. 不错不错,我喜欢看

  3. 叼茂SEO.bfbikes.com

  4. 怎么收藏这篇文章?

  5. 看的我热血沸腾啊https://www.ea55.com/

  6. 哈哈哈,写的太好了https://www.cscnn.com/

添加新评论