CentOS下安装Confluence 7.1.1 bin包

confluence是一个专业的企业知识管理与协同软件,使用java开发的,可以用于构建企业wiki。通过它可以实现团队成员之间的协作和知识共享。现在大多数公司都会部署一套confluence,用作内部wiki。

Java环境

JDK 8: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Confluence安装

下载confluence

官网下载:https://www.atlassian.com/software/confluence/download

下载confluence 7.1.1:

1
2
wget https://product-downloads.atlassian.com/software/confluence/downloads/atlassian-confluence-7.1.1-x64.bin
wget https://product-downloads.atlassian.com/software/confluence/downloads/atlassian-confluence-7.1.1.tar.gz

设置文件执行权限

1
chmod +x atlassian-confluence-7.1.1-x64.bin

安装

1
./atlassian-confluence-7.1.1-x64.bin
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
Unpacking JRE ...
Starting Installer ...

This will install Confluence 7.1.1 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
这里输入数字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
输入i或者直接回车
Extracting files ...


Please wait a few moments while we configure Confluence.

Installation of Confluence 7.1.1 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.1.1 is complete
Your installation of Confluence 7.1.1 is now ready and can be accessed via
your browser.
Confluence 7.1.1 can be accessed at http://localhost:8090
Finishing installation ...

安装完成会自动启动

打开网页获取ID

访问:http://IP:8090

confluence_setup

confluence_install_type

confluence_install_plugin

confluence_install_license

此时可以看到服务器ID,接下来就要开始破解

破解

破解工具:http://www.yezhou.cc/crack/confluence/confluence_crack.zip

破解需要两部,一是破解文件,二是获取授权码

破解文件

在服务器上下载/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.4.1.jar文件到本地重命名为atlassian-extras-2.4.jar

运行破解包confluence_keygen.jar(在windows上运行,需要在windows上安装好java)

confluence_keygen_run

confluence_patch

选择.patch!找到刚才重命名的那个文件打开

confluence_patch_jar

打开后在当前目录下可以看到atlassian-extras-2.4.jaratlassian-extras-2.4.bak两个文件,这里atlassian-extras-2.4.jar已经是破解好的jar包,将atlassian-extras-2.4.jar名字改回原来的atlassian-extras-decoder-v2-3.4.1.jar

上传到服务器上的/opt/atlassian/confluence/confluence/WEB-INF/lib/目录,覆盖原来的atlassian-extras-decoder-v2-3.4.1.jar

获取授权码

复制网页中的服务器ID,运行破解工具confluence_keygen.jar,破解复制Key到Confluence里,获得授权码,进行下一步

confluence_keygen

重启服务

1
service confluence restart

重新刷新页面,输入授权码

confluence_key

confluence_db

配置mysql数据库

1
2
3
4
5
6
mysql -uroot -p
mysql> create user confluence@localhost identified by 'appblog.cn';
mysql> select user,host,password from mysql.user;
mysql> create database confluence character set utf8 collate utf8_bin;
mysql> grant all privileges on confluence.* to confluence@'localhost';
mysql> quit

此时创建了一个confluence用户,来管理confluence数据库,此处密码设置为appblog.cn

修改/etc/my.cnf配置,在[mysqld]下设置

1
transaction-isolation=READ-COMMITTED

如果不设置,后续配置时会提示“您的数据库必须使用’READ-COMMITTED’作为默认隔离级别”

回到网页中继续设置数据库驱动

根据提示下载mysql驱动程序

confluence_db_mysql

根据提示下载mysql驱动程序

1
2
wget https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.18/mysql-connector-java-8.0.18.jar
cp mysql-connector-java-8.0.18.jar /opt/atlassian/confluence/confluence/WEB-INF/lib

重启confluence

1
service confluence restart

重启完成后刷新当前页面

配置数据库连接信息

输入数据库对应的主机端口及帐号密码,最后点击测试连接,连接成功继续下一步

confluence_db_connect

创建一个空白站点

confluence_site

配置帐号

confluence_account

confluence_admin

confluence_home

confluence_space

最后再验证下

配置完成登录系统,验证下授权

管理 -> 一般配置 -> 授权细节

confluence_license

参考文章

confluence6.9破解汉化
linux上安装并破解Confluence-6.9.1

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :