Docker 安装 Confluence
Docker 安装 Confluencedocker-compose.yaml 如下:atlassian-confluence:image: cptactionhank/atlassian-confluence:7.9.3container_name: confluencenetwork_mode: hostvolumes:- "/etc/timezone:/etc/timezone:ro"- "
Docker 安装 Confluence
docker-compose.yaml 如下:
atlassian-confluence:
image: cptactionhank/atlassian-confluence:7.9.3
container_name: confluence
network_mode: host
volumes:
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
- "./atlassian-confluence/server.xml:/opt/atlassian/confluence/conf/server.xml"
- "./atlassian-confluence/lib/mysql-connector-java-8.0.22.jar:/opt/atlassian/confluence/confluence/WEB-INF/lib/mysql-connector-java-8.0.22.jar"
- "./atlassian-confluence/atlassian-agent.jar:/opt/atlassian/confluence/atlassian-agent.jar"
environment:
CATALINA_OPTS: "-javaagent:/opt/atlassian/confluence/atlassian-agent.jar"
atlassian-agent.jar 可以从如下地址获取:
链接:https://pan.baidu.com/s/1JKgDtoTyXP8hHcooMiJgVQ 密码:0856
server.xml 内容如下,仅修改了 Context 的path值为 ‘/confluence’
[root@alinyum-32 docker]# cat atlassian-confluence/server.xml
<?xml version="1.0"?>
<Server port="8000" shutdown="SHUTDOWN">
<Service name="Tomcat-Standalone">
<Connector port="8090" connectionTimeout="20000" redirectPort="8443" maxThreads="48" minSpareThreads="10" enableLookups="false" acceptCount="10" URIEncoding="UTF-8" protocol="org.apache.coyote.http11.Http11NioProtocol"/>
<Engine name="Standalone" defaultHost="localhost">
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="false" startStopThreads="4">
<Context path="/confluence" docBase="../confluence" reloadable="false" useHttpOnly="true">
<!-- Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->
<Manager pathname=""/>
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60"/>
</Context>
<Context path="${confluence.context.path}/synchrony-proxy" docBase="../synchrony-proxy" reloadable="false" useHttpOnly="true">
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60"/>
</Context>
</Host>
</Engine>
</Service>
</Server>
启动
docker-compose up -d confluence
nginx 配置:
location /confluence {
proxy_pass http://127.0.0.1:8090;
}
使用浏览器访问 http://nginx_ip/confluence ,根据步骤配置,进入到需要输入许可证步骤时,使用如下方式破解。
破解
进入 docker 容器: docker-compose exec confluence bash
进入 atlassian-agent.jar
目录: cd /opt/atlassian/confluence/
使用 java -jar atlassian-agent.jar
查看信息如下:
bash-4.4$ java -jar atlassian-agent.jar
====================================================
======= Atlassian Crack Agent =======
======= https://zhile.io =======
======= QQ Group: 30347511 =======
====================================================
KeyGen usage: java -jar /opt/atlassian/jira/atlassian-agent.jar [-d] [-h] -m
<arg> [-n <arg>] -o <arg> -p <arg> -s <arg>
-d,--datacenter Data center license[default: false]
-h,--help Print help message
-m,--mail <arg> License email
-n,--name <arg> License name[default: <license email>]
-o,--organisation <arg> License organisation
-p,--product <arg> License product, support:
[crowd: Crowd]
[questions: Questions plugin for Confluence]
[crucible: Crucible]
[capture: Capture plugin for JIRA]
[conf: Confluence]
[training: Training plugin for JIRA]
[*: Third party plugin key, looks like:
com.foo.bar]
[bitbucket: Bitbucket]
[tc: Team Calendars plugin for Confluence]
[bamboo: Bamboo]
[fisheye: FishEye]
[portfolio: Portfolio plugin for JIRA]
[jc: JIRA Core]
[jsd: JIRA Service Desk]
[jira: JIRA Software(common jira)]
-s,--serverid <arg> License server ID
================================================================================
# Crack agent usage: append -javaagent arg to system environment: JAVA_OPTS.
# Example(execute this command or append it to setenv.sh/setenv.bat file):
export JAVA_OPTS="-javaagent:/opt/atlassian/jira/atlassian-agent.jar ${JAVA_OPTS}"
# Then start your confluence/jira server.
获取许可证:
如下,参数说明:
-p: 要破解的产品名称,如上帮助信息中打印的 -p 参数说明 ,这里破解的为 jira
-m: 邮箱号,随便写一个
-n: 名称,随便写
-o: 网站地址
-s: 服务器ID,在浏览器注册页面查看
破解命令:
bash-4.4$ java -jar atlassian-agent.jar -p conf -m aaa@xx.com -n kevin -o https://zhile.io -s BPST-Q7BN-WG5A-9BZ9
====================================================
======= Atlassian Crack Agent =======
======= https://zhile.io =======
======= QQ Group: 30347511 =======
====================================================
Your license code(Don't copy this line!!!):
AAABgA0ODAoPeJx9kl9vgjAUxd/5FCR7LoJ/5jBpMgWysAC6oTPZW8WrdsNCbgvTffqhYKLTmPSlT
c+5v3vufZjDUn8thG529LY16NiDrqk78VRvm21TWyOA2GR5DmgEPAEhYbrPIWJboM44DL13xx8Gm
oPAFM+EyxTQg5CYj8TsaHckLsgEeX5Q0ZlI+ZarCiStBfpir2+UyuWg1frd8BQMnmkh40KBYCIBb
5dz3DfVnmxi9qujfXFkJ0pvyWvrKPBDf+q5WlRsF4Dj1UwCSkqsE9wdrxyzZZEo43AhMlupH4ZgX
Bnd+csSxUugCgu4yPL8ven5o3I7ELc1r2RpccyTrlgqQRvjmgku66erXJxMqMrPq/JJKWPsebczk
mxbY92GPS9/hz5WDBVgQ9Hk5bs08N3Yi0hg9WzLsq3ek2l3Oxfx35p4DFgCVvLRJJ6St/4oIvOX3
pDYo0/71qJdj3BSYLJhEv6v2bkYqh3BHLls2qtA6Q3YJrQj4zeUXPwBk5YISDAsAhR1loAFS4Olz
xWph1Pg27/qY+J6vgIUBlA/pjPdqYsR6wcVpnfVLOoEtaw=X02im
bash-4.4$
以上命令执行完后,会输出破解后的 许可证,将其复制到浏览器许可证中即可破解,完成后按步骤安装完成即可。
#在 Linux安装Confluence
下载 Confluence
下载地址: https://www.atlassian.com/software/confluence/download-archives
下载 tar.gz
文件 我这里下载的是 atlassian-confluence-7.4.9.tar
版本
解压文件到指定目录:
[root@alinyum-32 sortware]# tar -zxvf atlassian-confluence-7.4.9.tar -C /opt
[root@alinyum-32 sortware]# cd /opt
[root@alinyum-32 sortware]# ln -s /opt/atlassian-confluence-7.4.9 /opt/atlassian-confluence
修改配置:
## 修改 Context 的path 值为 /confluence
[root@alinyum-32 sortware]# vim /opt/atlassian-confluence/conf/server.xml
<?xml version="1.0"?>
<Server port="8000" shutdown="SHUTDOWN">
<Service name="Tomcat-Standalone">
<Connector port="8090" connectionTimeout="20000" redirectPort="8443" maxThreads="48" minSpareThreads="10" enableLookups="false" acceptCount="10" URIEncoding="UTF-8" protocol="org.apache.coyote.http11.Http11NioProtocol"/>
<Engine name="Standalone" defaultHost="localhost">
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="false" startStopThreads="4">
<Context path="/confluence" docBase="../confluence" reloadable="false" useHttpOnly="true">
<!-- Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->
<Manager pathname=""/>
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60"/>
</Context>
<Context path="${confluence.context.path}/synchrony-proxy" docBase="../synchrony-proxy" reloadable="false" useHttpOnly="true">
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60"/>
</Context>
</Host>
</Engine>
</Service>
</Server>
[root@alinyum-32 sortware]# vim /opt/atlassian-confluence/bin/setenv.sh
# 找到很多有 CATALINA_OPTS配置的位置,在最上面加上此行,atlassian-agent.jar文件可以通过上面 Docker方式安装的百度云盘获取。
CATALINA_OPTS="-javaagent:/opt/atlassian-confluence/atlassian-agent.jar"
CATALINA_OPTS="-XX:+IgnoreUnrecognizedVMOptions ${CATALINA_OPTS}"
## 设置 confluence home目录 ,并创建该目录
[root@alinyum-32 sortware]# vim /opt/atlassian-confluence/confluence/WEB-INF/classes/confluence-init.properties
confluence.home=/opt/atlassian-confluence/data
[root@alinyum-32 sortware]# mkdir -p /opt/atlassian-confluence/data
## 赋予目录所有者为指定用户
[root@alinyum-32 sortware]# chown -R kevin:kevin /opt/atlassian-confluence*
加入systemctl系统服务 :
参考: https://confluence.atlassian.com/confkb/run-confluence-as-a-systemd-service-on-linux-937177781.html
[root@alinyum-32 sortware]# cat /lib/systemd/system/confluence.service
[Unit]
Description=Atlassian Confluence Server
Documentation=https://confluence.atlassian.com/doc/installing-confluence-on-linux-from-archive-file-255362363.html
After=network.targe
[Service]
Type=forking
PIDFile=/opt/atlassian-confluence/work/catalina.pid
ExecStart=/opt/atlassian-confluence/bin/start-confluence.sh
User=kevin
ExecStop=/opt/atlassian-confluence/bin/stop-confluence.sh
TimeoutSec=200
LimitNOFILE=4096
LimitNPROC=4096
[Install]
WantedBy=multi-user.target
[root@alinyum-32 sortware]#
加入数据库驱动包
根据你要使用的数据库,将对应的驱动包加入到 /opt/atlassian-confluence/confluence/WEB-INF/lib
目录中。
启动服务
[root@alinyum-32 sortware]# systemctl daemon-reload
[root@alinyum-32 sortware]# systemctl enable confluence.service
[root@alinyum-32 sortware]# systemctl start confluence.service
[root@alinyum-32 sortware]# systemctl status confluence.service
破解
破解方式按上面 Docker安装方式破解即可。
更多推荐
所有评论(0)