wiki的confluence 8.5.4安装部署及破j

本文详细介绍了如何在CentOS8环境中安装Confluence8.5.4版本,包括数据库MySQL8.0.26的配置,以及如何破解并设置授权。还提供了针对登录问题的解决方案和破解资源链接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

confluence 8.5.4安装部署及破j

介绍:

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

二、官网下载地址

Confluence Server 下载档案 |Atlassian

三、安装数据库mysql8.0.26

在这里插入图片描述

解压:

tar -xvf  mysql-8.0.26-1.el8.x86_64.rpm-bundle.tar
[root@localhost mysql]# rpm -ivh mysql-community-common-8.0.26-1.el7.x86_64.rpm 
警告:mysql-community-common-8.0.26-1.el7.x86_64.rpm: 头V3 DSA/SHA256 Signature, 密钥 ID 5072e1f5: NOKEY
准备中...                          ################################# [100%]
正在升级/安装...
   1:mysql-community-common-8.0.26-1.e################################# [100%]


[root@localhost mysql]# rpm -ivh mysql-community-libs-8.0.26-1.el7.x86_64.rpm 
警告: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]# rpm -ivh mysql-community-c
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]# rpm -ivh mysql-community-client-plugins-8.0.26-1.el7.x86_64.rpm 
警告:mysql-community-client-plugins-8.0.26-1.el7.x86_64.rpm: 头V3 DSA/SHA256 Signature, 密钥 ID 5072e1f5: NOKEY
准备中...                          ################################# [100%]
正在升级/安装...
   1:mysql-community-client-plugins-8.################################# [100%]
[root@localhost mysql]# rpm -ivh mysql-community-libs-8.0.26-1.el7.x86_64.rpm 
警告:mysql-community-libs-8.0.26-1.el7.x86_64.rpm: 头V3 DSA/SHA256 Signature, 密钥 ID 5072e1f5: NOKEY
准备中...                          ################################# [100%]
正在升级/安装...
   1:mysql-community-libs-8.0.26-1.el7################################# [100%]
[root@localhost mysql]# rpm -ivh mysql-community-client-8.0.26-1.el7.x86_64.rpm 
警告:mysql-community-client-8.0.26-1.el7.x86_64.rpm: 头V3 DSA/SHA256 Signature, 密钥 ID 5072e1f5: NOKEY
准备中...                          ################################# [100%]
正在升级/安装...
   1:mysql-community-client-8.0.26-1.e################################# [100%]
[root@localhost mysql]# rpm -ivh mysql-community-server-8.0.26-1.el7.x86_64.rpm 
警告:mysql-community-server-8.0.26-1.el7.x86_64.rpm: 头V3 DSA/SHA256 Signature, 密钥 ID 5072e1f5: NOKEY
准备中...                          ################################# [100%]
正在升级/安装...
   1:mysql-community-server-8.0.26-1.e################################# [100%]
 #启动mysql  
[root@localhost mysql]# systemctl start mysqld
#查看mysql运行状态
[root@localhost mysql]# systemctl status mysqld
● 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
#查看mysql临时密码
[root@localhost mysql]# cat /var/log/mysqld.log | grep temporary
2023-11-07T03:23:31.386425Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: rX(LlK#ga2


[root@localhost mysql]# mysql -uroot -p
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.
#修改root默认密码
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'confluence';
Query OK, 0 rows affected (0.10 sec)
#创建数据库库,这里要注意下confluence7.3以后要用utf8mb4
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)

四、安装confluence及破jie

​ 1.上传atlassian-confluence-8.5.-x64.bin 到/opt目录

​ 2.更改安装权限

	chmod +x atlassian-confluence-8.5.-x64.bin 

​ 3.安装confluence,期间需要输入o 1 i y 如下图所示

[root@confluence opt]# ./atlassian-confluence-8.5.4-x64.bin
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#noProviders for further details.
Finishing installation ...

4.浏览器上打开服务器ip:8090
在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

5.记录服务器id

在这里插入图片描述

6.进行破jie

​ 先停掉confluence

	/etc/init.d/confluence stop

​ 上传破解包atlassian-agent-v1.3.1.zip 到/opt/atlassian 并解压

	unzip atlassian-agent-v1.3.1.zip

​ 切换到目录

cd /opt/atlassian/confluence/bin

​ 编辑

[root@confluence bin]# vim setenv.sh

#在文件最末尾添加这段,根据包的存放实际路径

export JAVA_OPTS="-javaagent:/opt/atlassian/atlassian-agent-v1.3.1/atlassian-agent.jar ${JAVA_OPTS}"

​ 再次启动confluence

[root@confluence bin]# /etc/init.d/confluence start

​ 查看是否java进程在

[root@confluence bin]# ps aux|grep javaagent
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

​ 执行破解jar包会得到一个授权码

[root@confluence bin]# java -jar /opt/atlassian/atlassian-agent-v1.3.1/atlassian-agent.jar -p conf -m 888888@qq.com -n confluence -o confluence -s 服务器ID

​ 复制授权码到web上

在这里插入图片描述

五、数据库驱动

上传mysql-connector-java-8.0.26.jar到/opt/atlassian/confluence/confluence/WEB-INF/lib/

在这里插入图片描述

​ 再次重启conluence

	[root@confluence lib]# /etc/init.d/confluence restart

在这里插入图片描述

到此,confluence安装破解完毕

六、以下是登录的时候报错参考

在这里插入图片描述

解决办法:

set global transaction isolation level READ COMMITTED;

如上面方法还是无法登录

找到目录,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

当然,我可以为您提供一些关于Confluence部署的基本指导。以下是一个简要的教程: 步骤1:安装Java Development Kit(JDK) 在部署Confluence之前,您需要先安装Java Development Kit(JDK)。确保您的系统上已经安装了适当版本的JDK。 步骤2:下载和解压Confluence安装程序 在Atlassian官方网站上下载Confluence安装程序(https://www.atlassian.com/software/confluence)。选择适用于您系统的版本,并将其下载到您的服务器上。 下载完成后,解压缩Confluence安装程序。您可以将其解压缩到任何您喜欢的位置。 步骤3:配置Confluence Home目录 在Confluence Home目录中,存储了Confluence应用程序的配置文件、插件和数据等内容。您需要为Confluence设置一个Confluence Home目录。 在解压缩的Confluence目录中,找到"confluence/WEB-INF/classes/confluence-init.properties"文件。编辑该文件,将以下行取消注释并设置正确的路径: ``` # confluence.home=/var/confluence ``` 将路径更改为您希望用作Confluence Home目录的路径。 步骤4:启动Confluence 打开终端,并导航到解压缩的Confluence目录。执行以下命令启动Confluence: ``` ./start-confluence.sh ``` 等待一段时间,直到您看到消息"Server startup in XXXX ms",表示Confluence已经成功启动。 步骤5:访问Confluence 在浏览器中输入"http://localhost:8090",您将看到Confluence的欢迎页面。按照页面上的指导进行设置和配置。 这只是一个简单的部署指南,如果您有特定的需求或遇到问题,可以参考Confluence的官方文档或向Confluence社区寻求帮助。祝您顺利部署Confluence
评论 32
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值