目录
0.介绍
最近,构思2-3人开发的产品,为了提高沟通效率,希望为团队提供一个wiki协作环境。经过调研后MM-Wiki、Confluence-wiki是比较推荐的两个协同工具。因此,对两个工具进行了安装、使用和对比,在安装过程中并非一帆风顺,因此对安装和问题解决过程进行记录。
本篇主要介绍Confluence-Wiki的安装和问题处理过程。
1.准备
1.1系统及环境
1.1.1 CentOS
CentOS 64位,Confluence-Wiki对配置要求比较高、本人服务器配置较低,因此将Confluence与MySql分别部署到两台服务器。
1.1.2 JDK
需要安装Java环境,建议安装Jdk1.8:Linux系统下安装jdk及环境配置
1.1.3 Mysql
Confluence-Wiki对Mysql的配置要求,安装主要时间是处理Mysql的配置。请参考:Linux下Mysql-8.0搭建过程总结
(1)Mysql版本
建议安装V5.7.XX版本,Confluence6.13.0对接Mysql8.0出现一系列问题,后Mysql改成V5.7.xx版本后可以连接
(2)Mysq配置
在/etc/my.cnf的【mysqld】中配置下述参数并且Mysql服务,Confluence-Wiki要求Mysql数据库位UTF8字节类型。
character-set-server=UTF8
collation-server=utf8_bin
# MySQL服务端校对规则
default-storage-engine = InnoDB
# 默认为ON,设置为OFF,关闭事务自动提交
transaction_isolation = READ-COMMITTED
# 同binlog,定义binlog的位置和名称
# binlog格式,复制有3种模式STATEMENT,ROW,MIXED
binlog_format = row
(3)Mysql数据库
查看Mysql的相关配置,并创建Confluence-Wiki所要连接的数据库:
#重启Mysql服务
[root@iZ25ccasklkZ] mysqlservice mysql restart
Stopping MySQL.... [ OK ]
Starting MySQL.... [ OK ]
#登陆Mysql
[root@iZ25ccasklkZ] mysql -uroot -proot
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 17688
Server version: 5.7.28-log MySQL Community Server (GPL)
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show variables like '%character%';
+--------------------------+----------------------------------+
| Variable_name | Value |
+--------------------------+--------------------------------