下载confluence的docker镜像

  1. docker pull cptactionhank/atlassian-confluence

启动confluence容器

  1. docker run
  2. --restart always -d
  3. --name confluence
  4. -p 8090:8090
  5. -v /opt/confluence:/var/atlassian/application-data/confluence // not nessary
  6. -v /etc/localtime:/etc/localtime:ro // not nessary
  7. cptactionhank/atlassian-confluence

打开IP:8090
docker下安装confluence - 图1

docker下安装confluence - 图2
docker下安装confluence - 图3
保存服务器ID,便于后续破解

image.png
安装Java程序以后可以直接打开confluence_keygen.jar

image.png

名字随便,severID填入上图中的ID,点击patch
image.png

选中以后点击gen
docker下安装confluence - 图7

把下面的key复制到安装页面的激活码中
docker下安装confluence - 图8

关于破解文件的复制

  1. 访问 ip:8090 记录下server id
  2. //从容器中复制下来
  3. sudo docker cp d45ec455a4f7:/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.4.1.jar ./atlassian-extras-2.4.jar
  4. //下载到本地
  5. sz atlassian-extras-2.4.jar ( 该破解器只认识这个名称)
  6. //下破解工具
  7. 链接: https://pan.baidu.com/s/1i3qJlCGpelNsx6KRIcUniA 提取码: kpax
  8. 解压后运行confluence_keygen.jar
  9. 点.path 选择atlassian-extras-2.4.jar
  10. 破解成功同目录显示atlassian-extras-2.4.jar.bak
  11. //把atlassian-extras-2.4.jar 文件上传到服务器
  12. //然后复制到容器中
  13. sudo docker cp ./atlassian-extras-2.4.jar d45ec455a4f7:/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.4.1.jar
  14. //停止重启

使用mssql 数据库注意事项

  • docker pull microsoft/mssql-server-linux
  • docker run —name mssql -m 512m -e ‘ACCEPT_EULA=Y’ -e ‘SA_PASSWORD=Sesam123!’ -p 1433:1433 —restart always -d microsoft/mssql-server-linux;
  • create database collation is SQL_Latin1_General_CP1_CS_AS

image.png

  • ALTER DATABASE [dbname] SET READ_COMMITTED_SNAPSHOT ON
  • default instance is empty, do not need to write anything in that field