在centos7.4上安装confluence-6.7.1

在centos7.4上安装confluence-6.7.1

查看系统版本:

[root@localhost ~]# uname -a
Linux localhost.localdomain 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core) 
[root@localhost ~]#

--

下载confluence:

下载安装包  https://downloads.atlassian.com/software/confluence/downloads/atlassian-confluence-6.7.1-x64.bin
下载破解工具 https://files.cnblogs.com/files/Javame/confluence%E7%A0%B4%E8%A7%A3%E5%B7%A5%E5%85%B7.zip
下载mysql驱动 https://files.cnblogs.com/files/Javame/confluence%E7%A0%B4%E8%A7%A3%E5%B7%A5%E5%85%B7.rar

安装之前查看java安装信息:

[root@localhost tmp]# java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-b12)
OpenJDK 64-Bit Server VM (build 25.131-b12, mixed mode)

上传好安装包后,找到安装包,开始安装。

[root@localhost tmp]# chmod +x atlassian-confluence-6.7.1-x64.bin 
[root@localhost tmp]# ./atlassian-confluence-6.7.1-x64.bin 
Unpacking JRE ...
Starting Installer ...
Jan 14, 2020 3:10:16 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
Jan 14, 2020 3:10:16 PM java.util.prefs.FileSystemPreferences$2 run
INFO: Created system preferences directory in java.home.

This will install Confluence 6.7.1 on your computer.
OK [o, Enter], Cancel [c]

o确定安装,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]

选择2自定义安装

2

Where should Confluence 6.7.1 be installed?
[/opt/atlassian/confluence]

指定安装的目录,会自动创建,不输入直接回车就是使用默认路径

Default location for Confluence data
[/var/atlassian/application-data/confluence]

指定路径存储数据,不输入直接回车就是使用默认路径

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]

使用默认的端口,8090和8000

选1,回车

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回车

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,回车

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 ...
[root@localhost tmp]# 

破解

1,将/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.3.0.jar路径下的安装包下载到windwos机器上

2,将 下载的  atlassian-extras-decoder-v2-3.3.0.jar 重命名为 atlassian-extras-2.4.jar

3,

在本地windows上安装java环境,这里不详细记录
将下载的包confluence破解工具.zip 解压后,在windows机器中进入命令行运行java -jar confluence_keygen.jar

点击.patch,选择atlassian-extras-2.4.jar文件,点击打开,jar文件破解成功。

4,

将破解后的,atlassian-extras-2.4.jar包重名回,atlassian-extras-decoder-v2-3.3.0.jar

上传回 /opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.3.0.jar 覆盖。

上传驱动并重起。

上传mysql驱动文件mysql-connector-java-5.1.44-bin.jar 到目录/opt/atlassian/confluence/confluence/WEB-INF/lib

重启confluence服务
停止:sh /opt/atlassian/confluence/bin/stop-confluence.sh
启动:sh /opt/atlassian/confluence/bin/start-confluence.sh

访问confluence,确认防火墙关闭或放行8090端口,访问confluence以及初始化安装
http:ip:8090

 打开后,先设置界面语言为中文。

ID放回注册器算出注册码,下面都是中文界面安装,省略不写了。

原文地址:https://www.cnblogs.com/yisheng163/p/12192259.html