[Confluence]CentOS&MySQL&Confluence安装指导

基本环境

  • CentOS-7-x86_64-DVD-1804
[root@localhost Downloads]# uname -a
Linux bogon 3.10.0-862.11.6.el7.x86_64 #1 SMP Tue Aug 14 21:49:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
  • atlassian-confluence-6.7.1-x64.bin
  • mysql-connector-java-5.1.47.zip

辅助工具

  • WinSCP-5.13.1-Portable.zip
  • jre-8u181-windows-i586.exe

安装MySQL

配置yum源

# wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
# yum localinstall mysql57-community-release-el7-8.noarch.rpm
# 检查源是否安装成功
# yum repolist enabled | grep "mysql.*-community.*"

安装mysql

# yum install mysql-community-server

重启系统

配置mysql

# 查看启动状态
# systemctl status mysqld
# 添加开启自启动
# systemctl enable mysqld
# systemctl daemon-reload
# 修改root默认密码
# grep 'temporary password' /var/log/mysqld.log
# mysql -uroot -p
Enter password: wo2WE=Dl1!
mysql> SET PASSWORD = PASSWORD('mypass');
# 配置字符集
# vi /etc/my.cnf
# 在末尾添加如下内容后保存退出
character-set-server=utf8
collation-server=utf8_bin
default-storage-engine=INNODB
transaction-isolation=READ-COMMITTED
max_allowed_packet=512M
innodb_log_file_size=2GB
binlog_format=row
# 重启数据库
systemctl restart mysqld

创建数据库

# mysql -uroot -op
mysql> CREATE DATABASE confluence CHARACTER SET utf8 COLLATE utf8_bin;

安装Confluence

上传安装包

利用WinSCP上传如下文件至CentOS

  • atlassian-confluence-6.7.1-x64.bin
  • mysql-connector-java-5.1.47-bin.jar(zip解压)

安装Conflunece

# chmod a+x atlassian-confluence-6.7.1-x64.bin
# ./atlassian-confluence-6.7.1-x64.bin
# 按照提示安装即可

上传mysql连接器

/opt/atlassian/confluence/confluence/WEB-INF/lib/
/opt/atlassian/confluence/lib/

参考

  • https://blog.csdn.net/h1101723183/article/details/80805297
  • https://blog.csdn.net/csdn2193714269/article/details/72897815
  • https://blog.csdn.net/hzx1464138068/article/details/79390606
  • https://blog.csdn.net/qq_34889607/article/details/81118106

你可能感兴趣的:(运行维护)