centOS安装confluence

本文介绍在CentOS7环境下安装与破解Confluence6.9.1的详细步骤。包括安装JDK8、MySQL5.6,进行Nginx代理配置,访问Confluence并记录Server ID,使用破解工具生成Key,配置修改MySQL并上传驱动,最后重启Confluence完成后续安装,还给出可能问题的参考文档。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

 

环境:

centos7

jdk8  安装查看地址 https://blog.youkuaiyun.com/zhuwei_clark/article/details/87937904

mysql5.6 安装查看地址 :https://blog.youkuaiyun.com/zhuwei_clark/article/details/87935189

Confluence6.9.1 官网地址:https://www.atlassian.com/software/confluence

第一步安装

# 下载安装程序
wget https://product-downloads.atlassian.com/software/confluence/downloads/atlassian-confluence-6.9.1-x64.bin
# 授权安装程序执行权限
chmod a+x atlassian-confluence-6.9.1-x64.bin
# 执行安装程序,进行安装:
./atlassian-confluence-6.9.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]
/usr/local/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.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 ...

第二步:nginx代理配置

upstream  wiki{
    server  172.17.4.179:8090 weight=1;
}

server {
    listen 443;
    server_name wiki.zhubanxian.com;
    ssl on;
    ssl_certificate /etc/nginx/vhosts/wiki/wiki.pem;
    ssl_certificate_key /etc/nginx/vhosts/wiki/wiki.key;


    location ~ ^/(.*){
        proxy_pass http://wiki;
        proxy_set_header REMOTE_ADDR $remote_addr;
        proxy_set_header Host $http_host;
        proxy_http_version 1.1;
        proxy_set_header Connection "";
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }

}

server {
    listen 80;
    server_name wiki.zhubanxian.com;

    location ^~ /.well-known/acme-challenge/ {
        alias /data/sites/challenges/;
        try_files $uri = 404;
    }

    location / {
        rewrite ^/(.*)$ https://$host/$1 permanent;
    }
}

第三步访问:

1. 访问第一步安装好的Confluence,选择语言为中文-->选择安装-->插件先不选,直接下一步--> 记录下server ID。

 2.  进行破解

破解软件的下载地址:https://download.youkuaiyun.com/download/zhuwei_clark/11195490

# 关闭Confluence
cd /usr/local/atlassian/confluence    # 进入你安装的目录
bin/stop-confluence.sh    # 关闭confluence

# 将confluence 下面的一个atlassian-extras-decoder-v2-3.3.0.jar包复制一份出来
cp confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.3.0.jar ~/

# 将其改名为atlassian-extras-2.4.jar
mv ~/atlassian-extras-decoder-v2-3.3.0.jar ~/atlassian-extras-2.4.jar

# 将改名后的atlassian-extras-2.4.jar 传到本地
# 使用sftp传输到本地,具体方法不细说了

然后本地电脑操作: ① 打开下载的破解工具,运行confluence_keygen.jar   ②将记录的server ID填入,Name随便填。

③点击gen, 生成key并记录。 ④点击patch,选择刚下传到本地的atlassian-extras-2.4.jar文件进行破解。

OK,破解完成后,将破解后的文件传回服务器

# 传回服务器后,将名称改回之前的名称
mv atlassian-extras-2.4.jar atlassian-extras-decoder-v2-3.3.0.jar

# 然后覆盖回原路径
mv atlassian-extras-decoder-v2-3.3.0.jar /usr/local/atlassian/confluence/confluence/WEB-INF/lib/

3. 配置修改mysql并上传mysql驱动

    Confluence本身是没有集成mysql驱动的,需要自己下载并上传,原本在你安装的时候,输入key之后,会需要填入mysql连接信息,那里会有链接指向官方文档,教你如何配置mysql。但是配置完成后需要重启,会导致前面的破解出问题,所以,这里要一起完成后再重新启动。
 

cp mysql-connector-java-5.1.46.jar /usr/local/atlassian/confluence/lib/

4.  重新启动Confluence并完成后续安装

    完成上述步骤后,重启confluence,会回到输入key的界面,输入上面记录的key,点击下一步 --> 然后进行配置数据库 --> 推荐使用示范站点,先熟悉Confluence,然后再自行进行设置 --> 用户管理可以选择与jira进行集成,否则还是选择第一个自己管理用户和用户组。 --> 配置系统管理员账号  --> 完成

    每一步的图如下:

这里可能会出现连接数据库的问题,可以参考文档 https://blog.youkuaiyun.com/zhuwei_clark/article/details/90450316

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值