<?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; LVS</title>
	<atom:link href="http://www.osyunwei.com/archives/category/framework/load-balancing/lvs/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>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>
	</channel>
</rss>
