docker pull mysql/mysql-server:5.7
docker run \
-d \
--name mysqlserver \
-e MYSQL_ROOT_PASSWORD=faw-vwzhijie123 \
-e TZ=Asia/Shanghai \
-p 3307:3307 \
mysql/mysql-server:5.7
docker pull atlassian/confluence-server:7.15.1
docker cp /home/d/mysql-connector-java-5.1.49-bin.jar 1195ef11d768:/opt/atlassian/confluence/confluence/WEB-INF/lib/mysql-connector-java-5.1.49-bin.jar
删除文件夹(有历史失败文件就需要删除,没有就可以跳过)
rm -rf /usr/local/docker/confluence7/
docker run \
-d \
--name confluence \
--restart=always \
--privileged=true \
-e TZ=Asia/Shanghai \
-p 9999:8090 \
-p 8091:8091 \
-v /usr/local/docker/confluence7:/var/atlassian/application-data/confluence \
atlassian/confluence-server:7.15.1
下载confluence容器中的atlassian-extras-decoder-v2-3.4.1.jar至linux中,在拷贝到本地
docker cp 1195ef11d768:/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.4.1.jar /home/d/atlassian-extras-decoder-v2-3.4.1.jar
使用工具进行进行破解
![在这里插入图片描述](https://img-blog.csdnimg.cn/direct/f112b3e050c446cda2054b16210057b0.png
atlassian-extras-2.4.jar
atlassian-extras-decoder-v2-3.4.1.jar
将拷贝出的文件,重命名后的 atlassian-extras-2.4.jar ,然后点击.patch,之后点击.gen! 生成Key
注释:破解工具智能识别atlassian-extras-2.4.jar
![在这里插入图片描述](https://img-blog.csdnimg.cn/direct/befb8b0034d3453d947fcf57aa99c57f.png
点击next
进入mysql进行编码设置
ALTER DATABASE confluence COLLATE utf8_bin;
ALTER DATABASE confluence COLLATE utf8mb4_bin;
FLUSH PRIVILEGES;
SELECT @@character_set_database, @@collation_database;
设置mysql数据库隔离
SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
SET GLOBAL TRANSACTION ISOLATION LEVEL READ COMMITTED;
SELECT @@global.tx_isolation;
到这里,整个confluence安装完毕