09 2022 档案
摘要:Nginx+Tomcat+Mysql综合实验 1、环境准备 服务器 IP地址 作用 系统版本 数据库服务器1 192.168.100.111 MGR集群数据库master节点 Rocky8.6 数据库服务器2 192.168.100.112 MGR集群数据库slave节点 Rocky8.6 数据库服
阅读全文
摘要:NEXUS_URL="https://download.sonatype.com/nexus/3/nexus-3.39.0-01-unix.tar.gz" #NEXUS_URL="https://download.sonatype.com/nexus/3/nexus-3.36.0-01-unix.t
阅读全文
摘要:create_cert () { cd /etc/openvpn/easy-rsa ./easyrsa gen-req ${NAME} nopass <<EOF EOF cd /etc/openvpn/easy-rsa ./easyrsa import-req /etc/openvpn/easy-r
阅读全文
摘要:一、利用Nginx反向代理Jpress+Tomcat 1、环境准备 | 服务器 | IP地址 | 作用 | 系统版本 | | | | | | | Proxy代理服务器 | 10.0.0.101 | 负载均衡Nginx Web服务器 | Ubuntu2004 | | Jpress服务器 | 10.0.
阅读全文
摘要:Oracle JDK的二进制文件安装 https://www.oracle.com/java/technologies/java-se-glance.html #官网下载地址 [root@rocky8 ~]# tar xf jdk-8u341-linux-x64.tar.gz -C /usr/loc
阅读全文
摘要:以下配置均在一台ubuntu上实现 # 生成宿主机Mysql配置文件,便于docker内容器使用 [root@ubuntu2004 ~]#mkdir -p /etc/mysql/mysql.conf.d [root@ubuntu2004 ~]#mkdir -p /etc/mysql/conf.d #
阅读全文
摘要:1、Nginx负载均衡Redis | 服务器 | IP地址 | 作用 | 系统版本 | | | | | | | Nginx代理服务器 | 10.0.0.38 | 负载均衡服务器 | Rocky8.6 | | Redis服务器1 | 10.0.0.18 | Redis服务器1 | Rocky8.6 |
阅读全文
摘要:一、docker安装PMM服务端 1、安装yum配置单元 # 如果已安装,略过此步 yum install -y yum-utils #yum配置单元 2、配置docker阿里云yum源 #配置docker阿里云yum源 [root@rocky-18 yum.repos.d]# vim aliyun
阅读全文
摘要:1、多台 web服务器 负载均衡 1、环境准备 | 服务器 | IP地址 | 作用 | 系统版本 | | | | | | | Proxy代理服务器 | 10.0.0.8 | 负载均衡Nginx Web服务器 | Rocky8.6 | | Web1-Nginx服务器 | 10.0.0.18 | 网站服
阅读全文
摘要:Nginx配置-2 1、升级Openssl [root@rocky8 ~]# nginx -V #查看现在nginx的OpenSSL版本和编译情况 nginx version: nginx/1.22.0 built by gcc 8.5.0 20210514 (Red Hat 8.5.0-10) (
阅读全文
摘要:1、绑定nginx到指定cpu [root@nginx conf.d]# vim /apps/nginx/conf/nginx.conf worker_processes 2; worker_cpu_affinity 00000001 00000010; #第一个worker进程绑定0号cpu,第二
阅读全文
摘要:Nginx编译安装 1、环境准备 rocky建议提前安装:yum install -y gcc pcre-devel openssl-devel zlib zlib-devel make gcc-c++ openss perl-ExtUtils-Embed ubuntu建议提前安装: apt ins
阅读全文
摘要:1、环境准备 | 服务器 | IP地址 | 作用 | 系统版本 | | | | | | | Mysql-master | eth0:10.0.0.58 | 主数据库 | Rocky8.6 | | Mysql-slave1 | eth0:10.0.0.68 | 备数据库 | Rocky8.6 | |
阅读全文
摘要:1、LVS-NAT规则+WRR算法 | 服务器 | IP地址 | 作用 | 系统版本 | | | | | | | RS1 | 10.0.0.8/24GW:10.0.0.101 | 网站服务器 | Rocky8.6 | | RS2 | 10.0.0.18/24GW:10.0.0.101 | 网站服务器
阅读全文
摘要:LVS综合实验 1、环境准备 提前准备:Mysql8.0.30安装包、Mysql安装脚本、shopxo2.3.0安装包、DNS脚本 | 服务器 | IP地址 | 作用 | 系统版本 | | | | | | | Mysql-master | 10.0.0.103 | shopxo网站主数据库 | Ub
阅读全文
摘要:利用xtrabackup8完全,增量备份及还原MySQL8 1、环境准备 | 服务器 | 作用 | 数据库版本 | xtrabackup版本 | | | | | | | 10.0.0.8 | 数据备份 | mysql8.0.26 | 8.0.28 | | 10.0.0.18 | 数据还原 | mys
阅读全文
摘要:Ubuntu实现电商网站+Mysql主从复制+NFS 1、环境准备 提前准备:Mysql8.0.30安装包、Mysql安装脚本、shopxo2.3.0安装包、DNS脚本 | 服务器 | IP地址 | 作用 | 系统版本 | | | | | | | Mysql-master | 10.0.0.103
阅读全文
摘要:MGR高可用实战案例 1、环境准备 node1 rocky8.6 10.0.0.8 node2 rocky8.6 10.0.0.18 node3 rocky8.6 10.0.0.28 2、所有节点更改主机名和名称解析 hostnamectl set-hostname node1.wang.org c
阅读全文
摘要:PXC高可用 1、环境准备 pxc1: centos7 10.0.0.7 pxc2: centos7 10.0.0.17 pxc3: centos7 10.0.0.27 pxc4: centos7 10.0.0.37 注意: 关闭防火墙和SELinux,保证时间同步 如果已经安装MySQL,必须卸载
阅读全文
摘要:实验目标: 1、搭建主从半同步+GTID复制 2、搭建MHA主服务器高可用 3、Mycat实现分库:wordpress库和shopxo库 4、客户通过域名可以访问到wordpress和shopxo 实验环境准备工作: Mysql master: NAT eth0: 10.0.0.8 Rocky8.6
阅读全文
摘要:9、半同步复制 安装插件三种方法: 第一种: mysql>INSTALL PLUGIN rpl_semi_sync_master SONAME 'semisync_master.so' 安装 在写入配置文件开启: [root@master ~]#vim /etc/my.cnf.d/mysql-ser
阅读全文
摘要:遇到的问题: # 查看slave状态show slave status\G显示IO线程为连接: Slave_IO_Running: NO 解决思路: 1、检查change master to里用户名、密码、日志位置等信息; 如果不行就用reset slave all 清除所有同步信息; 2、如果以前
阅读全文