搭建與破解wiki (confluence)


搭建環境:

操作系統:contos7
數據庫:5.5.60-MariaDB
java版本: jdk-11.0.2
confluence版本:confluence6.7.1

一. 准備工作

下載confluence

wget https://downloads.atlassian.com/software/confluence/downloads/atlassian-confluence-6.7.1-x64.bin
下載破解工具
wget https://files.cnblogs.com/files/Javame/confluence破解工具.zip
下載mysql驅動
wget https://files.cnblogs.com/files/Javame/confluence破解工具.rar

二. 安裝confluence

安裝之前需要提前將java環境安裝好。
找到剛剛下載的atlassian-confluence-6.7.1-x64.bin文件

chmod +x atlassian-confluence-6.7.1-x64.bin

執行安裝程序,進行安裝:

./atlassian-confluence-6.7.1-x64.bin
Unpacking JRE ...
Starting Installer ...

o確定安裝,c取消
This will install Confluence 6.7.1 on your computer.
OK [o, Enter], Cancel [c]
o
Click Next to continue, or Cancel to exit Setup.

選擇2自定義安裝
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]
2

指定安裝的目錄,會自動創建,不輸入直接回車就是使用默認路徑
Select the folder where you would like Confluence 6.9.1 to be installed,
then click Next.
Where should Confluence 6.7.1 be installed?
[/opt/atlassian/confluence]
/usr/local/atlassian/confluence

指定路徑存儲數據
Default location for Confluence data
[/var/atlassian/application-data/confluence]
/usr/local/atlassian/application-data/confluence

使用默認的端口,8090和8000
Configure which ports Confluence will use.
Confluence requires two TCP ports that are not being used by any other
applications on this machine. The HTTP port is where you will access
Confluence through your browser. The Control port is used to Startup and
Shutdown Confluence.
Use default ports (HTTP: 8090, Control: 8000) - Recommended [1, Enter], Set custom value for HTTP and Control ports [2]
1

安裝為后台進程,可后台運行
Confluence can be run in the background.
You may choose to run Confluence as a service, which means it will start
automatically whenever the computer restarts.
Install Confluence as Service?
Yes [y, Enter], No [n]
y

Extracting files ...
                                                                           
Please wait a few moments while we configure Confluence.

確定開始安裝
Installation of Confluence 6.7.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 6.7.1 is complete
Your installation of Confluence 6.7.1 is now ready and can be accessed via
your browser.
Confluence 6.7.1 can be accessed at http://localhost:8090
Finishing installation ...

三. 破解jar包

  1. 備份jar包
    mv /usr/local/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.3.0.jar /opt/atlassian-extras-2.4.jar
  2. 將atlassian-extras-2.4.jar傳到本地windows機器
    破解jar需要在本地windows上安裝java環境,這里不詳細記錄
    將下載的包confluence破解工具.zip 解壓后,將confluence_keygen.jar 傳到windows機器,然后在windows機器中進入命令行運行confluence_keygen.jar

C:\Users\heaven\Desktop>java -jar confluence_keygen.jar

點擊.patch,選擇atlassian-extras-2.4.jar文件,點擊打開,jar文件破解成功

  1. 上傳破解后atlassian-extras-2.4.jar包到/usr/local/atlassian/confluence/confluence/WEB-INF/lib,並重命名atlassian-extras-decoder-v2-3.3.0.jar
  2. 解壓confluence破解工具.rar包,上傳mysql驅動文件mysql-connector-java-5.1.44-bin.jar 到目錄/usr/local/atlassian/confluence/confluence/WEB-INF/lib

四. 重啟confluence服務

停止:sh /usr/local/atlassian/confluence/bin/stop-confluence.sh
啟動:sh /usr/local/atlassian/confluence/bin/start-confluence.sh

五. 訪問confluence,以及初始化安裝

http:ip:8090

1. 選擇中文、點擊產品安裝

2. 拷貝服務ID通過破解器獲取key

3. 使用之前的破解工具獲取key,填好Name,和Server ID然后點擊.gen!


4. 將生成的key復制到安裝界面中的confluence中
5. 設置數據庫,我們選擇自己的數據庫

5.1. 這里可以設置的數據庫類型有多種,比如說pgsql,mysql,mariadb等等,我們選擇使用mariadb
5.2. 在服務器上裝mariadb

yum -y install mariadb mariadb-server
systemctl start mariadb

接下來進行MariaDB的相關簡單配置
執行命令
mysql_secure_installation
首先是設置密碼,會提示先輸入密碼

Enter current password for root (enter for none):<–初次運行直接回車

設置密碼

Set root password? [Y/n] <– 是否設置root用戶密碼,輸入y並回車或直接回車
New password: <– 設置root用戶的密碼
Re-enter new password: <– 再輸入一次你設置的密碼

其他配置

Remove anonymous users? [Y/n] <– 是否刪除匿名用戶,回車

Disallow root login remotely? [Y/n] <–是否禁止root遠程登錄,回車,

Remove test database and access to it? [Y/n] <– 是否刪除test數據庫,回車

Reload privilege tables now? [Y/n] <– 是否重新加載權限表,回車

初始化MariaDB完成,接下來測試登錄

mysql -uroot -ppassword

修改my.cnf文件設置字符集等配置

[root@heaven00 soft]# cat /etc/my.cnf
[mysqld]
init_connect='SET collation_connection = utf8_unicode_ci'
init_connect='SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_unicode_ci
skip-character-set-client-handshake

[client]
default-character-set=utf8

[mysql]
default-character-set=utf8

重啟數據庫

systemctl restart mariadb.service

   5.3 創建confluence使用的數據庫,以及創建連接的用戶,及授權

create database confluence default character set utf8 collate utf8_bin;
grant all on confluence.* to 'confluence'@'%' identified by '123456';
flush privileges;
SET GLOBAL tx_isolation='READ-COMMITTED'; #不設置這個安裝過程中會報錯

六. 配置數據庫連接即可

后面的部分按照提示操作即可。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM