wiki部署

wiki部署
author: 李建生
版本:confluence5.6

一、準備環節

1.上傳軟件

[root@web01 tools]# ls
apache-tomcat-8.0.27.tar.gz atlassian-jira-software-7.6.0-EAP01.tar.gz
atlassian-confluence-6.5.0.tar.gz jdk-8u60-linux-x64.tar.gz
[root@web01 tools]#

2.解壓安裝jdk

[root@web01 tools]# tar xf jdk-8u60-linux-x64.tar.gz -C /application/
[root@web01 tools]# ln -s /application/jdk1.8.0_60/ /application/jdk

3.設置環境變量

[root@web01 tools]# sed -i.ori '$a export JAVA_HOME=/application/jdk\nexport PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH\nexportCLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$JAVA_HOME/lib/tools.jar' /etc/profile
[root@web01 tools]# source /etc/pro
profile profile.d/ profile.ori protocols    
[root@web01 tools]# source /etc/profile
[root@web01 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)
[root@web01 tools]#

二、數據庫配置

數據庫使用mysql5.7

MariaDB [(none)]> create database confluencedb character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> CREATE user 'confluenece'@'%' IDENTIFIED BY 'rtmap911'; 
Query OK, 0 rows affected (0.09 sec)

MariaDB [(none)]> GRANT ALL PRIVILEGES ON confluencedb.* TO 'confluence'@'%' IDENTIFIED BY 'traffic';
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]>

三、 安裝confluence

1. 下安裝程序

cd /server/tools
wget https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-5.6.6-x64.bin

2. 下載破解安裝包

破解需要在有java環境的pc段進行

https://page00.ctfile.com/fs/15323800-217465309

3. 開始安裝

修改權限

[root@conflunce tools]# chmod 755 atlassian-confluence-5.6.6-x64.bin
[root@conflunce tools]# ./atlassian-confluence-5.6.6-x64.bin

執行程序進行安裝

[root@conflunce tools]# ./atlassian-confluence-5.6.6-x64.bin 
Unpacking JRE ...
Starting Installer ...
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 ...

4. 網頁安裝

注意:這個訪問地址根據自己的世紀服務器地址進行調整。

wiki部署

wiki部署

此時開始破解不要關閉頁面

四、破解

1.破解準備

1.先停止 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.

2.刪除文件

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目錄下

atlassian-extras-3.2.jar #破解文件
Confluence-5.6.6-language-pack-zh_CN.jar #中文插件
mysql-connector-java-5.1.39-bin.jar #mysql連接器 

mysql-connector-java-5.1.39-bin.jar文件可以連接mysql5.7及其以下的mysql版本,可以參考如下連接:

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

wiki部署

3.啓動confluence

[root@conflunce ~]# /etc/init.d/confluence start

2.在pc進行最終破解

注意windows上需要安裝jdk運行環境。

wiki部署

serverID 要填寫web界面上的

wiki部署

將生成的key複製帶web界面即可

wiki部署

五、配置數據庫

wiki部署

5.1、選擇direct JDBC

wiki部署

5.2、輸入數據庫用戶密碼

wiki部署

5.3、數據庫初始化完畢後,會跳轉到如下界面

wiki部署

5.4、配置confluence的管理員賬號和密碼

wiki部署

5.5、輸入管理員信息

wiki部署

5.6、安裝完成

wiki部署

5.7、安裝完成後的界面

wiki部署

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章