CentOS7搭建confluence企业级文档管理

一、confluence介绍

confluence是一个专业的企业知识管理与协同软件,可以用于构建企业wiki。通过它可以实现团队成员之间的协作和知识共享。现在大多数公司都会部署一套confluence,用作内部wiki。现在confluence已收费,那么下面将介绍下安装破解confluence的操作记录(适用于centos6/7系统环境)

二、安装jdk8环境

#上传rpm软件包
[root@confluence ~]# mkdir /app
[root@confluence ~]# cd /app/
[root@confluence app]# ll
total 796228
-rw-r--r-- 1 root root 174204631 Nov 30  2018 jdk-8u162-linux-x64.rpm
-rw-r--r-- 1 root root 641127384 Nov 29 09:45 mysql-5.7.20-linux-glibc2.12-x86_64.tar.gz

#安装jdk
[root@confluence app]# rpm -ivh jdk-8u162-linux-x64.rpm
[root@confluence app]# java -version
java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)

三、安装mysql5.7

3.1、安装mysql

安装参考文档:https://www.cnblogs.com/hujinzhong/p/11624889.html

官方推荐数据库配置:https://confluence.atlassian.com/conf69/database-setup-for-mysql-950285439.html

#数据库配置
[root@confluence mysql]# cat /etc/my.cnf
[mysqld]
character-set-server=utf8
collation-server=utf8_bin
default-storage-engine=INNODB
transaction-isolation=READ-COMMITTED
max_allowed_packet = 512M
innodb_log_file_size=2GB
binlog_format=row

#启动mysql
[root@confluence mysql]# /etc/init.d/mysql.server start
Starting MySQL. SUCCESS! 
[root@confluence mysql]# mysql -uroot -pmysql
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.20 MySQL Community Server (GPL)

Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.

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>

3.2、创建confluence数据库

mysql> create database confluence default character set utf8 collate utf8_bin;
mysql> grant all on confluence.* to 'confluence'@'%' identified by 'confluencepasswd';
mysql> flush privileges;
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| confluence         |
| mysql              |
| performance_schema |
| sys                |
+--------------------+

四、安装confluence

软件地址:https://www.atlassian.com/download

#下载软件包
[root@confluence app]# wget https://product-downloads.atlassian.com/software/confluence/downloads/atlassian-confluence-6.9.0-x64.bin
[root@confluence app]# ls
atlassian-confluence-6.9.0-x64.bin  jdk-8u162-linux-x64.rpm

#授权
[root@confluence app]# chmod +x atlassian-confluence-6.9.0-x64.bin

#启动
[root@confluence app]# ./atlassian-confluence-6.9.0-x64.bin 
Unpacking JRE ...
Starting Installer ...

This will install Confluence 6.9.0 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.

Installation of Confluence 6.9.0 is complete
Start Confluence now?
Yes [y, Enter], No [n]
y

Please wait a few moments while Confluence starts up.
Launching Confluence ...

Installation of Confluence 6.9.0 is complete
Your installation of Confluence 6.9.0 is now ready and can be accessed via
your browser.
Confluence 6.9.0 can be accessed at http://localhost:8090
Finishing installation ...
[root@confluence app]# 

访问测试:http://192.168.11.10:8090/

image

选择插件:

image

获取授权码:

image

五、破解confluence

#关闭confluence
[root@confluence ~]# /etc/init.d/confluence stop
executing using dedicated user
If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide

Server startup logs are located in /opt/atlassian/confluence/logs/catalina.out
---------------------------------------------------------------------------
Using Java: /opt/atlassian/confluence/jre//bin/java
2019-11-29 10:56:20,576 INFO [main] [atlassian.confluence.bootstrap.SynchronyProxyWatchdog] A Context element for ${confluence.context.path}/synchrony-proxy is found in /opt/atlassian/confluence/conf/server.xml. No further action is required
---------------------------------------------------------------------------
Using CATALINA_BASE:   /opt/atlassian/confluence
Using CATALINA_HOME:   /opt/atlassian/confluence
Using CATALINA_TMPDIR: /opt/atlassian/confluence/temp
Using JRE_HOME:        /opt/atlassian/confluence/jre/
Using CLASSPATH:       /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jar
Using CATALINA_PID:    /opt/atlassian/confluence/work/catalina.pid
Tomcat stopped.

#备份jar文件
[root@confluence lib]# cd /opt/atlassian/confluence/confluence/WEB-INF/lib/
[root@confluence lib]# pwd
/opt/atlassian/confluence/confluence/WEB-INF/lib
[root@confluence lib]# cp atlassian-extras-decoder-v2-3.3.0.jar{,.bak}

#将该文件移动并重命名为atlassian-extras-2.4.jar并上传至本地windows破解
[root@confluence lib]# mv atlassian-extras-decoder-v2-3.3.0.jar /opt/atlassian-extras-2.4.jar

运行破解器:需要在window上安装jdk

image

image

会重新生成文件,如下:

image

image

上传破解后jar包到/opt/atlassian/confluence/confluence/WEB-INF/lib,并重命名为atlassian-extras-decoder-v2-3.3.0.jar

[root@confluence opt]# cd /opt/atlassian/confluence/confluence/WEB-INF/lib
[root@confluence lib]# rz
[root@confluence lib]# ll atlassian-extras-2.4.jar
-rw-r--r-- 1 root root 6647 May  7  2018 atlassian-extras-2.4.jar
[root@confluence lib]# mv atlassian-extras-2.4.jar atlassian-extras-decoder-v2-3.3.0.jar

上传mysql驱动至/opt/atlassian/confluence/confluence/WEB-INF/lib

[root@confluence lib]# pwd
/opt/atlassian/confluence/confluence/WEB-INF/lib
[root@confluence lib]# ll mysql-connector-java-5.1.44-bin.jar 
-rw-r--r-- 1 root root 999635 Aug 29  2017 mysql-connector-java-5.1.44-bin.jar

重启confluence服务

[root@confluence lib]# /opt/atlassian/confluence/bin/stop-confluence.sh
[root@confluence lib]# /opt/atlassian/confluence/bin/start-confluence.sh

重新访问web页面

image

image

复制key内的内容,到confluence

image

设置数据库:

image

image

image

可以选择示范站点

image

配置用户管理,可以选择在Confluence中管理用户和组

image

配置系统管理员账户

image

image

image

image

image

检查一下我们的破解是否成功,右上角小齿轮按钮----一般设置---左侧边栏最下方--授权细节

image

posted @ 2019-11-29 09:47  运维人在路上  阅读(3186)  评论(0编辑  收藏  举报