1.1 Confluence簡介
Confluence是一個專業的企業知識管理與協同軟體,也可以用于建構企業wiki。使用簡單,但它強大的編輯和站點管理特征能夠幫助團隊成員之間共享資訊、文檔協作、集體讨論,資訊推送。
Confluence為團隊提供一個協作環境。在這裡,團隊成員齊心協力,各擅其能,協同地編寫文檔和管理項目。從此打破不同團隊、不同部門以及個人之間資訊孤島的僵局,Confluence真正實作了組織資源共享。
1.1.1 使用情況
Confluence 已經在超過100個國家,13500個組織中成功地應用于企業内網平台、知識管理及文檔管理,涉及财富1000企業、政府機構、教育機構、财務金融機構及技術研究領域。
包括IBM、Sun MicroSystems、SAP等衆多知名企業使用Confluence來建構企業Wiki并面向公衆開放。
1.2 環境準備
confluence的運作是依賴java環境的,也就是說需要安裝jdk并且要是1.7以上版本,
1.2.1 系統環境說明
[root@conflunce ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
[root@conflunce ~]# uname -a
Linux conflunce 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@conflunce ~]# getenforce
Disabled
[root@conflunce ~]# systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:firewalld(1)
1.2.2 軟體環境說明
[root@conflunce tools]# java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
# 安裝 jdk
wget http://10.0.0.1/apache/tomcat/jdk-8u60-linux-x64.tar.gz
tar xf jdk-8u60-linux-x64.tar.gz -C /application/
ln -s /application/jdk1.8.0_60 /application/jdk
sed -i.ori '$a export JAVA_HOME=/application/jdk\nexport PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH\nexport CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$JAVA_HOME/lib/tools.jar' /etc/profile
source /etc/profile
為confluence建立對應的資料庫
# 安裝資料庫
[root@conflunce ~]# yum install -y mariadb-server
[root@conflunce ~]# systemctl start mariadb.service
mysql配置
create database confluence default character set utf8 collate utf8_bin;
grant all on confluence.* to 'confluence'@'localhost' identified by 'confluence';
1.3 下載下傳confluence
cd /server/tools
wget https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-5.6.6-x64.bin
1.4 安裝confluence
1.4.1 安裝
修改權限
[root@conflunce tools]# chmod 755 atlassian-confluence-5.6.6-x64.bin
[root@conflunce tools]# ./atlassian-confluence-5.6.6-x64.bin
安裝confluence
[root@conflunce tools]# ./atlassian-confluence-5.6.6-x64.bin
Unpacking JRE ...
Starting Installer ...
十一月 24, 2017 4:56:41 下午 java.util.prefs.FileSystemPreferences$
INFO: Created user preferences directory.
十一月 24, 2017 4:56:41 下午 java.util.prefs.FileSystemPreferences$
INFO: Created system preferences directory in java.home.
This will install Confluence 5.6.6 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 (recommd users) [2, Enter], Upgrade an existing Confluence installation [3
1
See where Confluence will be installed and the settings that will b
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 Confluence starts up.
Launching Confluence ...
Installation of Confluence 5.6.6 is complete
Your installation of Confluence 5.6.6 is now ready and can be accessed via
your browser.
Confluence 5.6.6 can be accessed at http://localhost:8090
Finishing installation ...
使用浏覽器通路
http://10.0.0.211:8090/setup/
注意:這個通路位址根據自己的世紀伺服器位址進行調整。

1.4.2 修改程式
通過上圖,我們可以看到現在confluence要我們輸入license,下面我們進行破解。
# 首先下載下傳修改包
http://down.51cto.com/data/2236416
https://page00.ctfile.com/fs/15323800-217465309
# 先停止 conflunce服務
[root@conflunce tools]# /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 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.
# 删除原來的封包件
[root@conflunce ~]# cd /opt/atlassian/confluence/confluence/WEB-INF/lib
[root@conflunce lib]# ll |grep atlassian-extra |wc -l
6
[root@conflunce lib]# ll |grep atlassian-extra
-rw-r--r-- 1 root root 14935 12月 1 2014 atlassian-extras-api-3.2.jar
-rw-r--r-- 1 root root 21788 12月 1 2014 atlassian-extras-common-3.2.jar
-rw-r--r-- 1 root root 38244 12月 1 2014 atlassian-extras-core-3.2.jar
-rw-r--r-- 1 root root 5171 12月 1 2014 atlassian-extras-decoder-api-3.2.jar
-rw-r--r-- 1 root root 6668 12月 1 2014 atlassian-extras-decoder-v2-3.2.jar
-rw-r--r-- 1 root root 68438 12月 1 2014 atlassian-extras-legacy-3.2.jar
[root@conflunce lib]# rm -fr atlassian-extra*
解壓修改包,然後把裡面的 atlassian-extras-3.2.jar、Confluence-5.6.6-language-pack-zh_CN.jar、mysql-connector-java-5.1.39-bin.jar 将三個jar檔案複制到/opt/atlassian/confluence/confluence/WEB-INF/lib目錄下
wget http://15323800.144.unicom.data.tv002.com:443/down/36077cbf0624ef69db7b6416be45dbcf-1924995/confluence5.6.6%20crack.zip?cts=ot-f-D116A117A134A73Fc448e&ctp=116A117A134A73&ctt=1511507163&limit=1&spd=100000&ctk=0c1f445e181194c024eaeaa2a268a3c2&chk=36077cbf0624ef69db7b6416be45dbcf-1924995
unzip confluence5.6.6\ crack.zip
cd confluence5.6.6-crack/jar
cp ./* /opt/atlassian/confluence/confluence/WEB-INF/lib/
其中atlassian-extras-3.2.jar檔案是和license相關的, Confluence-5.6.6-language-pack-zh_CN.jar 是confluence中文語言包,而 mysql-connector-java-5.1.39-bin.jar 是confluence連接配接mysql資料庫相關的jar包。
再次說明下:
atlassian所有産品的中文語言包,我們都可以通過以下位址下載下傳到:
https://translations.atlassian.com/dashboard/download?lang=zh_CN#/Confluence/5.6.6
而mysql-connector-java-5.1.39-bin.jar檔案可以連接配接mysql5.7及其以下的mysql版本,可以參考如下連接配接:
http://www.w3resource.com/mysql/mysql-java-connection.php
最後要啟動confluence
[root@conflunce ~]# /etc/init.d/confluence start
1.4.3 在windows上運作confluence_keygen.jar
注意windows上需要安裝jdk運作環境。
serverID 要填寫web界面上的
将生成的key複制帶web界面即可
1.5 配置資料庫
選擇direct JDBC
輸入資料庫使用者密碼
資料庫初始化完畢後,會跳轉到如下界面
配置confluence的管理者賬号和密碼
輸入管理者資訊
安裝完成
安裝完成後的界面
到此Confluence就安裝完成了。
1.6 參考文檔
https://www.ilanni.com/?p=11989#
https://baike.baidu.com/item/confluence/452961?fr=aladdin
作者:
慘綠少年出處:
https://www.nmtui.com本文版權歸作者所有,歡迎轉載,但未經作者同意必須保留此段聲明,且在文章頁面明顯位置給出原文連接配接,否則保留追究法律責任的權利。