建议4核8G。(2G2G的阿里云ECS直接负载阻塞,无法正常安装成功。 )
Confluence6 - 服务器硬件要求指南 - …推荐运行 Confluence 的最小硬件要求:https://www.cwiki.us/display/CONF6ZH/Server+Hardware+Requirements+Guide
本机环境已经安装了最新的宝塔面板,所以无需单独安装Mysql。故本文不再介绍Mysql安装步骤。
本机windows需要下载的软件
confluence7.4破解包下载链接 http://down.whsir.com/downloads/confluence7.4pojie.zip
java8程序(JDK)下载链接 http://down.whsir.com/downloads/jdk-8u172-windows-x64.exe (注:安装java用于运行confluence7.4破解程序)
CentOS服务器上需要的源码包
MySQL驱动插件下载链接 http://down.whsir.com/downloads/mysql-connector-java-5.1.46.tar.gz
在CentOS服务器上安装宝塔面板 【查看宝塔Linux面板安装教程】
前提已经安装了宝塔面板或者已经安装了Mysql,修改mysql配置:
- 编辑my.cnf文件
将innodb_log_file_size = 32M改成innodb_log_file_size = 256Mvi /etc/my.cnf
将max_allowed_packet = 16M改成max_allowed_packet = 34M,注意此字段有两个
然后在[mysqld]字段下添加一行:transaction-isolation=READ-COMMITTED
保存退出,重启MySQL:/etc/init.d/mysql restart
- 创建数据库
注意字符集为utf8,校对应为utf8_bin。
安装Java
安装confluence
chmod +x atlassian-confluence-7.4.6-x64.bin
安装命令脚本,以及安装过程如下:
./atlassian-confluence-7.4.6-x64.bin # 执行安装
# 以下为安装过程中终端显示
Unpacking JRE ...
Starting Installer ...
This will install Confluence 7.4.6 on your computer. # 安装确认
OK [o, Enter], Cancel [c]
输入字母o或者直接回车
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] # 升级安装
输入数字1,然后回车
See where Confluence will be installed and the settings that will be used. # 安装选项确认
Installation Directory: /opt/atlassian/confluence # 安装目录
Home Directory: /var/atlassian/application-data/confluence # 应用家目录 && 数据目录
HTTP Port: 8090
RMI Port: 8000
Install as service: Yes
Install [i, Enter], Exit [e]
输入字母i或者直接回车
Extracting files ...
Please wait a few moments while we configure Confluence. # 安装进行中,等待提示
Installation of Confluence 7.4.6 is complete
Start Confluence now? # 是否启动confluence服务
Yes [y, Enter], No [n]
输入字母y或者直接回车
Please wait a few moments while Confluence starts up.
Launching Confluence ...
Installation of Confluence 7.4.6 is complete
Your installation of Confluence 7.4.6 is now ready and can be accessed via your browser.
Confluence 7.4.6 can be accessed at http://localhost:8090 # 访问路径,localhost改为服务器外网IP,开放8090端口(云服务器需要加入安全组)
Finishing installation ... # 安装完成
安装完成后confluence会自动启动。服务操作命令:
# 启动服务
/etc/init.d/confluence start
# 停止服务
/etc/init.d/confluence stop
# 重启服务
/etc/init.d/confluence restart
配置MySQL驱动
tar zxf mysql-connector-java-5.1.46.tar.gz
cd mysql-connector-java-5.1.4
mv mysql-connector-java-5.1.46-bin.jar /opt/atlassian/confluence/confluence/WEB-INF/lib