介绍:
Confluence是一个专业的企业知识管理与协同软件,也可以用于构建企业wiki。使用简单,但它强大的编辑和站点管理特征能够帮助团队成员之间共享信息、文档协作、集体讨论,信息推送。
confluence是Atlassian公司的,截止2023年12月,confluence最高的一个版本是8.7.1;confluence也有长期支持的版本,现在最高的就是8.5.4。
这次安装的是最新稳定版本8.5.4,由于之前我们公司使用的是7.9.4版本,官方发布存在各种漏洞
一、环境准备:
**1.系统:**Centos8
2.关闭selinux
3.数据库mysql8.0.26
4.mysql驱动
5.atlassian-confluence-8.5.-x64.bin
6.破解atlassian-agent-v1.3.1.zip
7.开启防火墙并开放端口
systemctl start firewalld
systemctl enable firewalld
firewall-cmd--zone=public --add-port=8090/tcp --permanentwall
firewall-cmd--zone=public --add-port=3306/tcp --permanentwall
firewall-cmd --reload
- 1
- 2
- 3
- 4
- 5
二、官网下载地址
Confluence Server 下载档案 |Atlassian
三、安装数据库mysql8.0.26
解压:
tar -xvf mysql-8.0.26-1.el8.x86_64.rpm-bundle.tar
- 1
[root@localhost mysql]
警告:mysql-community-common-8.0.26-1.el7.x86_64.rpm: 头V3 DSA/SHA256 Signature, 密钥 ID 5072e1f5: NOKEY
准备中...
正在升级/安装...
1:mysql-community-common-8.0.26-1.e
- 1
- 2
- 3
- 4
- 5
- 6
- 7
[root@localhost mysql]
警告:mysql-community-libs-8.0.26-1.el7.x86_64.rpm: 头V3 DSA/SHA256 Signature, 密钥 ID 5072e1f5: NOKEY
错误:依赖检测失败:
mysql-community-client-plugins = 8.0.26-1.el7 被 mysql-community-libs-8.0.26-1.el7.x86_64 需要
[root@localhost mysql]
mysql-community-client-8.0.26-1.el7.x86_64.rpm mysql-community-common-8.0.26-1.el7.x86_64.rpm
mysql-community-client-plugins-8.0.26-1.el7.x86_64.rpm
[root@localhost mysql]
警告:mysql-community-client-plugins-8.0.26-1.el7.x86_64.rpm: 头V3 DSA/SHA256 Signature, 密钥 ID 5072e1f5: NOKEY
准备中...
正在升级/安装...
1:mysql-community-client-plugins-8.
[root@localhost mysql]
警告:mysql-community-libs-8.0.26-1.el7.x86_64.rpm: 头V3 DSA/SHA256 Signature, 密钥 ID 5072e1f5: NOKEY
准备中...
正在升级/安装...
1:mysql-community-libs-8.0.26-1.el7
[root@localhost mysql]
警告:mysql-community-client-8.0.26-1.el7.x86_64.rpm: 头V3 DSA/SHA256 Signature, 密钥 ID 5072e1f5: NOKEY
准备中...
正在升级/安装...
1:mysql-community-client-8.0.26-1.e
[root@localhost mysql]
警告:mysql-community-server-8.0.26-1.el7.x86_64.rpm: 头V3 DSA/SHA256 Signature, 密钥 ID 5072e1f5: NOKEY
准备中...
正在升级/安装...
1:mysql-community-server-8.0.26-1.e
[root@localhost mysql]
[root@localhost mysql]
● mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: active (running) since 二 2023-11-07 11:23:48 CST; 19s ago
Docs: man:mysqld(8)
http://dev.mysql.com/doc/refman/en/using-systemd.html
Process: 14332 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
Main PID: 14448 (mysqld)
Status: "Server is operational"
Tasks: 38
Memory: 480.0M
CGroup: /system.slice/mysqld.service
└─14448 /usr/sbin/mysqld
11月 07 11:23:10 localhost.localdomain systemd[1]: Starting MySQL Server...
11月 07 11:23:48 localhost.localdomain systemd[1]: Started MySQL Server.
[root@localhost mysql]systemctl enable mysqld
[root@localhost mysql]
2023-11-07T03:23:31.386425Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: rX(LlK
[root@localhost mysql]
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.26
Copyright (c) 2000, 2021, 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> ALTER USER 'root'@'localhost' IDENTIFIED BY 'confluence';
Query OK, 0 rows affected (0.10 sec)
mysql> create database confluence default character set utf8mb4;
Query OK, 1 row affected, 1 warning (0.15 sec)
mysql> create user 'confluence'@'%' identified by 'confluence';
Query OK, 0 rows affected (0.17 sec)
mysql> grant all PRIVILEGES on *.* to confluence@'%';
Query OK, 0 rows affected (0.16 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.03 sec)
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
四、安装confluence及破jie
1.上传atlassian-confluence-8.5.-x64.bin 到/opt目录
2.更改安装权限
chmod +x atlassian-confluence-8.5.-x64.bin
- 1
3.安装confluence,期间需要输入o 1 i y 如下图所示
[root@confluence opt]
Regenerating the font cache
Fonts and fontconfig have been installed
Unpacking JRE ...
Starting Installer ...
This will install Confluence 8.5.4 on your computer.
OK [o, Enter], Cancel [c]
o
Click Next to continue, or Cancel to exit Setup.
Choose the appropriate installation or upgrade option.
Please choose one of the following:
Express Install (uses default settings) [1],
Custom Install (recommended for advanced users) [2, Enter],
Upgrade an existing Confluence installation [3]
1
See where Confluence will be installed and the settings that will be used.
Installation Directory: /opt/atlassian/confluence
Home Directory: /var/atlassian/application-data/confluence
HTTP Port: 8090
RMI Port: 8000
Install as service: Yes
Install [i, Enter], Exit [e]
i
Extracting files ...
Please wait a few moments while we configure Confluence.
Start Confluence now?
Yes [y, Enter], No [n]
y
Please wait a few moments while Confluence starts up.
Launching Confluence ...
Your installation of Confluence 8.5.4 is now ready and can be accessed via
your browser.
Confluence 8.5.4 can be accessed at http://localhost:8090
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html
Finishing installation ...
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
4.浏览器上打开服务器ip:8090
5.记录服务器id
6.进行破jie
先停掉confluence
/etc/init.d/confluence stop
- 1
上传破解包atlassian-agent-v1.3.1.zip 到/opt/atlassian 并解压
unzip atlassian-agent-v1.3.1.zip
- 1
切换到目录
cd /opt/atlassian/confluence/bin
- 1
编辑
[root@confluence bin]
export JAVA_OPTS="-javaagent:/opt/atlassian/atlassian-agent-v1.3.1/atlassian-agent.jar ${JAVA_OPTS}"
- 1
- 2
- 3
- 4
- 5
再次启动confluence
[root@confluence bin]
- 1
查看是否java进程在
[root@confluence bin]
conflue+ 2969 329 12.5 5613960 997068 ? Sl 04:25 0:39 /opt/atlassian/confluence/jre//bin/java -Djava.util.logging.config.file=/opt/atlassian/confluence/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -javaagent:/opt/atlassian/atlassian-agent-v1.3.1/atlassian-agent.jar -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Datlassian.plugins.startup.options= -Dorg.apache.tomcat.websocket.DEFAULT_BUFFER_SIZE=32768 -Dconfluence.context.path= -Dsynchrony.enable.xhr.fallback=true -Datlassian.plugins.enable.wait=300 -Djava.awt.headless=true -Xlog:gc*:file=/opt/atlassian/confluence/logs/gc-%t.log:tags,time,uptime,level:filecount=5,filesize=2M -XX:G1ReservePercent=20 -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+IgnoreUnrecognizedVMOptions @/opt/atlassian/confluence/confluence/WEB-INF/jpms-args.txt -XX:ReservedCodeCacheSize=256m -Xms1024m -Xmx1024m -Dignore.endorsed.dirs= -classpath /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jar -Dcatalina.base=/opt/atlassian/confluence -Dcatalina.home=/opt/atlassian/confluence -Djava.io.tmpdir=/opt/atlassian/confluence/temp org.apache.catalina.startup.Bootstrap start
root 3030 0.0 0.0 12348 1156 pts/0 S+ 04:25 0:00 grep --color=auto javaagent
- 1
- 2
- 3
执行破解jar包会得到一个授权码
[root@confluence bin]
- 1
复制授权码到web上
五、数据库驱动
上传mysql-connector-java-8.0.26.jar到/opt/atlassian/confluence/confluence/WEB-INF/lib/
再次重启conluence
[root@confluence lib]
- 1
到此,confluence安装破解完毕
六、以下是登录的时候报错参考
解决办法:
set global transaction isolation level READ COMMITTED;
- 1
如上面方法还是无法登录
找到目录,var/atlassian/application-data/confluence/confluence.cfg.xml 如下配置项hibernate.connection.url增加 sessionVariables=transaction_isolation=‘READ-COMMITTED’,如下
重启confluence即可解决
注意:
mysql 8.x配置 sessionVariables=transaction_isolation=‘READ-COMMITTED’
mysql 5.x配置 sessionVariables=tx_isolation=‘READ-COMMITTED’
七、破解链接下载
链接:https://pan.baidu.com/s/1Rke9p2b0l1dTF9Phy2ZRuA
提取码:8j8f