<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; Keepalived</title>
	<atom:link href="http://www.osyunwei.com/archives/category/framework/load-balancing/keepalived/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Wed, 01 Apr 2026 08:27:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Keepalived配置vip实现故障转移</title>
		<link>https://www.osyunwei.com/archives/13874.html</link>
		<comments>https://www.osyunwei.com/archives/13874.html#comments</comments>
		<pubDate>Fri, 16 Jun 2023 06:54:16 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Keepalived]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=13874</guid>
		<description><![CDATA[服务器：CentOS-7.x ip：192.168.21.100、192.168.21.101、192.168.21.128 vip（虚拟ip）：192.168.21.102 实现目的： 1、三台服务器运行正常的情况下，vip（虚拟ip）：192.168.21.102绑定在192.168.21.100上 2、192.168.21.100宕机，vip（虚拟ip）：192.168.21.102随机飘逸到192.168.21.101或者192.168.21.128其中的一台上面 3、192.168.21.100、192.168.21.101宕机，vip（虚拟ip）：192.168.21.102会飘逸到192.168.21.128上面 4、192.168.21.100、192.168.21.128宕机，vip（虚拟ip）：192.168.21.102会飘逸到192.168.21.101上面 5、192.168.21.100恢复，vip（虚拟ip）：192.168.21.102又会飘逸到192.168.21.100上面 1、下载安装包 https://www.keepalived.org/software/keepalived-2.2.8.tar.gz 上传keepalived-2.2.8.tar.gz到/data/soft目录 2、安装依赖包 sudo yum install openssl-devel popt-devel libnl3-devel libnfnetlink-devel kernel-devel gcc 3、编译安装keepalived sudo mkdir -p /data/server/keepalived #创建安装目录 cd /data/soft sudo tar zxvf keepalived-2.2.8.tar.gz cd keepalived-2.2.8 sudo ./configure --prefix=/data/server/keepalived #配置，必须看到以下提示，说明配置正确，才能继续安装 Use IPVS Framework : Yes Use VRRP Framework : Yes sudo make #编译 sudo make [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/13874.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/13874.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx+Keepalived实现Web服务器负载均衡</title>
		<link>https://www.osyunwei.com/archives/7566.html</link>
		<comments>https://www.osyunwei.com/archives/7566.html#comments</comments>
		<pubDate>Wed, 02 Apr 2014 07:39:00 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Keepalived]]></category>
		<category><![CDATA[负载均衡]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=7566</guid>
		<description><![CDATA[说明： 操作系统：CentOS 5.X 64位 Web服务器：192.168.21.127、192.168.21.128 站点：bbs.osyunwei.com和sns.osyunwei.com部署在两台Web服务器上 实现目的： 增加两台服务器（主主模式），通过Nginx+Keepalived实现Web服务器负载均衡 架构规划： 负载均衡服务器：192.168.21.129、192.168.21.130 虚拟服务器（VIP）：192.168.21.252、192.168.21.253 部署完成之后： 1、VIP：192.168.21.253指向192.168.21.129；VIP：192.168.21.252指向192.168.21.130； 2、当192.168.21.129宕机时，VIP：192.168.21.253漂移到192.168.21.130上； 3、当192.168.21.130宕机时，VIP：192.168.21.252漂移到192.168.21.129上； 这样的主主模式好处是，两台服务器在提供服务的同时，又互为对方的备份服务器。 具体操作： 第一部分：在两台Nginx服务器上分别操作 一、关闭SElinux、配置防火墙 1、vi /etc/selinux/config #SELINUX=enforcing #注释掉 #SELINUXTYPE=targeted #注释掉 SELINUX=disabled #增加 :wq!  #保存退出 setenforce 0 #使配置立即生效 2、vi /etc/sysconfig/iptables  #编辑 -A RH-Firewall-1-INPUT -d 224.0.0.18 -j ACCEPT  #允许组播地址通信 -A RH-Firewall-1-INPUT -p    vrrp    -j ACCEPT  #允许VRRP（虚拟路由器冗余协）通信 -A RH-Firewall-1-INPUT -m state --state NEW [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/7566.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/7566.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
