搭建jira+confluence

前言

jira 是什么

  • 类似禅道之类的bug

confluence是什么

  • 站内wiki

分析

  • 下载jira
  • 破解jira
  • 下载confluence
  • 破解confluence
  • 结合jira的账号和confluence

搭建jira

下载jira

JIRA下载地址

JIRA

下载到本地并上传到服务器

  • 略,通过ftp等方法上传

安装mysql5.7

version: '3.3'

services:
  jira_mysql:
    environment:
        MYSQL_ROOT_PASSWORD: 123456
    image: mysql:5.7
    restart: always
    volumes:
        - /opt/confluence/mysql/data/:/var/lib/mysql/
        - /opt/confluence/mysql/conf/:/etc/mysql/
    ports:
        - 5306:3306
    container_name: jira_mysql
  • 数据库配置
[mysqld]
[mysqld]
character_set_server=utf8mb4
innodb_default_row_format=DYNAMIC
innodb_large_prefix=ON
innodb_file_format=Barracuda
innodb_log_file_size=2G

character-set-server=utf8
collation-server=utf8_bin
default-storage-engine=INNODB
transaction-isolation=READ-COMMITTED
binlog_format=row
max_allowed_packet = 56M
mkdir -p /opt/confluence/mysql/{conf,data}
docker-compose up -d
mysql -uroot -h127.0.0.1 -p -P5306
create database jira default character set utf8 collate utf8_bin;
create database confluence default character set utf8 collate utf8_bin;

安装JIRA

[root@test2 jira]# chmod a+x atlassian-jira-software-8.2.4-x64.bin 
[root@test2 jira]# ll
total 361156
-rwxr-xr-x 1 root root 369821593 Jul 22 11:29 atlassian-jira-software-8.2.4-x64.bin
[root@test2 jira]# ./atlassian-jira-software-8.2.4-x64.bin 
Unpacking JRE ...
Starting Installer ...

This will install JIRA Software 8.2.4 on your computer.
OK [o, Enter], Cancel [c]
o
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
The following default options cannot be used. You will be asked to provide alternatives for these options.
* HTTP Port (In use)


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], Set custom value for HTTP and Control ports [2, Enter]

HTTP Port Number
[8080]

Control Port Number
[8005]

The HTTP port you have chosen appears to be in use.  Please choose a different port number.

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], Set custom value for HTTP and Control ports [2, Enter]

HTTP Port Number
[8080]

Control Port Number
[8005]

The HTTP port you have chosen appears to be in use.  Please choose a different port number.

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], Set custom value for HTTP and Control ports [2, Enter]

HTTP Port Number
[8080]

Control Port Number
[8005]

The HTTP port you have chosen appears to be in use.  Please choose a different port number.

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], Set custom value for HTTP and Control ports [2, Enter]

HTTP Port Number
[8080]

Control Port Number
[8005]

The HTTP port you have chosen appears to be in use.  Please choose a different port number.

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], Set custom value for HTTP and Control ports [2, Enter]
1
The HTTP port you have chosen appears to be in use.  Please choose a different port number.

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], Set custom value for HTTP and Control ports [2, Enter]

HTTP Port Number
[8080]
8001  
Control Port Number
[8005]
8005

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: 8001 
RMI Port: 8005 
Install as service: Yes 
Install [i, Enter], Exit [e]
i

Extracting files ...
                                                                           

Please wait a few moments while JIRA Software is configured.

Installation of JIRA Software 8.2.4 is complete
Start JIRA Software 8.2.4 now?
Yes [y, Enter], No [n]
y

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

Installation of JIRA Software 8.2.4 is complete
Your installation of JIRA Software 8.2.4 is now ready and can be accessed
via your browser.
JIRA Software 8.2.4 can be accessed at http://localhost:8001
Finishing installation ...

WEB打开


选择语言

选择中文

下一步
连接数据库

缺少mysql5.7驱动

安装com.mysql.jdbc.Driver

  • 安装驱动
    参考配置文件
wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.47.tar.gz
[root@test2 mysql-connector-java-5.1.47]# cp *.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/
测试连接数据库成功

设置标题
  • 破解输入KEY


    key从何而来
注册或获取key
配置信息
选择语言

头像

完成配置

创建新项目


创建新项目

image.png

image.png
  • 参考文档
    数据库问题

搭建confluence

下载confluence

wget https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-6.13.0-x64.bin 

运行安装

chmod a+x atlassian-confluence-6.13.0-x64.bin
[root@test2 confluence]# ./atlassian-confluence-6.13.0-x64.bin 
Unpacking JRE ...
Starting Installer ...

This will install Confluence 6.13.0 on your computer.
OK [o, Enter], Cancel [c]
o
Click Next to continue, or Cancel to exit Setup.

Choose the appropriate installation or upgrade option.
Please choose one of the following:
Express Install (uses default settings) [1], 
Custom Install (recommended for advanced users) [2, Enter], 
Upgrade an existing Confluence installation [3]
1

See where Confluence will be installed and the settings that will be used.
Installation Directory: /opt/atlassian/confluence 
Home Directory: /var/atlassian/application-data/confluence 
HTTP Port: 8090 
RMI Port: 8000 
Install as service: Yes 
Install [i, Enter], Exit [e]
i

Extracting files ...
                                                                           

Please wait a few moments while we configure Confluence.

Installation of Confluence 6.13.0 is complete
Start Confluence now?
Yes [y, Enter], No [n]
y

Please wait a few moments while Confluence starts up.
Launching Confluence ...
Installation of Confluence 6.13.0 is complete
Your installation of Confluence 6.13.0 is now ready and can be accessed via
your browser.
Confluence 6.13.0 can be accessed at http://localhost:8090
Finishing installation ...
安装过程

页面查看


选择语言,选择产品安装,选择下一步

点击下一步

破解输入key

停止confluence

/opt/atlassian/confluence/bin/stop-confluence.sh

下载破解程序

链接: https://pan.baidu.com/s/1zHIzeXDjqwcPUsRdcVNU9w 提取码: w51i 复制这段内容后打开百度网盘手机App,操作更方便哦

在window打开并创建目录


创建放破解文件

传文件到新建的目录破解

  • linux 备份文件atlassian-extras-decoder-v2-3.4.1.jar
mv /opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.4.1.jar ./
  • 传文件到windows破解目录并重命名为atlassian-extras-2.4.jar


    从Linux下拉到windows并重命名
破解成功
选择path,选择的文件

上传破解的文件到服务器上,并移动到原来的位置

image.png
 cp atlassian-extras-2.4.jar /opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.4.1.jar

启动confluence

/opt/atlassian/confluence/bin/start-confluence.sh

拷贝到webKEY 位置

输入key

配置数据库

image.png

显示没有驱动

没有数据库驱动

和商面jira一样

wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.47.tar.gz
tar -xf mysql-connector-java-5.1.47.tar.gz
cd mysql-connector-java-5.1.47
cp *.jar /opt/atlassian/confluence/confluence/WEB-INF/lib

重启并刷新web页面

连接数据库
  • 测试连接报错,请修改为上面数据库的配置
选择空白站点
image.png

image.png

配置confluence完成


安装confluence完成
跳过
完成
完成破解

你可能感兴趣的:(搭建jira+confluence)