新的confluence 无需提前安装jdk,直接下载安装
[root@localhost download]# wget https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-6.12.1-x64.bin
[root@localhost download]# chmod a+x atlassian-confluence-6.12.1-x64.bin
[root@localhost download]# ./atlassian-confluence-6.12.1-x64.bin
installation directory 为: /opt/atlassian/confluence/
home directory 为: /var/atlassian/application/confluence/
default port 为:8090
remote manager interface 为: 8000
因为需要连接MySQL server, 下载JDBC到指定文件夹
[root@localhost download]# wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.47.tar.gz
[root@localhost download]# tar -zxvf mysql-connector-java-5.1.47.tar.gz
[root@localhost download]# cp mysql-connector-java-5.1.47-bin.jar /opt/atlassian/confluence/lib/
配置防火墙,打开端口
[root@localhost lib]# firewall-cmd --zone=public --add-port=8090/tcp --permanent
success
[root@localhost lib]# firewall-cmd --zone=public --add-port=8000/tcp --permanent
success
[root@localhost lib]# firewall-cmd --reload
success
配置MySQL服务器
[root@localhost ~]# vi /etc/my.cnf
# add the lines below to the file make sure there are no duplicatescharacter-set-server=utf8collation-server=utf8_bindefault-storage-engine=INNODBmax_allowed_packet=256Minnodb_log_file_size=2GBtransaction-isolation=READ-COMMITTEDbinlog_format=row
# remove this if it existssql_mode = NO_AUTO_VALUE_ON_ZERO
[root@localhost ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 53
Server version: 5.7.24 MySQL Community Server (GPL)
Copyright (c) 2000, 2018, 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> CREATE DATABASE confluencedb CHARACTER SET utf8 COLLATE utf8_bin;
Query OK, 1 row affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON confluencedb.* TO 'confluence'@'%' IDENTIFIED BY 'M@doorc0m';
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)
mysql> quit
Bye
[root@localhost ~]# systemctl restart mysqld
[root@localhost ~]# systemctl status mysqld
● mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2018-11-10 01:43:44 PST; 13s ago
Docs: man:mysqld(8)
http://dev.mysql.com/doc/refman/en/using-systemd.html
Process: 11475 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, status=0/SUCCESS)
Process: 11458 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
Main PID: 11478 (mysqld)
CGroup: /system.slice/mysqld.service
└─11478 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
Nov 10 01:43:14 localhost.localdomain systemd[1]: Starting MySQL Server...
Nov 10 01:43:44 localhost.localdomain systemd[1]: Started MySQL Server.
之后就可以访问Confluence主页,并配置