redis持久化2



	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(3991834,'XGfWgwDdEmYpWzoNh/dgzZhxojRUWkixBLtnB0L72Ac5JmzfkchGOQ==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(3991834,'XGfWgwDdEmYpWzoNh/dgzZhxojRUWkixBLtnB0L72Ac5JmzfkchGOQ==')">引用</a></span>
			</div>
			<a href="#3991834" class="layer">#9楼</a><a name="3991834" id="comment_anchor_3991834"></a>  <span class="comment_date">2018-06-06 13:07</span> <a id="a_comment_author_3991834" href="https://www.cnblogs.com/redrain24/" target="_blank">RedRainCopper</a> <a href="http://msg.cnblogs.com/send/RedRainCopper" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_3991834" class="blog_comment_body"><a href="#3991831" title="查看所回复的评论" onclick="commentManager.renderComments(0,50,3991831);">@</a>

白云随风



	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(3991882,'0ub+Ls47clGloAAz4bmDRRejJxIGxJHBcC0LttCF6+YSVD3pPJ/GMQ==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(3991882,'0ub+Ls47clGloAAz4bmDRRejJxIGxJHBcC0LttCF6+YSVD3pPJ/GMQ==')">引用</a></span>
			</div>
			<a href="#3991882" class="layer">#10楼</a><a name="3991882" id="comment_anchor_3991882"></a>  <span class="comment_date">2018-06-06 14:01</span> <a id="a_comment_author_3991882" href="https://www.cnblogs.com/niunan/" target="_blank">牛腩</a> <a href="http://msg.cnblogs.com/send/%E7%89%9B%E8%85%A9" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_3991882" class="blog_comment_body">支持支持</div><div class="comment_vote"><a href="javascript:void(0);" class="comment_digg" onclick="return voteComment(3991882,'Digg',this)">支持(0)</a><a href="javascript:void(0);" class="comment_bury" onclick="return voteComment(3991882,'Bury',this)">反对(0)</a></div><span id="comment_3991882_avatar" style="display:none;">http://pic.cnblogs.com/face/u41249.jpg</span>
		</div>
	</div>

	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(3991891,'Bd33ofgvs+ktLVGs9rlfk+m3VxsAD+a7qgWFdV9fN33XcH8nbpyHAg==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(3991891,'Bd33ofgvs+ktLVGs9rlfk+m3VxsAD+a7qgWFdV9fN33XcH8nbpyHAg==')">引用</a></span>
			</div>
			<a href="#3991891" class="layer">#11楼</a><a name="3991891" id="comment_anchor_3991891"></a>[<span class="louzhu">楼主</span>]  <span class="comment_date">2018-06-06 14:07</span> <a id="a_comment_author_3991891" href="https://www.cnblogs.com/kismetv/" target="_blank">编程迷思</a> <a href="http://msg.cnblogs.com/send/%E7%BC%96%E7%A8%8B%E8%BF%B7%E6%80%9D" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_3991891" class="blog_comment_body"><a href="#3991882" title="查看所回复的评论" onclick="commentManager.renderComments(0,50,3991882);">@</a>

牛腩
@RedRainCopper
@白云随风
@田园里的蟋蟀
@岁月漫步
谢谢支持!



	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(3991933,'1D/eUZaqz10iRyeq18WpsoFohsvzQYGfmFzeoOjAUo64uJFvKW8IbA==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(3991933,'1D/eUZaqz10iRyeq18WpsoFohsvzQYGfmFzeoOjAUo64uJFvKW8IbA==')">引用</a></span>
			</div>
			<a href="#3991933" class="layer">#12楼</a><a name="3991933" id="comment_anchor_3991933"></a>  <span class="comment_date">2018-06-06 14:35</span> <a id="a_comment_author_3991933" href="https://www.cnblogs.com/zuqing/" target="_blank">ZuQing</a> <a href="http://msg.cnblogs.com/send/ZuQing" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_3991933" class="blog_comment_body">赞一个</div><div class="comment_vote"><a href="javascript:void(0);" class="comment_digg" onclick="return voteComment(3991933,'Digg',this)">支持(0)</a><a href="javascript:void(0);" class="comment_bury" onclick="return voteComment(3991933,'Bury',this)">反对(0)</a></div><span id="comment_3991933_avatar" style="display:none;">http://pic.cnblogs.com/face/685383/20160508123049.png</span>
		</div>
	</div>

	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(3991964,'HJYly8apjcXXpZWCDG22cmyOqoe/3mFpHOSPyLWHMJcMGYqMyCAUEQ==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(3991964,'HJYly8apjcXXpZWCDG22cmyOqoe/3mFpHOSPyLWHMJcMGYqMyCAUEQ==')">引用</a></span>
			</div>
			<a href="#3991964" class="layer">#13楼</a><a name="3991964" id="comment_anchor_3991964"></a>  <span class="comment_date">2018-06-06 15:00</span> <a id="a_comment_author_3991964" href="https://www.cnblogs.com/objectboy/" target="_blank">等待是一生最初的苍老</a> <a href="http://msg.cnblogs.com/send/%E7%AD%89%E5%BE%85%E6%98%AF%E4%B8%80%E7%94%9F%E6%9C%80%E5%88%9D%E7%9A%84%E8%8B%8D%E8%80%81" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_3991964" class="blog_comment_body">什么时候能说集群?</div><div class="comment_vote"><a href="javascript:void(0);" class="comment_digg" onclick="return voteComment(3991964,'Digg',this)">支持(0)</a><a href="javascript:void(0);" class="comment_bury" onclick="return voteComment(3991964,'Bury',this)">反对(0)</a></div><span id="comment_3991964_avatar" style="display:none;">http://pic.cnblogs.com/face/u219261.jpg?id=21125218</span>
		</div>
	</div>

	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(3992320,'Bd33ofgvs+ktLVGs9rlfk+m3VxsAD+a7qgWFdV9fN33XcH8nbpyHAg==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(3992320,'Bd33ofgvs+ktLVGs9rlfk+m3VxsAD+a7qgWFdV9fN33XcH8nbpyHAg==')">引用</a></span>
			</div>
			<a href="#3992320" class="layer">#14楼</a><a name="3992320" id="comment_anchor_3992320"></a>[<span class="louzhu">楼主</span>]  <span class="comment_date">2018-06-06 19:41</span> <a id="a_comment_author_3992320" href="https://www.cnblogs.com/kismetv/" target="_blank">编程迷思</a> <a href="http://msg.cnblogs.com/send/%E7%BC%96%E7%A8%8B%E8%BF%B7%E6%80%9D" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_3992320" class="blog_comment_body"><a href="#3991933" title="查看所回复的评论" onclick="commentManager.renderComments(0,50,3991933);">@</a>

ZuQing
谢谢支持~



	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(3992321,'Bd33ofgvs+ktLVGs9rlfk+m3VxsAD+a7qgWFdV9fN33XcH8nbpyHAg==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(3992321,'Bd33ofgvs+ktLVGs9rlfk+m3VxsAD+a7qgWFdV9fN33XcH8nbpyHAg==')">引用</a></span>
			</div>
			<a href="#3992321" class="layer">#15楼</a><a name="3992321" id="comment_anchor_3992321"></a>[<span class="louzhu">楼主</span>]  <span class="comment_date">2018-06-06 19:42</span> <a id="a_comment_author_3992321" href="https://www.cnblogs.com/kismetv/" target="_blank">编程迷思</a> <a href="http://msg.cnblogs.com/send/%E7%BC%96%E7%A8%8B%E8%BF%B7%E6%80%9D" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_3992321" class="blog_comment_body"><a href="#3991964" title="查看所回复的评论" onclick="commentManager.renderComments(0,50,3991964);">@</a>

等待是一生最初的苍老
后面会依次说复制、哨兵和集群



	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(3998666,'IaCVl2A7xLnGCu/kglSQ3+YitbjxTorYD455PmuDk0ZLAOCeXfHafg==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(3998666,'IaCVl2A7xLnGCu/kglSQ3+YitbjxTorYD455PmuDk0ZLAOCeXfHafg==')">引用</a></span>
			</div>
			<a href="#3998666" class="layer">#16楼</a><a name="3998666" id="comment_anchor_3998666"></a>  <span class="comment_date">2018-06-15 02:12</span> <a id="a_comment_author_3998666" href="http://home.cnblogs.com/u/750017/" target="_blank">cicna</a> <a href="http://msg.cnblogs.com/send/cicna" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_3998666" class="blog_comment_body">跟着慢慢学</div><div class="comment_vote"><a href="javascript:void(0);" class="comment_digg" onclick="return voteComment(3998666,'Digg',this)">支持(0)</a><a href="javascript:void(0);" class="comment_bury" onclick="return voteComment(3998666,'Bury',this)">反对(0)</a></div>
		</div>
	</div>

	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(4008561,'TkZbyP02/pLro5hnl+wOo8hJWhvZGFEqgXyBh6vl0tnIPGBKNY984A==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(4008561,'TkZbyP02/pLro5hnl+wOo8hJWhvZGFEqgXyBh6vl0tnIPGBKNY984A==')">引用</a></span>
			</div>
			<a href="#4008561" class="layer">#17楼</a><a name="4008561" id="comment_anchor_4008561"></a>  <span class="comment_date">2018-06-29 11:25</span> <a id="a_comment_author_4008561" href="https://www.cnblogs.com/restart30/" target="_blank">从头越30</a> <a href="http://msg.cnblogs.com/send/%E4%BB%8E%E5%A4%B4%E8%B6%8A30" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_4008561" class="blog_comment_body">现在干的银行系统,属传统行业,打算去互联网公司发展,所以开始对互联网相关技术做研究,从关注的一个公众号发现了这篇文章,原理很详细,很受益。感谢博主的分享。</div><div class="comment_vote"><a href="javascript:void(0);" class="comment_digg" onclick="return voteComment(4008561,'Digg',this)">支持(0)</a><a href="javascript:void(0);" class="comment_bury" onclick="return voteComment(4008561,'Bury',this)">反对(0)</a></div>
		</div>
	</div>

	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(4008613,'Bd33ofgvs+ktLVGs9rlfk+m3VxsAD+a7qgWFdV9fN33XcH8nbpyHAg==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(4008613,'Bd33ofgvs+ktLVGs9rlfk+m3VxsAD+a7qgWFdV9fN33XcH8nbpyHAg==')">引用</a></span>
			</div>
			<a href="#4008613" class="layer">#18楼</a><a name="4008613" id="comment_anchor_4008613"></a>[<span class="louzhu">楼主</span>]  <span class="comment_date">2018-06-29 12:49</span> <a id="a_comment_author_4008613" href="https://www.cnblogs.com/kismetv/" target="_blank">编程迷思</a> <a href="http://msg.cnblogs.com/send/%E7%BC%96%E7%A8%8B%E8%BF%B7%E6%80%9D" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_4008613" class="blog_comment_body"><a href="#4008561" title="查看所回复的评论" onclick="commentManager.renderComments(0,50,4008561);">@</a>

从头越30
谢谢支持,祝你转型顺利~



	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(4009136,'sBY+pruwEYAZpBOnVVV84zjgMaEQ99pQWPaYwvWjuJj+MJU4u575/A==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(4009136,'sBY+pruwEYAZpBOnVVV84zjgMaEQ99pQWPaYwvWjuJj+MJU4u575/A==')">引用</a></span>
			</div>
			<a href="#4009136" class="layer">#19楼</a><a name="4009136" id="comment_anchor_4009136"></a>  <span class="comment_date">2018-06-29 22:23</span> <a id="a_comment_author_4009136" href="https://www.cnblogs.com/youcong/" target="_blank">挑战者V</a> <a href="http://msg.cnblogs.com/send/%E6%8C%91%E6%88%98%E8%80%85V" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_4009136" class="blog_comment_body">朋友写的挺不错的</div><div class="comment_vote"><a href="javascript:void(0);" class="comment_digg" onclick="return voteComment(4009136,'Digg',this)">支持(0)</a><a href="javascript:void(0);" class="comment_bury" onclick="return voteComment(4009136,'Bury',this)">反对(0)</a></div>
		</div>
	</div>

	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(4011926,'Bd33ofgvs+ktLVGs9rlfk+m3VxsAD+a7qgWFdV9fN33XcH8nbpyHAg==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(4011926,'Bd33ofgvs+ktLVGs9rlfk+m3VxsAD+a7qgWFdV9fN33XcH8nbpyHAg==')">引用</a></span>
			</div>
			<a href="#4011926" class="layer">#20楼</a><a name="4011926" id="comment_anchor_4011926"></a>[<span class="louzhu">楼主</span>]  <span class="comment_date">2018-07-03 23:18</span> <a id="a_comment_author_4011926" href="https://www.cnblogs.com/kismetv/" target="_blank">编程迷思</a> <a href="http://msg.cnblogs.com/send/%E7%BC%96%E7%A8%8B%E8%BF%B7%E6%80%9D" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_4011926" class="blog_comment_body"><a href="#4009136" title="查看所回复的评论" onclick="commentManager.renderComments(0,50,4009136);">@</a>

挑战者V
谢谢支持,以后会一直更新,欢迎关注



	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(4013507,'49d6t9CM96jOoZc2fw6cwimgwC+EK79AZn/vPeXf2yFPiqySzfUznA==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(4013507,'49d6t9CM96jOoZc2fw6cwimgwC+EK79AZn/vPeXf2yFPiqySzfUznA==')">引用</a></span>
			</div>
			<a href="#4013507" class="layer">#21楼</a><a name="4013507" id="comment_anchor_4013507"></a>  <span class="comment_date">2018-07-05 17:55</span> <a id="a_comment_author_4013507" href="http://home.cnblogs.com/u/1417866/" target="_blank">monkey_lc</a> <a href="http://msg.cnblogs.com/send/monkey_lc" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_4013507" class="blog_comment_body">楼主楼主,看完redis第一章后收益匪浅,现在看第二章也觉得很有进步,但是第二章貌似只有持久化和复制,没有哨兵和集群呀??</div><div class="comment_vote"><a href="javascript:void(0);" class="comment_digg" onclick="return voteComment(4013507,'Digg',this)">支持(0)</a><a href="javascript:void(0);" class="comment_bury" onclick="return voteComment(4013507,'Bury',this)">反对(0)</a></div>
		</div>
	</div>

	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(4013637,'Bd33ofgvs+ktLVGs9rlfk+m3VxsAD+a7qgWFdV9fN33XcH8nbpyHAg==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(4013637,'Bd33ofgvs+ktLVGs9rlfk+m3VxsAD+a7qgWFdV9fN33XcH8nbpyHAg==')">引用</a></span>
			</div>
			<a href="#4013637" class="layer">#22楼</a><a name="4013637" id="comment_anchor_4013637"></a>[<span class="louzhu">楼主</span>]  <span class="comment_date">2018-07-05 21:08</span> <a id="a_comment_author_4013637" href="https://www.cnblogs.com/kismetv/" target="_blank">编程迷思</a> <a href="http://msg.cnblogs.com/send/%E7%BC%96%E7%A8%8B%E8%BF%B7%E6%80%9D" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_4013637" class="blog_comment_body"><a href="#4013507" title="查看所回复的评论" onclick="commentManager.renderComments(0,50,4013507);">@</a>

monkey_lc
这个系列的第二篇文章就是专门讲持久化的,复制只是顺带提了一下。
第三篇是主从复制的,已经发了,你可以找找看。
后面会陆续介绍哨兵和集群,还没有发。



	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(4059714,'uzbeH5nf0ftc84MyUkjiynmQ7MW+5xn7M+QLYs5qVWI8O+49FX6mDQ==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(4059714,'uzbeH5nf0ftc84MyUkjiynmQ7MW+5xn7M+QLYs5qVWI8O+49FX6mDQ==')">引用</a></span>
			</div>
			<a href="#4059714" class="layer">#23楼</a><a name="4059714" id="comment_anchor_4059714"></a>  <span class="comment_date">2018-09-06 13:05</span> <a id="a_comment_author_4059714" href="https://www.cnblogs.com/smail-bao/" target="_blank">BigBao的博客</a> <a href="http://msg.cnblogs.com/send/BigBao%E7%9A%84%E5%8D%9A%E5%AE%A2" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_4059714" class="blog_comment_body">好文章,已经转载,作者牛逼,已关注,通俗易懂</div><div class="comment_vote"><a href="javascript:void(0);" class="comment_digg" onclick="return voteComment(4059714,'Digg',this)">支持(0)</a><a href="javascript:void(0);" class="comment_bury" onclick="return voteComment(4059714,'Bury',this)">反对(0)</a></div>
		</div>
	</div>

	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(4060659,'Bd33ofgvs+ktLVGs9rlfk+m3VxsAD+a7qgWFdV9fN33XcH8nbpyHAg==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(4060659,'Bd33ofgvs+ktLVGs9rlfk+m3VxsAD+a7qgWFdV9fN33XcH8nbpyHAg==')">引用</a></span>
			</div>
			<a href="#4060659" class="layer">#24楼</a><a name="4060659" id="comment_anchor_4060659"></a>[<span class="louzhu">楼主</span>]  <span class="comment_date">2018-09-07 12:35</span> <a id="a_comment_author_4060659" href="https://www.cnblogs.com/kismetv/" target="_blank">编程迷思</a> <a href="http://msg.cnblogs.com/send/%E7%BC%96%E7%A8%8B%E8%BF%B7%E6%80%9D" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_4060659" class="blog_comment_body"><a href="#4059714" title="查看所回复的评论" onclick="commentManager.renderComments(0,50,4059714);">@</a>

BigBao的博客
谢谢支持!



	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(4069908,'XMfs7YadkPntvkl7uf0/jEGRNcvf2DYvAxcWQ4HwjBPrKDp63thaAg==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(4069908,'XMfs7YadkPntvkl7uf0/jEGRNcvf2DYvAxcWQ4HwjBPrKDp63thaAg==')">引用</a></span>
			</div>
			<a href="#4069908" class="layer">#25楼</a><a name="4069908" id="comment_anchor_4069908"></a>  <span class="comment_date">2018-09-18 11:37</span> <a id="a_comment_author_4069908" href="http://home.cnblogs.com/u/1492221/" target="_blank">俺勇叔叔</a> <a href="http://msg.cnblogs.com/send/%E4%BF%BA%E5%8B%87%E5%8F%94%E5%8F%94" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_4069908" class="blog_comment_body">为了给博主评论,特意注册了账号,还等了一天才能评论。。。。。。多谢博主的分享,</div><div class="comment_vote"><a href="javascript:void(0);" class="comment_digg" onclick="return voteComment(4069908,'Digg',this)">支持(0)</a><a href="javascript:void(0);" class="comment_bury" onclick="return voteComment(4069908,'Bury',this)">反对(0)</a></div>
		</div>
	</div>

	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(4069945,'XMfs7YadkPntvkl7uf0/jEGRNcvf2DYvAxcWQ4HwjBPrKDp63thaAg==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(4069945,'XMfs7YadkPntvkl7uf0/jEGRNcvf2DYvAxcWQ4HwjBPrKDp63thaAg==')">引用</a></span>
			</div>
			<a href="#4069945" class="layer">#26楼</a><a name="4069945" id="comment_anchor_4069945"></a>  <span class="comment_date">2018-09-18 12:03</span> <a id="a_comment_author_4069945" href="http://home.cnblogs.com/u/1492221/" target="_blank">俺勇叔叔</a> <a href="http://msg.cnblogs.com/send/%E4%BF%BA%E5%8B%87%E5%8F%94%E5%8F%94" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_4069945" class="blog_comment_body"><div class="cnblogs_Highlighter sh-gutter"><div><div id="highlighter_220360" class="syntaxhighlighter  cpp"><div class="toolbar"><span><a href="#" class="toolbar_item command_help help">?</a></span></div><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="gutter"><div class="line number1 index0 alt2">1</div><div class="line number2 index1 alt1">2</div><div class="line number3 index2 alt2">3</div><div class="line number4 index3 alt1">4</div><div class="line number5 index4 alt2">5</div><div class="line number6 index5 alt1">6</div><div class="line number7 index6 alt2">7</div><div class="line number8 index7 alt1">8</div><div class="line number9 index8 alt2">9</div><div class="line number10 index9 alt1">10</div><div class="line number11 index10 alt2">11</div><div class="line number12 index11 alt1">12</div><div class="line number13 index12 alt2">13</div><div class="line number14 index13 alt1">14</div><div class="line number15 index14 alt2">15</div><div class="line number16 index15 alt1">16</div><div class="line number17 index16 alt2">17</div></td><td class="code"><div class="container"><div class="line number1 index0 alt2"><code class="cpp comments">//From redis4.0.7/server.c</code></div><div class="line number2 index1 alt1"><code class="cpp comments">/* Trigger an AOF rewrite if needed. */</code></div><div class="line number3 index2 alt2"><code class="cpp keyword bold">if</code> <code class="cpp plain">(server.aof_state == AOF_ON &amp;&amp;</code></div><div class="line number4 index3 alt1"><code class="cpp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="cpp plain">server.rdb_child_pid == -1 &amp;&amp;</code></div><div class="line number5 index4 alt2"><code class="cpp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="cpp plain">server.aof_child_pid == -1 &amp;&amp;</code></div><div class="line number6 index5 alt1"><code class="cpp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="cpp plain">server.aof_rewrite_perc &amp;&amp;</code></div><div class="line number7 index6 alt2"><code class="cpp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="cpp plain">server.aof_current_size &gt; server.aof_rewrite_min_size)</code></div><div class="line number8 index7 alt1"><code class="cpp plain">{</code></div><div class="line number9 index8 alt2"><code class="cpp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="cpp comments">//aof_rewrite_base_size:上次AOF重写之后的AOF文件大小、aof_current_size:当前AOF文件大小</code></div><div class="line number10 index9 alt1"><code class="cpp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="cpp color1 bold">long</code> <code class="cpp color1 bold">long</code> <code class="cpp plain">base = server.aof_rewrite_base_size ?</code></div><div class="line number11 index10 alt2"><code class="cpp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="cpp plain">server.aof_rewrite_base_size : 1;</code></div><div class="line number12 index11 alt1"><code class="cpp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="cpp color1 bold">long</code> <code class="cpp color1 bold">long</code> <code class="cpp plain">growth = (server.aof_current_size*100/base) - 100;</code></div><div class="line number13 index12 alt2"><code class="cpp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="cpp keyword bold">if</code> <code class="cpp plain">(growth &gt;= server.aof_rewrite_perc) {</code></div><div class="line number14 index13 alt1"><code class="cpp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="cpp plain">serverLog(LL_NOTICE,</code><code class="cpp string">"Starting automatic rewriting of AOF on %lld%% growth"</code><code class="cpp plain">,growth);</code></div><div class="line number15 index14 alt2"><code class="cpp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="cpp plain">rewriteAppendOnlyFileBackground();</code></div><div class="line number16 index15 alt1"><code class="cpp spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="cpp plain">}</code></div><div class="line number17 index16 alt2"><code class="cpp plain">}</code></div></div></td></tr></tbody></table></div></div></div><br>(aof_current_size-aof_rewrite_base_size )/aof_rewrite_base_size  &gt;= auto-aof-rewrite-percentage参数,才能触发AOF重写。auto-aof-rewrite-percentage参数可以理解为同一AOF重写周期内,AOF文件大小的增长率阀值,</div><div class="comment_vote"><a href="javascript:void(0);" class="comment_digg" onclick="return voteComment(4069945,'Digg',this)">支持(0)</a><a href="javascript:void(0);" class="comment_bury" onclick="return voteComment(4069945,'Bury',this)">反对(0)</a></div>
		</div>
	</div>

	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(4073907,'Bd33ofgvs+ktLVGs9rlfk+m3VxsAD+a7qgWFdV9fN33XcH8nbpyHAg==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(4073907,'Bd33ofgvs+ktLVGs9rlfk+m3VxsAD+a7qgWFdV9fN33XcH8nbpyHAg==')">引用</a></span>
			</div>
			<a href="#4073907" class="layer">#27楼</a><a name="4073907" id="comment_anchor_4073907"></a>[<span class="louzhu">楼主</span>]  <span class="comment_date">2018-09-21 20:30</span> <a id="a_comment_author_4073907" href="https://www.cnblogs.com/kismetv/" target="_blank">编程迷思</a> <a href="http://msg.cnblogs.com/send/%E7%BC%96%E7%A8%8B%E8%BF%B7%E6%80%9D" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_4073907" class="blog_comment_body"><a href="#4069908" title="查看所回复的评论" onclick="commentManager.renderComments(0,50,4069908);">@</a>

俺勇叔叔
真爱呀,(#.#)



	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(4074174,'XMfs7YadkPntvkl7uf0/jEGRNcvf2DYvAxcWQ4HwjBPrKDp63thaAg==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(4074174,'XMfs7YadkPntvkl7uf0/jEGRNcvf2DYvAxcWQ4HwjBPrKDp63thaAg==')">引用</a></span>
			</div>
			<a href="#4074174" class="layer">#28楼</a><a name="4074174" id="comment_anchor_4074174"></a>  <span class="comment_date">2018-09-22 13:20</span> <a id="a_comment_author_4074174" href="http://home.cnblogs.com/u/1492221/" target="_blank">俺勇叔叔</a> <a href="http://msg.cnblogs.com/send/%E4%BF%BA%E5%8B%87%E5%8F%94%E5%8F%94" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_4074174" class="blog_comment_body"><a href="#4073907" title="查看所回复的评论" onclick="commentManager.renderComments(0,50,4073907);">@</a>

编程迷思
受益良多收益良多吖,(๑╹◡╹)ノ"""



	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(4102829,'Dz3bhKfM4pZTZpDoYmEA7uV5RRRjOSwthfQwrzH0bTFieAPrUmKySg==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(4102829,'Dz3bhKfM4pZTZpDoYmEA7uV5RRRjOSwthfQwrzH0bTFieAPrUmKySg==')">引用</a></span>
			</div>
			<a href="#4102829" class="layer">#29楼</a><a name="4102829" id="comment_anchor_4102829"></a>  <span class="comment_date">2018-10-31 16:32</span> <a id="a_comment_author_4102829" href="https://www.cnblogs.com/johnson108178/" target="_blank">JohnsonChung</a> <a href="http://msg.cnblogs.com/send/JohnsonChung" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_4102829" class="blog_comment_body">请问一下,当redis宕机后,AOF和RDB还会继续工作吗?</div><div class="comment_vote"><a href="javascript:void(0);" class="comment_digg" onclick="return voteComment(4102829,'Digg',this)">支持(0)</a><a href="javascript:void(0);" class="comment_bury" onclick="return voteComment(4102829,'Bury',this)">反对(0)</a></div>
		</div>
	</div>

	<div class="feedbackItem">
		<div class="feedbackListSubtitle">
			<div class="feedbackManage">
				&nbsp;&nbsp;<span class="comment_actions"><a href="javascript:void(0);" onclick="return ReplyComment(4103014,'Bd33ofgvs+ktLVGs9rlfk+m3VxsAD+a7qgWFdV9fN33XcH8nbpyHAg==')">回复</a><a href="javascript:void(0);" onclick="return QuoteComment(4103014,'Bd33ofgvs+ktLVGs9rlfk+m3VxsAD+a7qgWFdV9fN33XcH8nbpyHAg==')">引用</a></span>
			</div>
			<a href="#4103014" class="layer">#30楼</a><a name="4103014" id="comment_anchor_4103014"></a>[<span class="louzhu">楼主</span>]<span id="comment-maxId" style="display:none;">4103014</span><span id="comment-maxDate" style="display:none;">2018/10/31 19:17:47</span>  <span class="comment_date">2018-10-31 19:17</span> <a id="a_comment_author_4103014" href="https://www.cnblogs.com/kismetv/" target="_blank">编程迷思</a> <a href="http://msg.cnblogs.com/send/%E7%BC%96%E7%A8%8B%E8%BF%B7%E6%80%9D" title="发送站内短消息" class="sendMsg2This">&nbsp;</a>
		</div>
		<div class="feedbackCon">
			<div id="comment_body_4103014" class="blog_comment_body"><a href="#4102829" title="查看所回复的评论" onclick="commentManager.renderComments(0,50,4102829);">@</a>

JohnsonChung
redis宕机后,RDB和AOF也不会工作了,因为本身RDB和AOF都是redis的模块;但是redis重启后,可以读取AOF文件或RDB文件来恢复数据




</div><!--end: forFlow -->
</div><!--end: mainContent 主体内容容器-->

<div id="sideBar">
	<div id="sideBarMain">

公告

昵称:编程迷思
园龄:1年5个月
粉丝:410
关注:2
		<div id="blog-calendar" style="display:none"></div><script type="text/javascript">loadBlogDefaultCalendar();</script>
		
		<div id="leftcontentcontainer">
			<div id="blog-sidecolumn"><div id="sidebar_search" class="sidebar-block"></div><div id="sidebar_recentposts" class="sidebar-block">
	</div><!--end: sideBarMain -->
</div><!--end: sideBar 侧边栏容器 -->
<div class="clear"></div>
</div><!--end: main -->
<div class="clear"></div>
<div id="footer">

Copyright ©2018 编程迷思

posted @ 2018-11-06 13:50  jobs-lgy  阅读(177)  评论(0编辑  收藏  举报