ubuntu confluence 6.3.4 破解安裝
之前寫過一篇confluence的安裝,因為自己的mysql自動升級成5.7了,所以之前的confluence僅僅是5.6一下的版本。重新安裝
環境
java : 1.8
mysql : 5.7
confluence : 6.3.4
檔案包和破解檔案:
1. 安裝java環境
在我的個人部落格中有介紹
配置java環境
export NODE=/usr/local/src/node
export PYTHON=/usr/local/src/python3
export JAVA_HOME=/usr/local/src/java
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${NODE}/bin:${PYTHON}/bin:${JAVA_HOME}/bin:$PATH
export LD_LIBRARY_PATH=/home/dll
2. 安裝confluence
root@compute-PowerEdge-T30:/usr/local/src# cp /home/compute/atlassian-confluence-6.3.4-x64.bin ./
root@compute-PowerEdge-T30:/usr/local/src# ls
atlassian-confluence-6.3.4-x64.bin java jdk-8u151-linux-x64.tar.gz
root@compute-PowerEdge-T30:/usr/local/src# chmod +x atlassian-confluence-6.3.4-x64.bin
root@compute-PowerEdge-T30:/usr/local/src# ./atlassian-confluence-6.3.4-x64.bin
Unpacking JRE ...
Starting Installer ...
Aug 05, 2021 11:19:13 AM java.util.prefs.FileSystemPreferences$2 run
INFO: Created system preferences directory in java.home.
This will install Confluence 6.3.4 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 (recommended for advanced users) [2, Enter],
Upgrade an existing Confluence installation [3]
1
The following default options cannot be used. You will be asked to provide alternatives for these options.
* Home Directory (Existing home directory)
Default location for Confluence data
[/var/atlassian/application-data/confluence]
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 6.3.4 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.3.4 is complete
Your installation of Confluence 6.3.4 is now ready and can be accessed via
your browser.
Confluence 6.3.4 can be accessed at http://localhost:8090
Finishing installation ...
root@compute-PowerEdge-T30:/usr/local/src#
2. 此時開啟瀏覽器可以看到
3. 停止服務,破解
root@compute-PowerEdge-T30:/usr/local/src# /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 Java: /opt/atlassian/confluence/jre//bin/java
2021-08-05 11:27:20,997 INFO [main] [atlassian.confluence.bootstrap.SynchronyProxyWatchdog] A Context element for ${confluence.context.path}/synchrony-proxy is found in /opt/atlassian/confluence/conf/server.xml. No further action is required
---------------------------------------------------------------------------
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.
4. 備份atlassian-extras-decoder-v2-3.2.jar 作為破解
root@compute-PowerEdge-T30:/opt/atlassian/confluence/confluence/WEB-INF/lib# cp atlassian-extras-decoder-v2-3.2.jar /home/compute/
root@compute-PowerEdge-T30:/opt/atlassian/confluence/confluence/WEB-INF/lib#
5. 開啟破解檔案
#將下載到本機的atlassian-extras-decoder-v2-3.2.jar重新命名為atlassian-extras-2.4.jar
#在本機執行atlassian-extras-decoder-v2-3.2.jar破解操作
6. 執行破解檔案 本機必須要安裝 java
製作jar 選擇patch 選擇剛剛重新命名的檔案
完成的標誌,jar檔案破解成功
7. 剛剛啟動成功之後複製serverId,破解
#上傳破解後jar包到/opt/atlassian/confluence/confluence/WEB-INF/lib,並重命名atlassian-extras-decoder-v2-3.3.0.jar
root@compute-PowerEdge-T30:/opt/atlassian/confluence/confluence/WEB-INF/lib# rm atlassian-extras-decoder-v2-3.2.jar
root@compute-PowerEdge-T30:/opt/atlassian/confluence/confluence/WEB-INF/lib# cp /home/compute/atlassian-extras-decoder-v2-3.2.jar ./
root@compute-PowerEdge-T30:/opt/atlassian/confluence/confluence/WEB-INF/lib#
8. 配置上傳
配置資料庫 mysql
mysql> create database confluence default character set utf8 COLLATE utf8_bin;
Query OK, 1 row affected (0.00 sec)
mysql> grant all privileges on confluence.* to 'hett'@'192.168.8.32' identified by 'hett';
Query OK, 0 rows affected, 1 warning (0.01 sec)
mysql>
9.按照頁面操作部署
建立管理員