confluence6.x安裝

一 簡介

confluence是一個專業的企業知識管理與協同軟件,能夠用於構建企業wiki。經過它能夠實現團隊成員之間的協做和知識共享。php

網上有關confluence的教程比較多,在此咱們以confluence6.4.2版本爲例進行相關的實驗。html

二 環境準備

1 confluence的運行是依賴java環境的,也就是說須要安裝jdk而且要是1.7以上版本,以下:java

[root@localhost src]# java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)

具體jdk環境的安裝請參考其餘文章,簡單貼一下jdk的配置mysql

vim /etc/profile
export JAVA_HOME=/usr/local/src/jdk1.8.0_171
export JRE_HOME=/usr/local/src/jdk1.8.0_171/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib
export PATH=$JAVA_HOME/bin:$PATH

下載地址參見:https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.htmlsql

2 建立數據庫,這裏選用mysql5.7,有關它的安裝請移步其餘文章數據庫

下載地址:ftp.iij.ad.jp/pub/db/mysql/Downloads/MySQL-5.7  一點小提示,安裝的時候最好下載免編譯版本gblic的apache

建立數據庫vim

mysql -uroot -p'123456' -e "create database confluence default character set utf8 collate utf8_bin;grant all on confluence.* to 'confluenceuser'@'%' identified by 'confluencepasswd';
查看建立的數據庫,以及測試登陸
[root@localhost src]# mysql -uconfluenceuser -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2783
Server version: 5.7.23-log MySQL Community Server (GPL)

Copyright (c) 2000, 2018, 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> show databases;

+--------------------+
| Database |
+--------------------+
| information_schema |
| confluence |
+--------------------+
2 rows in set (0.01 sec)api

這樣基礎環境就配置完畢。瀏覽器

三 開始安裝confluence

 1 在官方網站下載confluence

https://www.atlassian.com/software/confluence/download-archives

在此咱們選擇的是bin方式

cd /usr/local/src

wget https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-6.4.2-x64.bin

2安裝及破解confluence

修改可執行權限
chmod 755 atlassian-confluence-6.4.2-x64.bin

安裝開始

 1 [root@localhost src]# ./atlassian-confluence-6.4.2-x64.bin 
 2 Unpacking JRE ...
 3 Starting Installer ...
 4 Nov 13, 2018 8:13:26 PM java.util.prefs.FileSystemPreferences$1 run
 5 INFO: Created user preferences directory.
 6 Nov 13, 2018 8:13:26 PM java.util.prefs.FileSystemPreferences$2 run
 7 INFO: Created system preferences directory in java.home.
 8 
 9 This will install Confluence 6.4.2 on your computer.
10 OK [o, Enter], Cancel [c]
11 o
12 Choose the appropriate installation or upgrade option.
13 Please choose one of the following:
14 Express Install (uses default settings) [1], 
15 Custom Install (recommended for advanced users) [2, Enter], 
16 Upgrade an existing Confluence installation [3]
17 1
18 See where Confluence will be installed and the settings that will be used.
19 Installation Directory: /opt/atlassian/confluence 
20 Home Directory: /var/atlassian/application-data/confluence 
21 HTTP Port: 8090 
22 RMI Port: 8000 
23 Install as service: Yes 
24 Install [i, Enter], Exit [e]
25 i
26 
27 Extracting files ...
28                                                                            
29 
30 Please wait a few moments while we configure Confluence.
31 Installation of Confluence 6.4.2 is complete
32 Start Confluence now?
33 Yes [y, Enter], No [n]
34 y
35 
36 Please wait a few moments while Confluence starts up.
37 Launching Confluence ...
38 Installation of Confluence 6.4.2 is complete
39 Your installation of Confluence 6.4.2 is now ready and can be accessed via
40 your browser.
41 Confluence 6.4.2 can be accessed at http://localhost:8090
42 Finishing installation ...

經過上圖,咱們能夠很明顯的看出confluence默認安裝到了/opt/atlassian/confluence和/var/atlassian/application-data/confluence目錄下,而且confluence監聽的端口是8090

confluence的主要配置文件,存放在/opt/atlassian/confluence/conf/server.xml文件中,以下:

vim /opt/atlassian/confluence/conf/server.xml

<Server port="8000" shutdown="SHUTDOWN" debug="0">
    <Service name="Tomcat-Standalone">
        <Connector port="8090" connectionTimeout="20000" redirectPort="8443"
                maxThreads="48" minSpareThreads="10"
                enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
                protocol="org.apache.coyote.http11.Http11NioProtocol" />

至此,能夠在瀏覽器中輸入http://localhost:8090 或者http://ip:8090,便可看到初始化界面

3 破解

進入初始化界面,語言選擇中文,當文字切換好後,界面將顯示中文,此時選中「產品安裝」,點擊下一步,繼續下一步(由於沒有受權,因此不須要選中任何插件),此時進入License key界面,記下Server ID,破解須要。中止confluence

 /etc/init.d/confluence stop

3.1 先下載註冊機,而後拷貝包到本地進行破解

查看相關文件

[root@localhost lib]# ls -l atlassian-extras-*
-rw-r--r--. 1 root root 14935 Nov 13 20:57 atlassian-extras-api-3.2.jar
-rw-r--r--. 1 root root 21788 Nov 13 20:57 atlassian-extras-common-3.2.jar
-rw-r--r--. 1 root root 38244 Nov 13 20:57 atlassian-extras-core-3.2.jar
-rw-r--r--. 1 root root  5171 Nov 13 20:57 atlassian-extras-decoder-api-3.2.jar
-rw-r--r--. 1 root root  6642 Nov 13 20:58 atlassian-extras-decoder-v2-3.2.jar
-rw-r--r--. 1 root root 68438 Nov 13 20:57 atlassian-extras-legacy-3.2.jar

將/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.2.jar jar文件ftp到本地,並重命名爲atlassian-extras-2.4.jar,運行confluence_keygen.jar,點擊.patch,選擇atlassian-extras-2.4.jar文件,點擊打開,jar文件破解成功。


將破解後的atlassian-extras-2.4.jar上傳到服務器/opt/atlassian/confluence/confluence/ WEB-INF/lib/目錄下,並重命名爲atlassian-extras-decoder-v2-3.2.jar

破解插件管理中心:

將本地破解好的atlassian-universal-plugin-manager-plugin-2.22.2.jar文件(這個文件是我在網上下載別人的,親測可使用)拷貝到/opt/atlassian/confluence/confluence/WEB-INF/atlassian-bundled-plugins目錄下,(原本目錄下面有個atlassian-universal-plugin-manager-plugin-2.22.1.jar文件,因此這裏從新命名吧)

mv atlassian-universal-plugin-manager-plugin-2.22.2.jar  atlassian-universal-plugin-manager-plugin-2.22.1.jar

重要一點是還須要上傳mysql的驅動mysql-connector-java-5.1.47-bin.jar到/opt/atlassian/confluence/confluence/ WEB-INF/lib/下,下載地址

https://dev.mysql.com/downloads/file/?id=480090

https://www.w3resource.com/mysql/mysql-java-connection.php

四 配置

啓動confluence,回到輸入密鑰的地方

 /etc/init.d/confluence start

在破解機裏面輸入ID進行破解

在連接數據庫環節選擇jdbc,其餘不變,填寫數據庫名字,輸入用戶名密碼就好了。

這樣就基本完成了

在插件中心,安裝收費插件,而後點擊license申請使用,將申請下來的license,粘貼進去你會發現已經不是試用版本了。

一些說明,有些人本地電腦若是沒有安裝jdk可能沒法打開破解機,這是就須要安裝jdk,安裝配置參考

http://www.javashuo.com/article/p-vrojlabu-hg.html

其餘參考:https://www.ilanni.com/?p=11989  *******

http://www.javashuo.com/article/p-cjhrdcnl-ez.html

https://www.jianshu.com/p/fb2574567eae

若是使用mysql可能會在安裝完成以後,健康檢查的時候,有個參數須要注意:

https://confluence.atlassian.com/confkb/exceeds-max-allowed-packet-for-mysql-179443425.html

所有涉及軟件下載:

連接:https://pan.baidu.com/s/1VdJBbbuNdBQ-liyG5ljI8A 提取碼:8qx9

相關文章
相關標籤/搜索