AtlassianConfluence(简称Confluence)是一个专业的wiki程序。它是一个知识管理的工具,通过它可以实现团队成员之间的协作和知识共享。Confluence不是一个开源软件,非商业用途可以免费使用
Confluence使用简单,但它强大的编辑和站点管理特征能够帮助团队成员之间共享信息,文档协作,集体讨论。 目前,Confluence被用于广泛地用于项目团队,开发团队,市场销售团队

首页:https://www.atlassian.com/
   https://www.atlassian.com/software/confluence

atlassian-confluence各版本下载地址(截至到目前最新版是6.2.2):https://www.atlassian.com/software/confluence/download-archives

6.1.2系统配置要求官方文档:
https://confluence.atlassian.com/conf61/system-requirements-877188692.html
https://confluence.atlassian.com/conf61/supported-platforms-877188781.html

confluence 6.1.2官方帮助文档:https://confluence.atlassian.com/conf61/getting-help-and-support-877188789.html

附件:
下载atlassian-confluence-6.1.2-x64.bin
confluence-6.1.2 for linux官网下载
confluence-6.1.2 for linux百度网盘下载,密码:izdr
jdk-8u20百度网盘下载,密码:9p4g

安装前准备

环境:
   Centos 6.6
   Mysql version 5.6.36
   JIRA 7.2.2
   atlassian-confluence 6.1.2

服务器内存建议大于3G
说明,目前已经成功安装JIRA
安装confluence 6.1.2所需要的系统配置:https://confluence.atlassian.com/conf61/supported-platforms-877188781.html

1
2
3
4
5
#安装confluence对环境的要求
Mysql = 5.6(但不要用5.6.16之前的版本)
JDK = 1.8
≠ Java 1.8.0_25 and 1.8.0_31 and Java 1.8.0_45
Tomcat = 8.0.x

1
2
3
4
5
#官方关于JAVA环境的说明
#这里安装的atlassian-confluence-6.1.2-x64.bin文件,不需要手动安装JRE环境
Java
The Java Runtime Environment (JRE) is packed up and ready to go when you install Confluence using the Windows or Linux installer. You don't need to install Java yourself.
If you choose to install Confluence from an archive file, you'll need a supported JRE or JDK, and your JAVA_HOME variable set correctly. See Installing Java for Confluence for more information.

Confluence安装前准备,如果是生产使用需要用到外部的数据库,这里我们选择安装Mysql

注:如果当前系统有安装JIRA,则Mysql安装相关配置可省略
Mysql 5.6 Yum源(rpm):点击下载
Confluence 6.1.2关于Mysql的配置参考:https://confluence.atlassian.com/conf61/database-setup-for-mysql-877188444.html

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[root@localhost ~]# yum -y install http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
[root@localhost ~]# yum -y install mysql-community-server.x86_64 mysql-community-devel.x86_64 mysql-community-client.x86_64
[root@localhost ~]# /etc/init.d/mysqld start
[root@localhost ~]# /usr/bin/mysqladmin -u root password '123456'
[root@localhost ~]# chkconfig mysqld on
[root@localhost ~]# grep -iA6 confluence /etc/my.cnf
[mysqld]
...
#confluence configure
character-set-server=utf8
collation-server=utf8_bin
default-storage-engine=INNODB
max_allowed_packet=256M
innodb_log_file_size=2GB
transaction-isolation=READ-COMMITTED
[root@localhost ~]#
[root@localhost ~]# /etc/init.d/mysqld restart

1
2
3
4
5
6
7
8
9
10
11
#Mysql初始化
[root@localhost ~]# mysql -uroot -p123456
mysql> CREATE DATABASE confluence CHARACTER SET utf8 COLLATE utf8_bin;
mysql> GRANT ALL PRIVILEGES ON confluence.* TO 'confluenceuser'@'localhost' IDENTIFIED BY 'confluencepass';
mysql> GRANT ALL PRIVILEGES ON confluence.* TO 'confluenceuser'@'192.168.1.%' IDENTIFIED BY 'confluencepass';
mysql> FLUSH PRIVILEGES;
mysql> \q
Bye
[root@localhost ~]# mysql -V
mysql Ver 14.14 Distrib 5.6.36, for Linux (x86_64) using EditLine wrapper
[root@localhost ~]#

安装并破解atlassian-confluence 6.1.2

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
#atlassian-confluence 没有加到chkconfig里,不能开机启动
[root@localhost ~]# chmod +x atlassian-confluence-6.1.2-x64.bin
[root@localhost ~]# ./atlassian-confluence-6.1.2-x64.bin
Unpacking JRE ...
Starting Installer ...
This will install Confluence 6.1.2 on your computer.
OK [o, Enter], Cancel [c]
o
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.1.2 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.1.2 is complete
Your installation of Confluence 6.1.2 is now ready and can be accessed via
your browser.
Confluence 6.1.2 can be accessed at http://localhost:8090
Finishing installation ...
[root@localhost ~]#
[root@localhost ~]# netstat -tunlp | grep 8090
tcp 0 0 :::8090 :::* LISTEN 14529/java
[root@localhost ~]#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#破解atlassian-confluence 6.1.2
#替换 atlassian-extras-decoder-v2-3.2.jar 和 atlassian-universal-plugin-manager-plugin-2.22.1.jar 这两个文件
[root@localhost ~]# /etc/init.d/confluence stop
[root@localhost ~]# cd /opt/atlassian/confluence/confluence/WEB-INF/lib
#备份,仅限个人使用勿用于商业
[root@localhost lib]# cp atlassian-extras-decoder-v2-3.2.jar ~
#上传破解文件
[root@localhost lib]# ll atlassian-extras-decoder-v2-3.2.jar
-rw-r--r-- 1 confluence confluence 8321 Jun 24 17:59 atlassian-extras-decoder-v2-3.2.jar
[root@localhost lib]#
[root@localhost ~]# cd /opt/atlassian/confluence/confluence/WEB-INF/atlassian-bundled-plugins
#备份,仅限个人使用勿用于商业
[root@localhost atlassian-bundled-plugins]# cp atlassian-universal-plugin-manager-plugin-2.22.1.jar ~
#上传破解文件
[root@localhost atlassian-bundled-plugins]# ll atlassian-universal-plugin-manager-plugin-2.22.1.jar
-rw-r--r-- 1 confluence confluence 8054971 Jun 24 17:59 atlassian-universal-plugin-manager-plugin-2.22.1.jar
[root@localhost atlassian-bundled-plugins]#
[root@localhost ~]# chown confluence:confluence /opt/atlassian/confluence/ -R
[root@localhost ~]# chown confluence:confluence /var/atlassian/application-data/confluence/ -R
[root@localhost ~]# /etc/init.d/confluence start

如果在打开Confluence向导配置页面出现下面错误,可以通过重启Confluence和Mysql解决
confluence_setup_error

访问http://ip:8090打开Confluence配置页面向导
confluence_install
confluence_install
confluence_install

如果没有Key的话,就需要我们去官网申请一个测试Key
申请一个测试key需要登录Atlassian,如果没有Atlassian,则需要注册Atlassian帐号了。这里可能翻墙,因为需要加载google验证码…

如果已有Atlassian帐号则跳过下一步
SignUP_Atlassian
confluence_install
confluence_install
confluence_install
然后会生成一个测试key,然后填入上图的key选项框内(一般情况下系统会自动填入)

1
2
3
4
5
6
7
8
9
#试用key,有效期30天,官网可以随时申请
BHBF-LIX9-DF7P-E62M
AAABJg0ODAoPeNptkF9LwzAUxd/zKQK+6ENGW/tvhYCu7bDSdsNO8cGXGG410GZbkg737U1XxSk+B
C6555z7u/eiYQbfDxJ7PnaCxA0TN8ZptsGe40YoA82V2BmxlTTdyrYbQHLAlw2oA6irlwTnB9YNb
BSgVMGpyJgBOtqJExLPR9waZ4wbcQBq1ADTR2OYMqBoyzoNyIYbK8krJjoaX8dB4IeOf7Pfz/i2R
z9DzgJKwUFq2Bx3ULMeaLqqqvwhLW5L1E2tJ1B69HjIxkoDkln4/GMn1PGMMRoZV+qNSaGnGXWDp
gWLjC7uFktSFs9zki2jNclDr0JNXlP7SDmfu2EURugLxcrLIvvVOZHWQ/8KatU+agtEifut/x9lP
Sj+zjT8PeMnH9GHljAsAhQBR2B3nIotW7W/fZPdH5cO1UwcQQIUP5BxRFyS/6+Efljom+Ai9Cgm9
a8=X02eq

confluence_install

如果出现下面的错误,是因为我们没有安装Mysql的驱动程序
关于Mysql数据库驱动问题解决办法
confluence_install
解决办法:在Confluence的安装目录 /opt/atlassian/confluence/confluence/WEB-INF/lib/ 上传Mysql的驱动程序,并重启Confluence服务
Mysql驱动程序:点击下载

1
2
3
4
[root@localhost ~]# cd /opt/atlassian/confluence/confluence/WEB-INF/lib/
[root@localhost lib]# ll mysql-connector-java-5.1.39-bin.jar
-rw-r--r-- 1 confluence confluence 989497 Jun 24 18:37 mysql-connector-java-5.1.39-bin.jar
[root@localhost lib]# /etc/init.d/confluence restart

confluence_install
confluence_install

1
2
3
#要配置Mysql的授权登录信息
Driver Class Name:com.mysql.jdbc.Driver
Database URL:jdbc:mysql://192.168.1.119/confluence?sessionVariables=storage_engine%3DInnoDB

confluence_install

如果出现下面的错误,就比较悲剧了,需要我们重新来过
confluence_install
解决办法:需要删除confluence家目录的相关配置文件和缓存文件
参考:https://confluence.atlassian.com/confkb/confluence-installation-fails-with-set-up-step-error-java-sql-sqlsyntaxerrorexception-user-lacks-privilege-or-object-not-found-bandana-390497283.html

1
2
3
4
5
[root@localhost ~]# cd /var/atlassian/application-data/confluence
[root@localhost confluence]# rm -rf bundled-plugins/ plugins-cache/ plugins-osgi-cache/ plugins-temp/ database confluence.cfg.xml #database可能没有,我这里就没有这个
[root@localhost ~]# /etc/init.d/confluence restart
[root@localhost ~]# chown confluence:confluence /opt/atlassian/ -R
[root@localhost ~]# chown confluence:confluence /var/atlassian/ -R

重新来过的步骤略,直到下面这一步
confluence_install

点下一步前需要确认JIRA已经启动成功了
confluence_install
confluence_install
confluence_install
安装 atlassian-confluence 6.1.2 成功

配置 atlassian-confluence 6.1.2
confluence_setup
confluence_setup
confluence_setup
confluence_setup

设置– 一般管理– 授权码细节
confluence_setup
破解成功

汉化atlassian-confluence 6.1.2

atlassian-confluence 6.1.2 应该是自动识别语言了,我没有做汉化操作,默认就是中文了
如果没有汉化的,下面是 atlassian-confluence 6.1.2 的语言包
Confluence-6.1.0-language-pack-zh_CN.jar

1
2
3
4
5
#把confluence的中文语言包上传到 /opt/atlassian/confluence/confluence/WEB-INF/lib/ 这个目录然,然后重启confluence即可
[root@localhost ~]# cd /opt/atlassian/confluence/confluence/WEB-INF/lib/
[root@localhost lib]# ll Confluence-6.1.0-language-pack-zh_CN.jar
-rw-r--r-- 1 confluence confluence 269133 Jun 24 18:47 Confluence-6.1.0-language-pack-zh_CN.jar
[root@localhost lib]# /etc/init.d/confluence restart


本文出自”Jack Wang Blog”:http://www.yfshare.vip/2017/06/25/部署atlassian-confluence-6-1-2/