[linux] confluence部署配置


本文总阅读量

1、 下载、解压安装包

wget https://product-downloads.atlassian.com/software/confluence/downloads/atlassian-confluence-7.0.2.tar.gz
tar -zxvf atlassian-confluence-7.0.2.tar.gz

2、进入解压完之后的路径,修改配置文件

cd /data/soft/atlassian-confluence-7.0.2
修改配置文件设置confluence启动的家目录
vim /data/soft/atlassian-confluence-7.0.2/confluence/WEB-INF/classes/confluence-init.properties

1
2
3
4

# confluence.home=c:/confluence/data
修改为
confluence.home=/data/soft/atlassian-confluence-7.0.2

修改端口,默认端口为8090
vim /data/soft/atlassian-confluence-7.0.2/conf/server.xml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<Server port="8000" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<!--
==============================================================================================================
DEFAULT - Direct connector with no proxy, for unproxied HTTP access to Confluence.

If using a http/https proxy, comment out this connector.
==============================================================================================================
-->
<Connector port="8090" connectionTimeout="20000" redirectPort="8443"
maxThreads="48" minSpareThreads="10"
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
protocol="org.apache.coyote.http11.Http11NioProtocol"/>
<!--

server端口修改为5000,连接端口修改为5050

1
2
3
4
5
6
Server port="5000" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<Connector port="5050" connectionTimeout="20000" redirectPort="8443"
maxThreads="48" minSpareThreads="10"
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
protocol="org.apache.coyote.http11.Http11NioProtocol" />

3、启动confluence

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[root@dax-mysql-master atlassian-confluence-7.0.2]# ./bin/start-confluence.sh
To run Confluence in the foreground, start the server with start-confluence.sh -fg
executing as current 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 /data/soft/atlassian-confluence-7.0.2/logs/catalina.out
---------------------------------------------------------------------------
Using Java: /data/soft/jdk1.8.0_201/jre/bin/java
2019-10-08 16:46:05,152 INFO [main] [atlassian.confluence.bootstrap.SynchronyProxyWatchdog] A Context element for ${confluence.context.path}/synchrony-proxy is found in /data/soft/atlassian-confluence-7.0.2/conf/server.xml. No further action is required
---------------------------------------------------------------------------
Using CATALINA_BASE: /data/soft/atlassian-confluence-7.0.2
Using CATALINA_HOME: /data/soft/atlassian-confluence-7.0.2
Using CATALINA_TMPDIR: /data/soft/atlassian-confluence-7.0.2/temp
Using JRE_HOME: /data/soft/jdk1.8.0_201/jre
Using CLASSPATH: /data/soft/atlassian-confluence-7.0.2/bin/bootstrap.jar:/data/soft/atlassian-confluence-7.0.2/bin/tomcat-juli.jar
Using CATALINA_PID: /data/soft/atlassian-confluence-7.0.2/work/catalina.pid
Tomcat started.

4、破解confluence

上传atlassina-agent.jar破解包,下载链接
链接: https://pan.baidu.com/s/1XslwW8cdGRxVpnt3qigztQ 提取码: utp7

修改环境变量
vim conf/setenv.sh
`CATALINA_OPTS=”-javaagent:/data/soft/atlassian-agent.jar ${CATALINA_OPTS}”``
重新启动confluence

5、开始配置confluence

选择中文语言,选择产品安装
img1
点击下一步,如果勾选下面的选项,需要额外的破解步骤
img2
拷贝服务器ID,使用破解包,生成授权码
img3

在服务器端,执行下面步骤
java -jar /data/soft/atlassian-agent.jar -p conf -m zhangyuliang@new4g.cn -n zeven -o https://zeven0707.github.io -s BVQD-QO0A-IHZE-LJDV
命令行参数如下

1
2
3
4
5
-p conf(安装的是confluence产品)
-m aaa@bbb.com(随意写)
-n my_name(随意写)
-o https://zhile.io (随意写
-s B3N1-KDPW-IYEI-14CE (即当前的页面中显示的服务器ID)

生成下面的授权码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
[root@dax-mysql-master soft]# java -jar /data/soft/atlassian-agent.jar -p conf -m zhangyuliang@new4g.cn -n zeven -o https://zeven0707.github.io -s BVQD-QO0A-IHZE-LJDV
====================================================
======= Atlassian Crack Agent =======
======= https://zhile.io =======
======= QQ Group: 30347511 =======
====================================================
Your license code(Don't copy this line!!!):
AAABSA0ODAoPeJxtUFFrgzAYfM+vCOw5Nto520JgnQpz2LrOtg97S91XDdgoSXRzv35W3R5GIRByl
zvu7m7fAE4yg+kC296Kuit3jv10jx1qL5GvgBtRyYAbYFeE2JTQBQpbXjYDw8681IAC0JkS9YAcZ
CkuwsAHLkUGUgM+dbgwptar2ey7ECVYokKJyrkUejT5Y6EFST3qWbkwRXO6fswqebZ4ZkQLzKgGk
F9J07/DDRcl+y64zLumFP31KOHzPrcyOWpSw5UBNSUcoHgMtO9q2PILMD/ZbMI3P1rHqHeTBiSXG
YRftVDd1HmxJNTrD5q0UcDiKEjDLYlt16Ou47ru/MFZohRUC6qnn467gOwSuibR83tI4pfg+Cu+7
fzaqKzgGv6vPM13BKWvIzljh21zOYFKzgfd44zYqM/CbuSZZhp6Drv+ABXDoAYwLAIUeI9iDGYa7
BtHTuFqLI3Wftm0uSsCFEpRGmgeBy1pr+YzJPwhxwfYiqVGX02g8

拷贝授权码到下面空白框
img4
下面配置自己的数据库
img5

先上传数据库连接工具mysql-connector-java-5.1.42-bin.jar,可以通过官网下载
链接: https://pan.baidu.com/s/1qzhLzqO5mdSyQPoqFPT6KQ 提取码: j5zq
配置数据库连接
img6

根据提示将连接包放到指定的目录
cp -rp mysql-connector-java-5.1.42-bin.jar /data/soft/atlassian-confluence-7.0.2/confluence/WEB-INF/lib/
重新启动confluence
再次刷新页面,页面如下所示
img7

创建一个新的数据库字符集必须为utf8、排序规则为utf8_bin,数据库隔离级别为read-commit

1
2
set global transaction_isolation='READ-COMMITTED';
create database confluence default character set utf8 collate utf8_bin;

img8
配置成功之后,点击示范站点
img9
点击在confluence中管理用户和组
img10
配置管理员密码
img11
开始使用confluence
img12
查看是否正常破解,点击空间目录
img13
一般配置
img14
授权细节
img15
结果如下所示
img16

6、衍生–配置博文开启匿名访问

点击一般配置
img17
全局权限
img18
编辑权限
img19
启用匿名用户可以反问confluence
img20
修改需要对外提供访问的空间(例如nginx),点击空间管理-权限
img21
img22
授予匿名用户查看权限
img23

目录
  1. 1. 1、 下载、解压安装包
  2. 2. 2、进入解压完之后的路径,修改配置文件
  3. 3. 3、启动confluence
  4. 4. 4、破解confluence
  5. 5. 5、开始配置confluence
  6. 6. 6、衍生–配置博文开启匿名访问

Proudly powered by Hexo and Theme by Lap
本站访客数人次
© 2020 zeven0707's blog