随笔分类 -  Linux学习之路

摘要:基本原理:从服务器开启两个线程,一个备份主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 阅读(575) 评论(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 阅读(307) 评论(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 阅读(217) 评论(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 阅读(247) 评论(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 阅读(419) 评论(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 阅读(323) 评论(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 阅读(176) 评论(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 阅读(323) 评论(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 阅读(176) 评论(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 14:36 xxxxxyq 阅读(164) 评论(0) 推荐(0)
摘要:下载地址:https://dev.mysql.com/downloads/mysql/5.7.html#downloads 解压tar -xvf mysql-5.7.26-linux-glibc2.12-x86_64.tar 再移动并重命名一下 mv mysql-5.7.26-linux-glibc 阅读全文
posted @ 2020-03-27 14:30 xxxxxyq 阅读(204) 评论(0) 推荐(0)