<?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; HAProxy</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/haproxy/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>HAProxy+Keepalived实现Web服务器负载均衡</title>
		<link>https://www.osyunwei.com/archives/7512.html</link>
		<comments>https://www.osyunwei.com/archives/7512.html#comments</comments>
		<pubDate>Mon, 31 Mar 2014 05:52:33 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[HAProxy]]></category>
		<category><![CDATA[Keepalived]]></category>
		<category><![CDATA[负载均衡]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=7512</guid>
		<description><![CDATA[说明： 操作系统：CentOS 5.X 64位 Web服务器：192.168.21.127、192.168.21.128 站点：bbs.osyunwei.com和sns.osyunwei.com部署在两台Web服务器上 实现目的： 增加两台服务器（主主模式），通过HAProxy+Keepalived实现Web服务器负载均衡 架构规划： HAProxy服务器：192.168.21.129、192.168.21.130 虚拟服务器（VIP）：192.168.21.253、192.168.21.254 部署完成之后： 1、VIP：192.168.21.253指向192.168.21.129；VIP：192.168.21.254指向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.254漂移到192.168.21.129上； 这样的主主模式好处是，两台服务器在提供服务的同时，又互为对方的备份服务器。 具体操作： 第一部分：在两台HAProxy服务器上分别操作 一、关闭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/7512.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/7512.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
