安装目录:
/home/softwares #confluence软件存放目录
/home/finance/App/confluence #confluence系统安装目录
/home/finance/Data/confluence #confluence数据存放目录
[root@192 ~]# mkdir -p /home/softwares
[root@192 ~]# mkdir -p /home/finance01/App/confluence
[root@192 ~]# mkdir -p /home/finance01/Data/confluence
1. 将 confluence软件上传至softwares目录
[root@192 ~]# cd /home/softwares/
[root@192 softwares]# rz # 下载安装程序
[root@192 softwares]# ls
atlassian-confluence-7.11.1-x64.bin
# 授权安装程序执行权限
[root@192 softwares]# chmod a+x atlassian-confluence-7.11.1-x64.bin
# 执行安装程序,进行安装:
[root@192 softwares]# ./atlassian-confluence-7.11.1-x64.bin
Unpacking JRE ...
Starting Installer ...
# o确定安装,c取消
This will install Confluence 6.9.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.9.1 be installed?
[/opt/atlassian/confluence]
/home/finance01/App/confluence
# 使用默认的路径存储数据
Default location for Confluence data
[/var/atlassian/application-data/confluence]
/home/finance01/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 需要修改请选择2
# 安装为后台进程,可后台运行
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.9.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.9.1 is complete
Your installation of Confluence 6.9.1 is now ready and can be accessed via
your browser.
Confluence 6.9.1 can be accessed at http://localhost:8090
Finishing installation ...
2. 安装完成,访问本机的8090端口进行web端安装
# 开放防火墙端口
[root@192 ~]# firewall-cmd --add-port=8090/tcp --permanent
[root@192 ~]# firewall-cmd --add-port=8000/tcp --permanent
[root@192 ~]# firewall-cmd --reload
1.下载confluence破解工具至个人电脑
首先对Confluence的破解,需要用到破解工具,首先下载破解工具到你的个人电脑,不是centos服务器。下载地址:
https://files.cnblogs.com/files/Javame/confluence%E7%A0%B4%E8%A7%A3%E5%B7%A5%E5%85%B7.zip
破解工具需要安装Java 下载链接 http://www.java.com/zh_CN/
访问第一步安装好的Confluence,选择语言为中文-->选择安装-->插件先不选,直接下一步--> 记录下server ID。
产品安装
二. 开始破解
# 关闭Confluence
[root@192 ~]# cd /home/finance01/App/confluence/ #进入Confluence安装的目录
[root@192 confluence]# bin/stop-confluence.sh # 关闭confluence
# 将confluence 下面的一个atlassian-extras-decoder-v2-3.4.1.jar包复制一份出来
[root@192 ~]# cp /home/finance01/App/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.4.1.jar ~/
# 将其改名为atlassian-extras-2.4.jar
[root@192 ~]# mv ~/atlassian-extras-decoder-v2-3.4.1.jar ~/atlassian-extras-2.4.jar
# 将改名后的atlassian-extras-2.4.jar 传到本地
[root@192 ~]# sz atlassian-extras-2.4.jar
运行破解软件进行破解
破解完成后,将破解后的文件传回服务器
# 传回服务器后,将名称改回之前的名称(.bak是原来备份的,jar的才是破解的)
[root@192 ~]# rz
[root@192 ~]# mv atlassian-extras-2.4.jar atlassian-extras-decoder-v2-3.4.1.jar
# 然后覆盖回原路径
[root@192 ~]# mv atlassian-extras-decoder-v2-3.4.1.jar /home/finance01/App/confluence/confluence/WEB-INF/lib/
3.启动confluence
[root@192 ~]# cd /home/finance01/App/confluence/
[root@192 confluence]# bin/start-confluence.sh 或者重启confluence #service confluence restart
4.安装MySQL驱动
驱动存放位置:
/home/finance01/App/confluence/confluence/WEB-INF/lib/
[root@192 ~]# cd /home/finance01/App/confluence/confluence/WEB-INF/lib/
重启confluence
[root@192 ~]# service confluence restart
最后报错:您的数据库必须使用'READ-COMMITTED'作为默认隔离级别
SET GLOBAL tx_isolation='READ-COMMITTED';