摘要: 为了避免每次更新代码都要重新启动服务器。 使用springboot自带的热部署工具。将依赖放入pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</arti 阅读全文
posted @ 2020-06-01 10:30 xxxxxyq 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 基本原理:从服务器开启两个线程,一个备份主1,一个备份主2。 一、准备 主1:192.168.88.20 主2:192.168.88.30 从:192.168.88.40 两个主服务器开启binlog 两个主服务器都要开启授权给从服务器192.168.88.40 grant replication 阅读全文
posted @ 2020-05-12 11:27 xxxxxyq 阅读(532) 评论(0) 推荐(0) 编辑
摘要: 新建一台服务器 192.168.88.40 yum -y install mysql mysql-server 编辑etc下的配置文件 vim /etc/my.cnf 输入 bin-log=mysql-bin server-id=40binlog-ignore-db=mysql 主服务器赋予权限 g 阅读全文
posted @ 2020-05-12 11:05 xxxxxyq 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 接着主从备份继续。 1、编辑主从服务器 vim /etc/my.cnf 在server-id下添加一句 忽略一些信息 binlog-ignore-db=mysql 2、从服务器也授权给主服务器 grant replication slave on *.* to xyq@'192.168.88.20' 阅读全文
posted @ 2020-05-12 10:52 xxxxxyq 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 一、Mysql主从集群备份。 1、准备两台主机 主服务器:192.168.88.20和从服务器:192.168.88.30 2、分别安装mysql yum -y -install mysql mysql-server 3、编辑主服务器 vim /etc/my.cnf 在文件下编写 log-bin=m 阅读全文
posted @ 2020-05-12 10:22 xxxxxyq 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 一、安装JDK环境 1、先到 https://www.oracle.com/java/technologies/javase-jdk8-downloads.html 下载linux jdk-8u251-linux-x64.tar.gz 2、解压到目录 /usr/local/jdk1.8 tar -x 阅读全文
posted @ 2020-05-07 09:54 xxxxxyq 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 一、环境准备 1、安装nginx时,需要将--with-http_ssl_module 模块开启。 2、关闭selinux和防火墙 3、在 /usr/local/nginx/html/ 目录下添加bbs目录,并且在里面添加index.html,里面内容随便加。 二、修改nginx.conf 配置文件 阅读全文
posted @ 2020-05-06 15:20 xxxxxyq 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 一、准备环境 1、准备3台服务器: 1)192.168.88.10 --Nginx服务器 2)192.168.88.20 --apache服务器 3)192.168.88.30 --apache服务器 2、关闭SELinux和防火墙 3、在/etc/hosts/ 目录下添加解析地址 192.168. 阅读全文
posted @ 2020-05-06 14:33 xxxxxyq 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 一、安装环境 操作系统CentOS6.8 关闭SeLinux和iptables防火墙 二、网络yum源 将下面的软件下载到 /etc/yum.repos.d/ 的目录下 官方基础:http://mirrors.aliyun.com/repo/Centos-6.repo epel拓展:http://m 阅读全文
posted @ 2020-05-05 17:26 xxxxxyq 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 一、安装环境 操作系统CentOS6.8 关闭SeLinux和iptables防火墙 二、网络yum源 将下面的软件下载到 /etc/yum.repos.d/ 的目录下 官方基础:http://mirrors.aliyun.com/repo/Centos-6.repo epel拓展:http://m 阅读全文
posted @ 2020-05-05 15:06 xxxxxyq 阅读(167) 评论(0) 推荐(0) 编辑