当前服务器的IP为192.168.79.128 1、Keepalived下载 https://www.keepalived.org/download.html 我这里下载的是Version 2.0.18 2、Keepalived安装 cd /home/tools/ tar -zxvf keepali ...
分类:
其他好文 时间:
2020-06-21 00:33:37
阅读次数:
65
Keepalived 高可用基本概述 什么是高可用 一般是指2台机器启动着完全相同的业务系统,当有一台机器down机了,另外一台服务器就能快速的接管,对于访问的用户是无感知的。 高可用通常使用什么软件? 硬件通常使用 F5软件通常使用 keepalived **注意:**任何软件都可以使用keepa ...
分类:
其他好文 时间:
2020-06-21 00:14:45
阅读次数:
99
Centos 6.x版本 iptables 查看防火墙状态:service iptables tatus iptables:Firewall is not runing. 说明防火墙没有开启 开启防火墙:service iptables start 关闭防火墙:service iptables st ...
分类:
系统相关 时间:
2020-06-20 17:02:14
阅读次数:
62
一、安装iptables 1.1、查看是否安装 systemctl status iptables 输出结果表示没有安装该服务,需要先安装。 1.2、安装iptables yum install iptables-services 输出结果表示安装完成。 1.3、检查是否安装成功 systemctl ...
分类:
系统相关 时间:
2020-06-20 15:45:46
阅读次数:
72
答:重装iptables 查看库 # dpkg -L iptables | fgrep standard /usr/lib/x86_64-linux-gnu/xtables/libxt_standard.so 重装iptables # apt install --reinstall -y iptab ...
分类:
其他好文 时间:
2020-06-19 20:48:20
阅读次数:
203
生产环境中一台mysql主机存在单点故障,所以我们要确保mysql的高可用性,即两台MySQL服务器如果其中有一台MySQL服务器挂掉后,另外一台能立马接替其进行工作。MySQL的高可用方案一般有如下几种:keepalived+双主,MHA,PXC,MMM,Heartbeat+DRBD等,比较常用的是keepalived+双主,MHA和PXC。本节主要介绍了利用keepalived实现MySQL数
分类:
数据库 时间:
2020-06-19 10:29:51
阅读次数:
54
主要原因,应该是防火墙的原因。解决方法,关闭防火墙。 SuSE下: service SuSEfirewall2_setup status service SuSEfirewall2_setup stop rhel下: service iptables stop ...
分类:
Web程序 时间:
2020-06-18 22:12:27
阅读次数:
90
主节点ip:192.168.3.122,备节点ip:192.168.3.123主节点配置如下:!Configurationfileforkeepalivedglobal_defs{notification_email{admin@wf.com}notification_email_fromadmin@wf.comsmtp_server127.0.0.1smtp_connect_timeout30r
分类:
其他好文 时间:
2020-06-18 10:52:30
阅读次数:
45
# 安装补丁包# yum install -y conntrack ipvsadm ipset jq iptables curl sysstat libsecomp wget net-tools git vim# 禁用防火墙# systemctl stop firewalld && systemct ...
分类:
其他好文 时间:
2020-06-18 01:44:16
阅读次数:
65
前期准备 准备两台Linux,一主,一从,具体Linux安装MySQL操作步骤:点我直达 集群搭建 注意事项 一主可以多从 一从只能一主 关闭主从机器的防火墙策略 chkconfig iptables off service iptables stop 主服务器配置 修改my.cnf文件 vim / ...
分类:
数据库 时间:
2020-06-17 23:13:33
阅读次数:
107