准备工作

安装之前,需要对我们使用Confluence情况进行初步的评测,以解决在使用过程中的资源使用情况,包括用户数、在空间数、页面数以及访问的并发量,使用何种数据库,以确认我们应该为Confluecne置的资源内容和多少,这包括以下内容

  • 确认安装的Confluence版本
  • 针对不同版本号的服务器要求选择相应服务器
  • 被本版本JIRA所支持的数据库情况
  • https://my.atlassian.com中有权生成授权码的atlassian账户

端口号开放:可以参照旧有开放端口号进行端口授权,包括但不限定于(如为集群咅方式,可参见:00-Atlassian各产品默认端口号)

  • Confluence访问的访问号(8090,8091,80)
  • 邮件服务器的通信端口号(25,465)
  • LDAP通信的端口号(389,636)
  • 数据库端口(3306)
  • 与其它系统集成、调用接口的端口(jira)

注意

  • Linux环境建议安装中文包,并提供默认语言为zh_CN
  • 安装数据库,建议使用库表名不区分大小写,并默认使用字符集为UTF-8
  • 链接Mysql的用户,对此库有最大最高权限(数据库字符集建议使用: utf8, COLLATE使用utl8_bin))

创建数据库

-- 创建用户
CREATE USER 'wikiuser'@'%'  IDENTIFIED BY 'wikiuser';
-- 创建数据库
CREATE DATABASE confluencedb CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
-- 授权
GRANT ALL PRIVILEGES ON confluencedb.* TO 'wikiuser'@'%';
flush privileges;


执行安装和确认安装

[root@izbp1cvw2qewdmzjt3o82gz opt]# ./atlassian-confluence-8.4.0-x64.bin

Unpacking JRE ...

Starting Installer ...

This will install Confluence 8.4.0 on your computer.

OK [o, Enter], Cancel [c]

选择安装目的

Click Next to continue, or Cancel to exit Setup.

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]

填写安装目录和文件目录

Select the folder where you would like Confluence 6.15.1 to be installed,

then click Next.

Where should Confluence 6.15.1 be installed?

[/opt/atlassian/confluence]

Default location for Confluence data

[/var/atlassian/application-data/confluence]

填写相关端口号

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]

确认是否安装服务

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]

启动服务

回车后,开始进行安装,安装完成后会提示是否需要启动

Please wait a few moments while we configure Confluence.

Installation of Confluence 8.4.0 is complete

Start Confluence now?

Yes [y, Enter], No [n]

注意

  • 在启动之后,我们的Confluence需要连接外部数据,需要提前将连接数据库的驱动包放置在Confluence的安装目录/lib目录下
  • 是否需要修改Confluence的启动用户,可以修改安装目录下bin/user.sh ; 安装后可能会在系统中生成一个ConfluenceX 的用户;
  • 是否需要修改Confluence的启动参数,包括JVM的大小,可以修改安装目录下bin/setenv.sh中的各类参数。


之后,我们进行回车,启动服务。

至此,Confluence安装完成,将进入到Confluence的启动配置界面进行Confleunce系统配置。

初始化服务

接下来请继续:03-Confluence系统初始化(server)

如果安装的是DataCentere授权,可以继续:02-Confluence系统初始化(DataCenter)

检查

  • 可以登录创建空间、创建页面、上传附件
  • 页面显示中文正常
  • 附件文件名称 显示正常
  • 上传work,ppt,excel,pdf预览中文显示正常

有问题可以在119-使用问题 找相关资料来进行解决