centos7 安装confluence6.3及破解

环境介绍:
centos7
jdk 1.8
confluence 6.3
mariadb 5.5.56
nginx 1.14

服务器信息:
1核2G 50G硬盘

软件包:
jdk-8u171-linux-x64.tar.gz #jdk 1.8
atlassian-confluence-6.3.1-x64.bin #confluence安装包
mysql-connector-java-5.1.39-bin.jar #confluence连接mysql jar包
confluence_keygen.jar #破解confluence的jar包,在本机执行操作

confluence软件包地址:
链接:https://pan.baidu.com/s/1tzKXuWu_66PSK8THkD5F0w 密码:wb8g

安装jdk:
#jdk不需要安装,解压并添加环境变量就可以了
export JAVA_HOME=/data/soft/jdk1.8.0_171
export CLASSPATH=.:$JAVA_HOME/jar/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH

mariadb配置:
增加及修改配置文件:
transaction-isolation=READ-COMMITTED
character_set_server=utf8
collation-server=utf8_unicode_ci
skip-character-set-client-handshake
default-storage-engine=INNODB
max_allowed_packet = 34M

添加confluence数据库:
create database confluence default character set utf8 COLLATE utf8_bin;
grant all privileges on confluence.* to ‘confluence’@’localhost’ identified by ‘confluence’;

安装及破解confluence:

安装:
cd /data/soft/confluence/
./atlassian-confluence-6.3.1-x64.bin

#执行上面的命令后根据提示,依次输入“o–>1–>i–>y”即可完成安装,这里不做截图讲解了

破解:
在浏览器打开confluence,http://10.0.0.1:8090

#这个不用选择,直接下一步

#记录服务器ID,后续需要用到

#关闭服务
service confluence stop
#备份并下载atlassian-extras-decoder-v2-3.2.jar
cp /opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.2.jar /mnt/
#将下载到本机的atlassian-extras-decoder-v2-3.2.jar重命名为atlassian-extras-2.4.jar

#在本机执行atlassian-extras-decoder-v2-3.2.jar破解操作
#在本机(windows)安装Jdk,运行confluence_keygen.jar
D:\soft\java\bin\java.exe -jar D:\soft\linux_soft\confluence\confluence破解工具\confluence_keygen.jar

#点击.patch,选择atlassian-extras-2.4.jar文件,点击打开,jar文件破解成功
#Name栏内随便输入,Service ID填入上图中需要记录的服务器ID
#点击.gen,获取Key保留后面使用
#上传破解后jar包到/opt/atlassian/confluence/confluence/WEB-INF/lib,并重命名atlassian-extras-decoder-v2-3.3.0.jar
#上传mysql-connector-java-5.1.39-bin.jar包上传到/opt/atlassian/confluence/confluence/WEB-INF/lib目录下

#启动服务
service confluence start

#将破解过程中的保留的Key填入下图栏中即可完成破解

#选择Mysql数据库,并根据提示即可完成整个安装步骤

卸载及删除:

执行命令
./opt/atlassian/confluence/uninstall
cd /var
rm -rf atlassian

nginx反向代理配置:

server {
listen 80;
server_name doc.meisfuture.com;

location / {
proxy_connect_timeout 30s;
proxy_send_timeout 120;
proxy_read_timeout 120;
proxy_buffer_size 32k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_redirect off;
proxy_hide_header Vary;
proxy_set_header Accept-Encoding ”;
proxy_set_header Host $host;
proxy_set_header Referer $http_referer;
proxy_set_header Cookie $http_cookie;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 100m;
proxy_pass http://localhost:8090/;
}
}

注:
参考文章:
https://www.cnblogs.com/kevingrace/p/7607442.html
https://www.cnblogs.com/Javame/p/8779772.html
http://sundful.iteye.com/blog/2279461

发表评论