Confluence是一款由JAVA編寫用於企業知識庫管理協同軟件,多用於構建企業內部WIKI,支持多人協作,共享信息等。
當前系統環境Centos7.9,內存至少2G以上,數據庫采用MySQL5.7,本機電腦系統Windows10
安裝前准備工作
1、請將confluence7.4破解包下載到本機電腦上
https://down.whsir.com/downloads/confluence7.4pojie.zip
2、請將java8程序下載安裝到本機電腦上
https://down.whsir.com/downloads/jdk-8u172-windows-x64.exe
注:安裝java用於運行confluence7.4破解程序
3、將MySQL驅動插件下載至CentOS服務器上
https://down.whsir.com/downloads/mysql-connector-java-5.1.46.tar.gz
4、在CentOS服務器上添加wlnmp一鍵安裝包源
rpm -ivh https://mirrors.wlnmp.com/centos/wlnmp-release-centos.noarch.rpm
5、下載confluence7.4安裝包至CentOS服務器上
https://down.whsir.com/downloads/atlassian-confluence-7.4.6-x64.bin
正式安裝部署開始
1、通過wlnmp包安裝jdk1.8及MySQL5.7
yum install jdk1.8 wmysql57 -y
注:該jdk是oracle提供的包,wlnmp一鍵包將其鏡像了過來
2、修改MySQL配置
編輯my.cnf文件
vi /etc/my.cnf
將innodb_log_file_size = 32M改成innodb_log_file_size = 256M
將max_allowed_packet = 16M改成max_allowed_packet = 34M,注意此字段有兩個
然后在[mysqld]字段下添加一行:transaction-isolation=READ-COMMITTED
保存退出,重啟MySQL:/etc/init.d/mysql restart
3、創建數據庫
注:通過wlnmp一鍵包安裝的MySQL5.7默認密碼是空
mysql -uroot -p
mysql> create user confluence@localhost identified by 'blog.whsir.com'; mysql> create database confluence character set utf8 collate utf8_bin; mysql> grant all privileges on confluence.* to confluence@'localhost'; mysql> set password = password('whsir'); mysql> quit
此時數據庫root默認密碼更改為whsir,confluence使用單獨的庫、賬號密碼
4、安裝confluence
chmod +x atlassian-confluence-7.4.6-x64.bin
./atlassian-confluence-7.4.6-x64.bin Unpacking JRE ... Starting Installer ... This will install Confluence 7.4.6 on your computer. OK [o, Enter], Cancel [c] 輸入字母o或者直接回車 Click Next to continue, or Cancel to exit Setup. 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 7.4.6 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 7.4.6 is complete Your installation of Confluence 7.4.6 is now ready and can be accessed via your browser. Confluence 7.4.6 can be accessed at http://localhost:8090 Finishing installation ...
安裝完成后confluence會自動啟動
5、配置MySQL驅動
tar zxf mysql-connector-java-5.1.46.tar.gz cd mysql-connector-java-5.1.46 mv mysql-connector-java-5.1.46-bin.jar /opt/atlassian/confluence/confluence/WEB-INF/lib
6、開始破解
破解需要兩部,一是破解文件,二是獲取授權碼
一、破解文件
在CentOS服務器上下載/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.4.1.jar文件到本地重命名為atlassian-extras-2.4.jar
通過java運行confluence_keygen.jar(文中最開始的那個破解包,在windows上運行,需要在windows上安裝好java)
選擇.patch!找到剛才重命名的那個文件打開
打開后在當前目錄下可以看到atlassian-extras-2.4.jar和atlassian-extras-2.4.bak兩個文件,這里atlassian-extras-2.4.jar已經是破解好的了,將atlassian-extras-2.4.jar名字改回atlassian-extras-decoder-v2-3.4.1.jar
然后上傳回CentOS服務器/opt/atlassian/confluence/confluence/WEB-INF/lib/目錄,覆蓋掉原來的atlassian-extras-decoder-v2-3.4.1.jar文件
此時要重啟confluence服務:/etc/init.d/confluence restart
二、獲取授權碼
訪問web頁面,獲取服務器ID,http://IP:8090
復制網頁中的服務器ID,運行破解工具confluence_keygen.jar,破解復制Key到Confluence里,獲得授權碼,進行下一步
選擇MySQL配置項,配置數據庫即可
7、驗證授權
右上角配置→一般配置→授權細節
請一定按照操作步驟來,不建議一上來就改來改去。