赞
踩
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
解压:
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)
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’
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。