Confluence 7.4.6 安装部署+破解

简介

Confluence是一款由JAVA编写用于企业知识库管理协同软件,多用于构建企业内部WIKI,支持多人协作,共享信息等。

当前系统环境Centos7.9,内存至少2G以上,数据库采用MySQL5.7,本机电脑系统Windows10

安装前准备工作

  1. 请将java8程序下载安装到本机电脑上
    https://vsoul.cn/downloads/jdk-8u172-windows-x64.exe
    注:安装java用于运行confluence7.4破解程序
  2. 请将confluence7.4破解包下载到本机电脑上
    https://vsoul.cn/downloads/confluence7.4pojie.zip
  3. 将MySQL驱动插件下载至CentOS服务器上
wget https://vsoul.cn/downloads/mysql-connector-java-5.1.46.tar.gz
  1. 在CentOS服务器上添加wlnmp一键安装包源
rpm -ivh https://vsoul.cn/scripts/wlnmp-release-centos.noarch.rpm
  1. 下载confluence7.4安装包至CentOS服务器上
wget https://vsoul.cn/downloads/atlassian-confluence-7.4.6-x64.bin

开始部署

  1. 通过wlnmp包安装jdk1.8及MySQL5.7
yum -y install jdk1.8 wmysql57

注:该jdk是oracle提供的包,wlnmp一键包将其镜像了过来

  1. 修改MySQL配置
    编辑my.cnf文件
vi /etc/my.cnf

将innodb_log_file_size = 32M改成innodb_log_file_size = 256M
将max_allowed_packet = 16M改成max_allowed_packet = 34M,注意此字段有两个
然后在[mysqld]字段下添加一行:transaction-isolation=READ-COMMITTED
保存退出,重启MySQL:/etc/init.d/mysql restart

  1. 创建数据库
    注:通过wlnmp一键包安装的MySQL5.7默认密码是空
mysql -uroot
create user confluence@localhost identified by 'confluence_password';
create database confluence character set utf8 collate utf8_bin;
grant all privileges on confluence.* to confluence@'localhost';
set password = password('root_password');
flush privileges;
exit

此时数据库root默认密码更改为root_password,confluence使用单独的库、账号密码
4. 安装confluence

sh atlassian-confluence-7.4.6-x64.bin

Unpacking JRE ...
Starting Installer ...
This will install Confluence 7.4.6 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 7.4.6 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 7.4.6 is complete
Your installation of Confluence 7.4.6 is now ready and can be accessed via
your browser.
Confluence 7.4.6 can be accessed at http://localhost:8090
Finishing installation ...

安装完成后confluence会自动启动

  1. 配置MySQL驱动
    tar zxf mysql-connector-java-5.1.46.tar.gz
    cd mysql-connector-java-5.1.46
    mv mysql-connector-java-5.1.46-bin.jar /opt/atlassian/confluence/confluence/WEB-INF/lib

  2. 开始破解
    破解需要两部,一是破解文件,二是获取授权码
    6.1. 破解文件
    在CentOS服务器上下载/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.4.1.jar文件到本地重命名为atlassian-extras-2.4.jar
    通过java运行confluence_keygen.jar(文中最开始的那个破解包,在windows上运行,需要在windows上安装好java)
    选择.patch!找到刚才重命名的那个文件打开
    打开方式.png
    path.png
    打开后在当前目录下可以看到atlassian-extras-2.4.jar和atlassian-extras-2.4.bak两个文件,这里atlassian-extras-2.4.jar已经是破解好的了,将atlassian-extras-2.4.jar名字改回atlassian-extras-decoder-v2-3.4.1.jar
    然后上传回CentOS服务器/opt/atlassian/confluence/confluence/WEB-INF/lib/目录,覆盖掉原来的atlassian-extras-decoder-v2-3.4.1.jar文件
    此时要重启confluence服务:/etc/init.d/confluence restart
    6.2. 获取授权码
    访问web页面,获取服务器ID,http://IP:8090
    image.png
    image.png
    image.png
    image.png
    复制网页中的服务器ID,运行破解工具confluence_keygen.jar,破解复制Key到Confluence里,获得授权码,进行下一步
    image.png
    image.png
    image.png
    选择MySQL配置项,配置数据库即可
    image.png
    image.png
    image.png
    image.png

  3. 授权验证
    image.png

  4. 配置域名访问
    站点管理->一般配置->编辑站点配置
    image.png
    更换url后添加到dns解析服务器上
    我这里的跳转是dns:53->nginx:80->confluence:8090
    在配置反向代理时tomcat会报错
    error.png
    修改/opt/atlassian/confluence/conf/server.xml
    新增一行
    image.png
    重启confluence:/etc/init.d/confluence restart
    confluence.png

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×