<?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; 负载均衡</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1/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>Tue, 14 Apr 2026 10:59:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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>
		<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>
		<item>
		<title>LVS+Keepalived实现MySQL从库读操作负载均衡</title>
		<link>https://www.osyunwei.com/archives/7464.html</link>
		<comments>https://www.osyunwei.com/archives/7464.html#comments</comments>
		<pubDate>Fri, 21 Mar 2014 09:58:25 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[LVS]]></category>
		<category><![CDATA[Keepalived]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[负载均衡]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=7464</guid>
		<description><![CDATA[说明： 操作系统：CentOS 5.X 64位 MySQL主服务器：192.168.21.126 MySQL从服务器：192.168.21.127，192.168.21.128 MySQL主从同步的数据库为：osyunweidb 实现目的： 增加两台服务器（主备），通过LVS+Keepalived实现MySQL从库读操作负载均衡 架构规划： 操作系统：CentOS 5.X 64位 LVS主服务器：192.168.21.129 LVS备服务器：192.168.21.130 LVS虚拟服务器（VIP）：192.168.21.254 部署完成之后，通过VIP：192.168.21.254，根据LVS调度算法来访问后端真实的MySQL从服务器，实现负载均衡。 具体操作： 第一部分：分别在两台MySQL从服务器上操作 一、关闭SELINUX vi /etc/selinux/config #SELINUX=enforcing #注释掉 #SELINUXTYPE=targeted #注释掉 SELINUX=disabled #增加 :wq!  #保存退出 setenforce 0 #使配置立即生效 二、配置防火墙，开启3306端口 vi /etc/sysconfig/iptables  #编辑 -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT  #允许3306端口通过防火墙 :wq! #保存退出 /etc/init.d/iptables [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/7464.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/7464.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Nginx负载均衡服务器配置教程</title>
		<link>https://www.osyunwei.com/archives/3795.html</link>
		<comments>https://www.osyunwei.com/archives/3795.html#comments</comments>
		<pubDate>Wed, 09 May 2012 13:32:29 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[LNMP]]></category>
		<category><![CDATA[负载均衡]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=3795</guid>
		<description><![CDATA[说明： Nginx负载均衡服务器： 系统：CentOS 5.5 IP：192.168.21.164 Web服务器列表： Web1:192.168.21.160 Web2:192.168.21.169 实现目的： 用户访问192.168.21.164服务器时，通过Nginx负载均衡到Web1和Web2服务器 下面配置Nginx负载均衡服务器 准备篇： 一、配置好IP、DNS 、网关，确保使用远程连接工具能够连接服务器 二、配置防火墙，开启80端口 系统运维 www.osyunwei.com 温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 vi /etc/sysconfig/iptables   #编辑防火墙配置文件,添加以下内容 -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT 特别提示：很多网友把这两条规则添加到防火墙配置的最后一行，导致防火墙启动失败，正确的应该是添加到默认的22端口这条规则的下面 添加好之后防火墙规则如下所示： ##################################################################### # Firewall configuration written by system-config-securitylevel # Manual customization of this file is not recommended. *filter :INPUT [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/3795.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/3795.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
