Centos7系统安装confluence-5.6.6

部署Confluence知识管理库Wiki
system:CentOs7
搭建需要的安装包如下:
atlassian-confluence-5.6.6-x64.bin
51CTO下载-confluence5.6.6-crack.zip
jdk-7u80-windows-x64

链接:https://pan.baidu.com/s/1xgrz6Zbs-yQ8c1F2LrVSUA 提取码:98kd

1、环境准备

[root@node1 ~]# cat /etc/redhat-release 
CentOS Linux release 7.4.1708 (Core)
[root@node1 ~]# systemctl status firewalld.service      ---》关闭防火墙
[root@node1 ~]# cat /etc/selinux/config  SELINUX=disabled   ---》关闭selinux

2、开始安装使用的服务
confluence的运行时依赖java环境的,也就是需要安装jdk,而且要1.7t以上的版本
安装jdk:

[root@node1 ~]# yum -y install java   
[root@node1 ~]# java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
[root@node1 ~]# 

安装数据库Mysql:

[root@node1 ~]# yum install mariadb-server
[root@node1 ~]# systemctl enable mariadb.service
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
[root@node1 ~]# systemctl start  mariadb.service
[root@node1 ~]#  mysqladmin -uroot password meepotech

创建confluence库

[root@node1 ~]# mysql -uroot -pmeepotech
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 5.5.60-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> create database confluence default character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.01 sec)

MariaDB [(none)]> grant all on confluence.* to 'confluence'@'localhost' identified by 'confluence';
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> \q
Bye
[root@node1 ~]# 

安装confluence

[root@node1 ~]# wget https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-5.6.6-x64.bin
[root@node1 ~]# chmod +x atlassian-confluence-5.6.6-x64.bin 
[root@node1 ~]# ./atlassian-confluence-5.6.6-x64.bin

在这里插入图片描述
安装完成后到浏览器进行访问 http://IP:8090
在这里插入图片描述
有一个license key框,让输入密钥
在这里插入图片描述
需要进行授权,要我们输入license,下面我们进行破解
破解confluence
这里需要用到破解包51CTO下载-confluence5.6.6-crack.zip
复制图中 Server ID,
停止confluence服务

[root@node1 ~]# /etc/init.d/confluence stop
executing using dedicated user
If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide

Server startup logs are located in /opt/atlassian/confluence/logs/catalina.out
Using CATALINA_BASE:   /opt/atlassian/confluence
Using CATALINA_HOME:   /opt/atlassian/confluence
Using CATALINA_TMPDIR: /opt/atlassian/confluence/temp
Using JRE_HOME:        /opt/atlassian/confluence/jre/
Using CLASSPATH:       /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jar
Using CATALINA_PID:    /opt/atlassian/confluence/work/catalina.pid
Tomcat stopped.
[root@node1 ~]# 

删除原来的包文件

[root@node1 ~]#  cd /opt/atlassian/confluence/confluence/WEB-INF/lib
[root@node1 lib]# ll |grep atlassian-extra |wc -l
6
[root@node1 lib]# ll |grep atlassian-extra 
-rw-r--r--. 1 root root   14935 Dec  1  2014 atlassian-extras-api-3.2.jar
-rw-r--r--. 1 root root   21788 Dec  1  2014 atlassian-extras-common-3.2.jar
-rw-r--r--. 1 root root   38244 Dec  1  2014 atlassian-extras-core-3.2.jar
-rw-r--r--. 1 root root    5171 Dec  1  2014 atlassian-extras-decoder-api-3.2.jar
-rw-r--r--. 1 root root    6668 Dec  1  2014 atlassian-extras-decoder-v2-3.2.jar
-rw-r--r--. 1 root root   68438 Dec  1  2014 atlassian-extras-legacy-3.2.jar
[root@node1 lib]#  rm -fr atlassian-extra*
[root@node1 lib]# 

把破解包里面的ja目录下的*jar文件复制到 /opt/atlassian/confluence/confluence/WEB-INF/lib目录下
在这里插入图片描述

[root@node1 ~]# unzip 51CTO下载-confluence5.6.6-crack.zip 
[root@node1 ~]# cd confluence5.6.6-crack/jar/
[root@node1 jar]# ll
total 1476
-rw-r--r--. 1 root root 155443 Sep 23  2013 atlassian-extras-3.2.jar
-rw-r--r--. 1 root root 363012 Aug 16  2016 Confluence-5.6.6-language-pack-zh_CN.jar
-rw-r--r--. 1 root root 989497 May  4  2016 mysql-connector-java-5.1.39-bin.jar
[root@node1 jar]# cp ./* /opt/atlassian/confluence/confluence/WEB-INF/lib/
[root@node1 jar]# /etc/init.d/confluence start     -----》启动服务 

To run Confluence in the foreground, start the server with start-confluence.sh -fg
executing using dedicated user: confluence
If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide

Server startup logs are located in /opt/atlassian/confluence/logs/catalina.out
Using CATALINA_BASE:   /opt/atlassian/confluence
Using CATALINA_HOME:   /opt/atlassian/confluence
Using CATALINA_TMPDIR: /opt/atlassian/confluence/temp
Using JRE_HOME:        /opt/atlassian/confluence/jre/
Using CLASSPATH:       /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jar
Using CATALINA_PID:    /opt/atlassian/confluence/work/catalina.pid
Tomcat started.
[root@node1 jar]# 

下面就要运行破解包了
在windows上运行 confluence_keygen.jar,windows上需要安装jdk运行环境
jdk-7u80-windows-x64 ----如果没有java环境在windows上运行这个进行安装
运行cmd按照你的路径找到执行 java -jar confluence_keygen.jar 过几秒就会弹出一个框
在这里插入图片描述
把页面上给的Server ID 粘贴进去,然后点击,gen
在这里插入图片描述
复制得到的key到网站页面上license key框中
在这里插入图片描述
选择要连接的数据库版本在这里插入图片描述
在这里插入图片描述
输入数据库的用户名和密码在这里插入图片描述
此过程初始化数据库时间稍微有点长,初始完成后会自动跳转页面

在这里插入图片描述
在这里插入图片描述
填写confluence的管理员:账号与密码在这里插入图片描述
confluence安装完成后,如下:在这里插入图片描述
进入到confluence的界面里来
在这里插入图片描述
下面的管理员账号的基本设置,慢慢研究吧!!!

confluence与nginx集成使用域名访问:
confluence访问使用的是8090端口,为了访问的方便,我们把confluence与nginx进行集成,如下:
[root@localhost ]# yum -y install nginx
[root@localhost conf.d]# pwd
/etc/nginx/conf.d
[root@localhost conf.d]# cat wiki.conf 
server {
    listen       192.168.200.189:80;
    server_name  wiki.aihuidi.com;
    access_log   /var/log/wiki.access.log;

    location / {
        proxy_pass        http://localhost:8090;
        proxy_redirect    off;
        proxy_buffering   off;
        proxy_set_header  Host $host;
        proxy_set_header  X-Real-IP $remote_addr;
        proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
    }

    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }
}
[root@localhost conf.d]# 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值