<div id="pagecontent">
<div class="index">
<!-- This is a (PRE) block. Make sure it's left aligned or your toc title will be off. -->
-<b>SlaveofCommand: Contents</b><br> <a href="#SLAVEOF _host_ _port_">SLAVEOF _host_ _port_</a><br> <a href="#SLAVEOF no one">SLAVEOF no one</a><br> <a href="#Return value">Return value</a><br> <a href="#See also">See also</a>
+<b>SlaveofCommand: Contents</b><br> <a href="#SLAVEOF _host_ _port_">SLAVEOF _host_ _port_</a><br> <a href="#SLAVEOF no one">SLAVEOF no one</a><br> <a href="#Return value">Return value</a>
</div>
<h1 class="wikiname">SlaveofCommand</h1>
</div>
<div class="narrow">
- <h1><a name="SLAVEOF _host_ _port_">SLAVEOF _host_ _port_</a></h1>
+ #sidebar <a href="ControlCommandsSidebar.html">ControlCommandsSidebar</a><h1><a name="SLAVEOF _host_ _port_">SLAVEOF _host_ _port_</a></h1>
<h1><a name="SLAVEOF no one">SLAVEOF no one</a></h1><blockquote>The SLAVEOF command can change the replication settings of a slave on the fly.If a Redis server is arleady acting as slave, the command <code name="code" class="python">SLAVEOF NO ONE</code>will turn off the replicaiton turning the Redis server into a MASTER.In the proper form <code name="code" class="python">SLAVEOF hostname port</code> will make the server a slave of thespecific server listening at the specified hostname and port.</blockquote>
<blockquote>If a server is already a slave of some master, <code name="code" class="python">SLAVEOF hostname port</code> willstop the replication against the old server and start the synchrnonizationagainst the new one discarding the old dataset.</blockquote>
<blockquote>The form <code name="code" class="python">SLAVEOF no one</code> will stop replication turning the server into aMASTER but will not discard the replication. So if the old master stop workingit is possible to turn the slave into a master and set the application touse the new master in read/write. Later when the other Redis server will befixed it can be configured in order to work as slave.</blockquote>
-<h2><a name="Return value">Return value</a></h2><a href="ReplyTypes.html">Status code reply</a><h2><a name="See also">See also</a></h2>
-<ul><li> <a href="InfoCommand.html">INFO</a></li></ul>
+<h2><a name="Return value">Return value</a></h2><a href="ReplyTypes.html">Status code reply</a>
+
</div>
</div>