confluence
PS:此文档全部由docker部署
1.准备挂载目录
1.给mysql创建data volume卷
[root@i-1-17 ~]# docker volume create confluence-mysql
2.给mysql创建配置文件
[root@i-1-17 ~]# mkdir -p /u01/confluence/mysql/
[root@i-1-17 ~]# cd /u01/confluence/mysql/
[root@i-1-17 mysql]# vim my.cnf
[mysqld]
skip-host-cache
skip-name-resolve
datadir=/var/lib/mysql
#confluence需要打开READ-COMMITTED
transaction-isolation=READ-COMMITTED
max_allowed_packet=512M
innodb_log_file_size=2GB
socket=/var/run/mysqld/mysqld.sock
secure-file-priv=/var/lib/mysql-files
user=mysql
pid-file=/var/run/mysqld/mysqld.pid
[client]
socket=/var/run/mysqld/mysqld.sock
3.给confluence创建目录
[root@i-1-17 ~]# mkdir -p /u01/confluence/confluence
2.安装mysql
[root@i-1-17 ~]# docker pull mysql:8.0
[root@i-1-17 ~]# docker run -itd --name confluence-mysql -v confluence-mysql:/var/lib/mysql -v /u01/confluence/mysql/my.cnf:/etc/my.cnf -p 11002:3306 -e TZ=Asia/Shanghai -e MYSQL_ROOT_PASSWORD=root123 mysql:8.0
[root@isi-12-107 ~]# docker exec -it confluence-mysql mysql -uroot -proot123
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 35666
Server version: 8.0.32 MySQL Community Server - GPL
Copyright (c) 2000, 2023, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
+--------------------+
5 rows in set (0.00 sec)
mysql> create database wiki;
3.安装confluence
[root@i-1-17 ~]# docker pull atlassian/confluence:7.13.4
[root@i-1-17 ~]# docker run -itd --name confluence -v /u01/confluence/confluence:/var/atlassian/application-data/confluence -v /etc/localtime:/etc/localtime -p 11001:8090 atlassian/confluence:7.13.4
4.授权许可
4.1 访问 http://192.168.1.17:11003/
PS:此处使用破解方式授权
4.2 把容器中的一个文件拿出来并且拿到win机器上
[root@i-1-17 ~]# docker cp confluence:/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.4.1.jar ./
[root@i-1-17 ~]# mv atlassian-extras-decoder-v2-3.4.1.jar atlassian-extras-2.4.jar
4.3 下载一个软件
破解软件下载地址:https://link.zhihu.com/?target=https%3A//down.whsir.com/downloads/confluence7.4pojie.zip
4.3.1 解压之后
4.3.2 打开confluence_keygen.jar确保电脑有Java
选中patch打开刚才拿来的包
4.3.3 复制 Confluence Server ID
选中上方key,填入下方对应key框中,进行下一步
4.4 连接数据库
PS:会有mysql数据库依赖包问题,页面会提示,根据提示下载对应包