Confluence可谓目前最强大的Wiki系统,但它是个收费软件。本文讲解如何安装、部署、破解Confluence,部署的环境是Docker。
FROM atlassian/confluence-server:6.6
MAINTAINER 郑
# 传入破解补丁
ADD crack/atlassian-extras-decoder-v2-3.2.jar ${CONFLUENCE_INSTALL_DIR}/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.2.jar
# 设置文件属组
RUN chown -R ${RUN_USER}:${RUN_GROUP} ${CONFLUENCE_INSTALL_DIR}/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.2.jar
CMD ["/entrypoint.sh", "-fg"]
ENTRYPOINT ["/sbin/tini", "--"]
1
2
3
4
5
6
7
8
root@dev:~/docker/confluence# docker build --rm -t confluence:test .
1
docker cp ./crack/mysql-connector-java-5.1.44.jar confluence:/opt/atlassian/confluence/confluence/WEB-INF/lib/
1
docker restart confluence
1
编写mysql配置
[client]
default-character-set = utf8
[mysql]
default-character-set = utf8
[mysqld]
character_set_server = utf8
collation-server = utf8_bin
transaction_isolation = READ-COMMITTED
1
2
3
4
5
6
7
8
配置存放路径$PWD/mysql/my.cnf,当前位置下mysql目录,启动mysql
docker run --name mysql -p 3306:3306 -v $PWD/mysql:/etc/mysql/conf.d -e MYSQL_ROOT_PASSWORD=666666 -e MYSQL_DATABASE=confluence -d mysql:5.7
1
测试连接
mysql -h192.168.97.57 -p3306 -uroot -p666666
1
docker run -it --name="confluence" -d -p 8090:8090 -p 8091:8091 confluence:test
1
查看破解是否成功
Your URL doesn't match
Confluence's base URL is set to ${catalinaconnectorscheme}://${catalinaconnectorproxyname}:8090 but you are accessing Confluence from http://192.168.97.57:8090.
1
2
修改tomcat/conf/server.xml配置
scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"
scheme="http" proxyName="ip" proxyPort="8090"
1
2
3