环境要求
操作系统:contos7
数据库:5.5.60-MariaDB 经测试mysql5.7也可以 mysql8.0.12出现无法连接问题
java版本: jdk-1.8
confluence版本:confluence6.7.1
安装步骤
1.安装jdk环境,配置环境变量
2.给安装文件分配可执行权限,执行confluence安装文件 linux版本(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]
指定路径存储数据
Default location for Confluence data
[/var/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 ...
3.破解jar包
找到confluence安装目录 (默认安装目录举例)
剪切jar包(改名字破解)
mv /opt/atlassian/confluence/concluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.3.0.jar /opt/atlassian-extras-2.4.jar
把jar包复制到windows环境下(有jdk1.8环境),在windows环境下执行破解工具启动命令
confluence_keygen.jar是破解工具的jar包
java -jar confluence_keygen.jar
点击.patch,选择atlassian-extras-2.4.jar文件,点击打开,jar文件破解成功
破解成功后,jar包会被替换,把替换后的jar放回linux环境下原目录下 改回原来的名字
mv /opt/atlassian-extras-2.4.jar /opt/atlassian-extras-decoder-v2-3.3.0.jar
mv /opt/atlassian-extras-decoder-v2-3.3.0.jar /opt/atlassian/confluence/concluence/WEB-INF/lib/
破解工具窗口不要关闭,后面还有用
4.上传mysql驱动
我用的 mysql-connector-java-5.1.48.jar 上传至/opt/atlassian-extras-decoder-v2-3.3.0.jar /opt/atlassian/confluence/concluence/WEB-INF/lib/下
5.重启服务
sh /opt/atlassian/confluence/bin/stop-confluence.sh
sh /opt/atlassian/confluence/bin/start-confluence.sh
6.安装数据库
正常安装后
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';
创建一个utf8字符集的数据库,字符集必须utf8,否则安装时连接数据库报错
7.安装产品
访问 localhost:8090(安装时默认的端口号)