confluence-7.4.0版本centos7部署

准备工作

  • 环境:centos7.9

  • cpu:2

  • 内存:4

  • 硬盘:200G

依赖插件:

  • 数据库:mysql-5.7

  • jdk:1.8

1 安装依赖

1.1 jdk安装

yum search java|grep jdk
yum install java-1.8.0-openjdk*

1.2 mysql安装

wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql-community-server
vim /etc/my.cnf
[mysqld]
...
character-set-server=utf8
collation-server=utf8_bin
default-storage-engine=INNODB
max_allowed_packet=256M
innodb_log_file_size=2GB
sql_mode=ONLY_FULL_GROUP_BY,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
transaction-isolation=READ-COMMITTED
systemctl start  mysqld.service

登录mysql并创建confluence用户和库

mysql -u root 
CREATE DATABASE confluence CHARACTER SET utf8 COLLATE utf8_bin; 
CREATE USER 'confluence'@'%' IDENTIFIED BY 'dqz123456';
GRANT ALL PRIVILEGES ON confluence.* TO 'confluence '@'localhost' IDENTIFIED BY 'dqz123456';
GRANT ALL PRIVILEGES ON confluence.* TO 'confluence'@'%' IDENTIFIED BY 'dqz123456';

或者使用RDS库则需要执行

alter database confluence default collate utf8_bin;

2 confluence安装(这边操作使用的是系统默认安装,可以自己选择自定义安装)

wget https://product-downloads.atlassian.com/software/confluence/downloads/atlassian-confluence-7.4.0-x64.bin
chmod +x atlassian-confluence-7.4.0-x64.bin
./atlassian-confluence-7.4.0-x64.bin

部署confluence.png

3 查看端口和放行端口

ss -tnlp |grep 8090
LISTEN     0      10          :::8090                    :::*                   users:(("java",pid=18657,fd=45))

firewall-cmd --permanent --zone=public --add-port=8090/tcp
firewall-cmd --reload

4 登录配置

用浏览器:http://xxx:8090

4.1 选择中文-产品安装

部署1confluence.png

4.2 直接下一步

部署2confluence.png

4.3 授权码页面(请访问博客17.2 confluence破解)

部署3confluence.png