部署jira和confluence

一、下载产品

https://product-downloads.atlassian.com/

二、安装

2.1 将安装包上传到服务器,增加可执行权限并运行。

chmod +x atlassian-confluence-7.13.2-x64.bin
chmod +x atlassian-jira-software-8.20.1-x64.bin
#赋予执行权限

./atlassian-confluence-7.13.2-x64.bin
./atlassian-jira-software-8.20.1-x64.bin
#执行安装程序,根据提示进行安装。

2.2 安装atlassian-agent和JDK

/opt/atlassian/confluence/bin/shutdown.sh
#停止confluence服务

/opt/atlassian/jira/atlassian-jira/WEB-INF/lib
/opt/atlassian/confluence/confluence/WEB-INF/lib
#上传jdbc驱动到此目录

yum install jdk-8u301-linux-x64.rpm -y
#上传并安装JDK1.8(过程略)

https://gitee.com/pengzhile/atlassian-agent/releases
#下载atlassian-agent

/opt/atlassian-agent
#上传atlassian-agent到此目录

vim /opt/atlassian/jira/bin/setenv.sh
vim /opt/atlassian/confluence/bin/setenv.sh
#修改配置文件

#在配置文件中添加行,或在/etc/profile中添加
export JAVA_OPTS="-javaagent:/opt/atlassian-agent/atlassian-agent.jar ${JAVA_OPTS}"

#启动jira和confluence

2.3 执行atlassian-agent

java -jar atlassian-agent.jar -p jira -m abc@abc.com -n atlassian -o https://abc.com -s BC8W-VTBA-PH6Z-5NW6
java -jar atlassian-agent.jar -p conf -m abc@abc.com -n atlassian -o https://abc.com -s B6YW-XT66-Q439-NC7C
# 生成的许可证,直接复制于注册页面提交即可

-p jira或conf
-m abc@abc.com(随意写)
-n my_name(随意写)
-o https://abc.com (随意写)
-s B3N1-KDPW-IYEI-14CE (即jira显示的服务器ID)

2.4 jira和confluence对mysql的参数要求如下:

#JIRA
default-storage-engine=INNODB
character_set_server=utf8mb4
innodb_default_row_format=DYNAMIC
innodb_large_prefix=ON
innodb_file_format=Barracuda
innodb_log_file_size=2G

#confluence
transaction-isolation=READ-COMMITTED

#如果mysql数据库开启了binlog
log_bin_trust_function_creators=1

2.5 创建数据库

CREATE DATABASE `confluence` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
CREATE DATABASE `jira` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
grant all on confluence.* to atlassian@"localhost";
grant all on jira.* to atlassian@"localhost";

数据库字符集要求:utf8mb4

数据库排序规则要求:utf8mb4_bin

标签: Atlassian

添加新评论