一、服务器200安装LAMP环境

参照博客:https://blog.csdn.net/renfeigui0/article/details/102813376

名称 版本号 查询命令
linux系统 CentOS Linux release 8.0.1905 (Core) cat /etc/redhat-release
Apache httpd-2.4.37-12.module_el8.0.0+185+5908b0db.x86_64 rpm -qa | grep httpd
mariadb mariadb-server-10.3.11-2.module_el8.0.0+35+6f2527ed.x86_64 rpm -qa | grep mariadb
php php-7.2.11-1.module_el8.0.0+56+d1ca79aa.x86_64 rpm -qa | grep php

二、服务器200安装配置Discuz论坛

参照博客:https://blog.csdn.net/renfeigui0/article/details/102819994

名称 版本号
Discuz Discuz_X3.4

三、服务器200安装php-redis连接驱动,服务器210、220、230安装Redis

参照博客:https://blog.csdn.net/renfeigui0/article/details/102935762

名称 版本号
redis redis-5.0.5
php-redis php-redis-5.0.2

四、Redis配置主从复制,服务器210(Redis主),服务器220(Redis从)

参照博客:https://blog.csdn.net/renfeigui0/article/details/103182516

五、Redis配置主从自动切换,服务器230(Redis哨兵)

参照博客:https://blog.csdn.net/renfeigui0/article/details/103183582

六、mysql(mariadb)数据库配置读写分离,服务器200(mariadb主),服务器210(mariadb从)安装mariadb,220(mysq-proxy)安装mariadb、mysq-proxy

参照博客:https://blog.csdn.net/renfeigui0/article/details/103183858

名称 版本号
mysql-proxy版本 mysql-proxy-0.8.5-linux-glibc2.3-x86-64bit

七、配置php的数据库连接地址

1、登录apache web服务器200,修改DiscuzPHP网站发布目录全局配置文件config_global.php,查找dbhost字段,将IP修改为192.168.1.220:4040即可。
LAMP+Discuz+Redis+Mysql-proxy读写分离(centos8)

相关文章:

  • 2022-12-23
  • 2021-12-15
  • 2021-08-17
  • 2021-09-19
  • 2021-04-02
  • 2021-11-24
  • 2021-06-15
  • 2022-02-13
猜你喜欢
  • 2021-06-18
  • 2021-05-29
  • 2021-07-16
  • 2021-09-03
相关资源
相似解决方案