<?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/master-slave/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>Linux下Mongodb数据库主从同步配置</title>
		<link>https://www.osyunwei.com/archives/8433.html</link>
		<comments>https://www.osyunwei.com/archives/8433.html#comments</comments>
		<pubDate>Mon, 24 Nov 2014 09:50:46 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[主从架构]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[MongoDB]]></category>
		<category><![CDATA[数据库主从]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=8433</guid>
		<description><![CDATA[说明： 有两台已经安装完成的Mongodb数据库服务器，现在需要把一台设置为主库，另一台设置为从库，实现主从同步。 操作系统：CentOS 7.0 64位 MongoDB数据库版本：mongodb-linux-x86_64-2.6.5 准备工作：MongoDB数据库安装 请参考：Linux下安装配置MongoDB数据库 http://www.osyunwei.com/archives/7629.html 具体操作： 一、配置MongoDB主库 以下操作在MongoDB主库服务器上进行 1、cd  /usr/local/mongodb/ #进入MongoDB安装目录 vi /usr/local/mongodb/mongodb.conf  #编辑，在原来配置文件的最后一行添加以下代码 master=true  #设置为主库 oplogSize=2048  #同步复制的日志大小设置，单位MB :wq!  #保存退出 添加好之后如下图所示： 系统运维 www.osyunwei.com 温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链 2、重启MongoDB数据库 service  mongod  stop #停止MongoDB service  mongod  start #启动MongoDB 二、配置MongoDB从库 以下操作在MongoDB从库服务器上进行 1、cd  /usr/local/mongodb/ #进入MongoDB安装目录 vi /usr/local/mongodb/mongodb.conf  #编辑，在原来配置文件的最后一行添加以下代码 slave=true  #设置为从库 source=192.168.21.100:27017   #设置要同步的MongoDB主库IP地址和端口，格式：ip:端口 slavedelay=10                 #设置从库同步主库的延迟时间，单位为秒 autoresync=true [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/8433.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/8433.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下MySQL数据库主从同步配置</title>
		<link>https://www.osyunwei.com/archives/7269.html</link>
		<comments>https://www.osyunwei.com/archives/7269.html#comments</comments>
		<pubDate>Tue, 28 Jan 2014 08:52:39 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[主从架构]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql主从]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=7269</guid>
		<description><![CDATA[说明： 操作系统：CentOS 5.x 64位 MySQL数据库版本：mysql-5.5.35 MySQL主服务器：192.168.21.128 MySQL从服务器：192.168.21.129 准备篇： 说明：在两台MySQL服务器192.168.21.128和192.168.21.129上分别进行如下操作 备注： 作为主从服务器的MySQL版本建议使用同一版本！ 或者必须保证主服务器的MySQL版本要高于从服务器的MySQL版本！ 一、配置好IP、DNS 、网关，确保使用远程连接工具能够连接服务器 二、配置防火墙，开启3306端口 vi /etc/sysconfig/iptables  #编辑 -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT  #允许3306端口 特别提示：如果这两条规则添加到防火墙配置的最后一行，导致防火墙启动失败，正确的应该是添加到默认的22端口这条规则的下面，添加好之后防火墙规则如下所示： ######################################################### # Firewall configuration written by system-config-securitylevel # Manual customization of this file is not recommended. *filter :INPUT ACCEPT [0:0] :FORWARD [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/7269.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/7269.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL数据库配置主从服务器实现双机热备实例教程</title>
		<link>https://www.osyunwei.com/archives/3290.html</link>
		<comments>https://www.osyunwei.com/archives/3290.html#comments</comments>
		<pubDate>Sun, 25 Mar 2012 17:32:12 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[主从架构]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql主从]]></category>
		<category><![CDATA[mysql双机热备]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=3290</guid>
		<description><![CDATA[网站：bbs.osyunwei.com 程序在：Web服务器192.168.21.129上面 数据库在：MySQL服务器192.168.21.169上面 实现目的：增加一台MySQL备份服务器（192.168.21.168），做为MySQL服务器（192.168.21.169）的从服务器，这两台MySQL服务器之间实现双机热备。 即：从服务器（192.168.21.168）上面指定的数据库永远与主服务器（192.168.21.169）上面指定的数据库保持同步，并且随着主服务器（192.168.21.169）上面指定的数据库的变化而变化。 系统运维 www.osyunwei.com 温馨提醒：qihang01原创内容版权所有,转载请注明出处及原文链接 环境说明 1、Web服务器 系统：CentOS 6.2 IP：192.168.21.129 Web环境：apache+php 2、MySQL主服务器 系统：CentOS 6.2 IP：192.168.21.169 主机名称：MySQLMaster MySQL版本：mysql-5.5.22 3、MySQL从服务器 系统：CentOS 6.2 IP：192.168.21.168 主机名称：MySQLSlave MySQL版本：mysql-5.5.22 4、客户机 系统：Windows 7 IP：192.168.21.130 备注：作为主从服务器的MySQL版本建议使用同一版本！或者必须保证主服务器的MySQL版本要高于从服务器的MySQL版本（MySQL版本是向下兼容的） ####################################################################################### 教程开始： 一、安装MySQL 说明：在两台MySQL服务器192.168.21.169和192.168.21.168上分别进行如下操作，安装MySQL 5.5.22 1、配置防火墙，开启MySQL默认3306端口 vi /etc/sysconfig/iptables   #编辑防火墙配置文件 -A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT /etc/init.d/iptables [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/3290.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/3290.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
