http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/af2718af/content/docs/order-example/index.html
----------------------------------------------------------------------
diff --cc content/docs/order-example/index.html
index 89ee798,0000000..7a018e3
mode 100644,000000..100644
--- a/content/docs/order-example/index.html
+++ b/content/docs/order-example/index.html
@@@ -1,682 -1,0 +1,682 @@@
 +<!doctype html>
 +<html lang="en" class="no-js">
 +  <head>
 +    <meta charset="utf-8">
 +
 +<!-- begin SEO -->
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +<title>Order Message  - Apache RocketMQ</title>
 +
 +
 +
 +
 +<meta name="description" content="How to send and receive ordered messages in 
Apache RocketMQ.">
 +
 +
 +
 +
 +<meta property="og:locale" content="en">
 +<meta property="og:site_name" content="Apache RocketMQ">
 +<meta property="og:title" content="Order Message">
 +
 +
 +
 +
 +  <meta property="og:description" content="How to send and receive ordered 
messages in Apache RocketMQ.">
 +
 +
 +
 +  <meta name="twitter:site" content="@ApacheRocketMQ">
 +  <meta name="twitter:title" content="Order Message">
 +  <meta name="twitter:description" content="How to send and receive ordered 
messages in Apache RocketMQ.">
 +  <meta name="twitter:url" content="">
 +
 +  
 +    <meta name="twitter:card" content="summary">
 +    
 +  
 +
 +  
 +
 +
 +
 +  
 +
 +  
 +
 +
 +
 +
 +
 +  <meta property="og:type" content="article">
-   <meta property="article:published_time" content="2017-06-08T17:34:10+08:00">
++  <meta property="article:published_time" content="2017-06-08T18:09:33+08:00">
 +
 +
 +
 +
 +
 +
 +
 +
 +  <script type="application/ld+json">
 +    {
 +      "@context" : "http://schema.org";,
 +      "@type" : "Person",
 +      "name" : "Apache RocketMQ",
 +      "url" : null,
 +      "sameAs" : null
 +    }
 +  </script>
 +
 +
 +
 +  <meta name="google-site-verification" 
content="aand0XZkSGsziuC-UPD4ZJniFD0m0JhGx6820y2mAQY" />
 +
 +
 +  <meta name="baidu-site-verification" content="wD06EbDRkQ" />
 +
 +
 +
 +
 +<!-- end SEO -->
 +
 +
 +<link href="/feed.xml" type="application/atom+xml" rel="alternate" 
title="Apache RocketMQ Feed">
 +
 +<!-- http://t.co/dKP3o1e -->
 +<meta name="HandheldFriendly" content="True">
 +<meta name="MobileOptimized" content="320">
 +<meta name="viewport" content="width=device-width, initial-scale=1.0">
 +
 +<script>
 +  document.documentElement.className = 
document.documentElement.className.replace(/\bno-js\b/g, '') + ' js ';
 +</script>
 +
 +<!-- For all browsers -->
 +<link rel="stylesheet" href="/assets/css/main.css">
 +
 +<meta http-equiv="cleartype" content="on">
 +    <!-- start custom head snippets -->
 +
 +<!-- insert favicons. use http://realfavicongenerator.net/ -->
 +
 +<!-- end custom head snippets -->
 +  </head>
 +
 +  <body class="layout--single">
 +
 +    <!--[if lt IE 9]>
 +<div class="notice--danger align-center" style="margin: 0;">You are using an 
<strong>outdated</strong> browser. Please <a 
href="http://browsehappy.com/";>upgrade your browser</a> to improve your 
experience.</div>
 +<![endif]-->
 +    <div class="masthead">
 +  <div class="masthead__inner-wrap">
 +    <div class="masthead__menu">
 +      <nav id="site-nav" class="greedy-nav">
 +        <button><div class="navicon"></div></button>
 +        <ul class="visible-links">
 +          <li class="masthead__menu-item masthead__menu-item--lg"><a 
href="/">Apache RocketMQ</a></li>
 +          
 +            
 +            <li class="masthead__menu-item"><a 
href="/docs/quick-start/">Documentation</a></li>
 +          
 +            
 +            <li class="masthead__menu-item"><a 
href="/year-archive/">Blog</a></li>
 +          
 +            
 +            <li class="masthead__menu-item"><a 
href="/community/">Community</a></li>
 +          
 +            
 +            <li class="masthead__menu-item"><a 
href="/customer/">Customer</a></li>
 +          
 +            
 +            <li class="masthead__menu-item"><a 
href="/about/team/">About</a></li>
 +          
 +        </ul>
 +        <ul class="hidden-links hidden"></ul>
 +      </nav>
 +    </div>
 +  </div>
 +</div>
 +
 +    
 +
 +
 +
 +<div id="main" role="main">
 +  
 +  <div class="sidebar sticky">
 +  
 +  
 +    
 +      
 +      
 +      
 +    
 +    
 +      
 +
 +<nav class="nav__list">
 +  
 +  <input id="ac-toc" name="accordion-toc" type="checkbox" />
 +  <label for="ac-toc">Toggle Menu</label>
 +  <ul class="nav__items">
 +    
 +      <li>
 +        
 +          <span class="nav__sub-title">User Guide</span>
 +        
 +
 +        
 +        <ul>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/motivation/" class="">Why RocketMQ</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/quick-start/" class="">Quick Start</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/simple-example/" class="">Simple 
Example</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/order-example/" class="active">Order 
Example</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/broadcast-example/" class="">Broadcasting 
Example</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/schedule-example/" class="">Schedule 
Example</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/batch-example/" class="">Batch Example</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/filter-by-sql92-example/" class="">Filter 
Example</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/faq/" class="">FAQ</a></li>
 +          
 +        </ul>
 +        
 +      </li>
 +    
 +      <li>
 +        
 +          <span class="nav__sub-title">Deployment & Operations</span>
 +        
 +
 +        
 +        <ul>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/rmq-arc/" class="">Architecture</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/rmq-deployment/" class="">Deployment</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/cli-admin-tool/" class="">CLI Admin 
Tool</a></li>
 +          
 +        </ul>
 +        
 +      </li>
 +    
 +      <li>
 +        
 +          <span class="nav__sub-title">Contributor Guide</span>
 +        
 +
 +        
 +        <ul>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/code-guidelines/" class="">Code 
Guidelines</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/pull-request/" class="">Manage Pull 
Request</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/release-manual" class="">Release 
Manual</a></li>
 +          
 +        </ul>
 +        
 +      </li>
 +    
 +      <li>
 +        
 +          <span class="nav__sub-title">Best Practice</span>
 +        
 +
 +        
 +        <ul>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/core-concept/" class="">Core Concept</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/best-practice-broker/" class="">Broker</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/best-practice-producer/" 
class="">Producer</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/best-practice-consumer/" 
class="">Consumer</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/best-practice-namesvr/" 
class="">NameServer</a></li>
 +          
 +        </ul>
 +        
 +      </li>
 +    
 +      <li>
 +        
 +          <span class="nav__sub-title">Release Notes</span>
 +        
 +
 +        
 +        <ul>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/dowloading/releases/" class="">Download</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/release_notes/release-notes-4.0.0-incubating/" 
class="">4.0.0-incubating</a></li>
 +          
 +        </ul>
 +        
 +      </li>
 +    
 +      <li>
 +        
 +          
 +          
 +
 +          <a href="/docs/roadmap/"><span 
class="nav__sub-title">RoadMap</span></a>
 +        
 +
 +        
 +      </li>
 +    
 +  </ul>
 +</nav>
 +    
 +  
 +  </div>
 +
 +
 +  <article class="page" itemscope itemtype="http://schema.org/CreativeWork";>
 +    <meta itemprop="headline" content="Order Message">
 +    <meta itemprop="description" content="How to send and receive ordered 
messages in Apache RocketMQ.">
 +    <meta itemprop="datePublished" content="June 08, 2017">
 +    <meta itemprop="dateModified" content="April 24, 2017">
 +
 +    <div class="page__inner-wrap">
 +      
 +        <header>
 +          <h1 class="page__title" itemprop="headline">Order Message
 +</h1>
 +          
 +        </header>
 +      
 +
 +      <section class="page__content" itemprop="text">
 +        <aside class="sidebar__right">
 +<nav class="toc">
 +    <header><h4 class="nav__title"><i class="fa fa-file-text"></i> On This 
Page</h4></header>
 +<ul class="toc__menu" id="markdown-toc">
 +  <li><a href="#send-message-sample-code" 
id="markdown-toc-send-message-sample-code">Send message sample code</a></li>
 +  <li><a href="#subscription-message-sample-code" 
id="markdown-toc-subscription-message-sample-code">Subscription message sample 
code</a></li>
 +</ul>
 +
 +  </nav>
 +</aside>
 +
 +<p>RocketMQ provides ordered messages using FIFO order.</p>
 +
 +<p>The following example demonstrates sending/recieving of globally and 
partitionally ordered message.</p>
 +<h4 id="send-message-sample-code">Send message sample code</h4>
 +
 +<div class="language-java highlighter-rouge"><pre 
class="highlight"><code><span class="kd">public</span> <span 
class="kd">class</span> <span class="nc">OrderedProducer</span> <span 
class="o">{</span>
 +    <span class="kd">public</span> <span class="kd">static</span> <span 
class="kt">void</span> <span class="nf">main</span><span 
class="o">(</span><span class="n">String</span><span class="o">[]</span> <span 
class="n">args</span><span class="o">)</span> <span class="kd">throws</span> 
<span class="n">Exception</span> <span class="o">{</span>
 +        <span class="c1">//Instantiate with a producer group name.</span>
 +        <span class="n">MQProducer</span> <span class="n">producer</span> 
<span class="o">=</span> <span class="k">new</span> <span 
class="n">DefaultMQProducer</span><span class="o">(</span><span 
class="s">"example_group_name"</span><span class="o">);</span>
 +        <span class="c1">//Launch the instance.</span>
 +        <span class="n">producer</span><span class="o">.</span><span 
class="na">start</span><span class="o">();</span>
 +        <span class="n">String</span><span class="o">[]</span> <span 
class="n">tags</span> <span class="o">=</span> <span class="k">new</span> <span 
class="n">String</span><span class="o">[]</span> <span class="o">{</span><span 
class="s">"TagA"</span><span class="o">,</span> <span 
class="s">"TagB"</span><span class="o">,</span> <span 
class="s">"TagC"</span><span class="o">,</span> <span 
class="s">"TagD"</span><span class="o">,</span> <span 
class="s">"TagE"</span><span class="o">};</span>
 +        <span class="k">for</span> <span class="o">(</span><span 
class="kt">int</span> <span class="n">i</span> <span class="o">=</span> <span 
class="mi">0</span><span class="o">;</span> <span class="n">i</span> <span 
class="o">&lt;</span> <span class="mi">100</span><span class="o">;</span> <span 
class="n">i</span><span class="o">++)</span> <span class="o">{</span>
 +            <span class="kt">int</span> <span class="n">orderId</span> <span 
class="o">=</span> <span class="n">i</span> <span class="o">%</span> <span 
class="mi">10</span><span class="o">;</span>
 +            <span class="c1">//Create a message instance, specifying topic, 
tag and message body.</span>
 +            <span class="n">Message</span> <span class="n">msg</span> <span 
class="o">=</span> <span class="k">new</span> <span 
class="n">Message</span><span class="o">(</span><span 
class="s">"TopicTestjjj"</span><span class="o">,</span> <span 
class="n">tags</span><span class="o">[</span><span class="n">i</span> <span 
class="o">%</span> <span class="n">tags</span><span class="o">.</span><span 
class="na">length</span><span class="o">],</span> <span class="s">"KEY"</span> 
<span class="o">+</span> <span class="n">i</span><span class="o">,</span>
 +                    <span class="o">(</span><span class="s">"Hello RocketMQ 
"</span> <span class="o">+</span> <span class="n">i</span><span 
class="o">).</span><span class="na">getBytes</span><span 
class="o">(</span><span class="n">RemotingHelper</span><span 
class="o">.</span><span class="na">DEFAULT_CHARSET</span><span 
class="o">));</span>
 +            <span class="n">SendResult</span> <span 
class="n">sendResult</span> <span class="o">=</span> <span 
class="n">producer</span><span class="o">.</span><span 
class="na">send</span><span class="o">(</span><span class="n">msg</span><span 
class="o">,</span> <span class="k">new</span> <span 
class="n">MessageQueueSelector</span><span class="o">()</span> <span 
class="o">{</span>
 +            <span class="nd">@Override</span>
 +            <span class="kd">public</span> <span 
class="n">MessageQueue</span> <span class="nf">select</span><span 
class="o">(</span><span class="n">List</span><span class="o">&lt;</span><span 
class="n">MessageQueue</span><span class="o">&gt;</span> <span 
class="n">mqs</span><span class="o">,</span> <span class="n">Message</span> 
<span class="n">msg</span><span class="o">,</span> <span 
class="n">Object</span> <span class="n">arg</span><span class="o">)</span> 
<span class="o">{</span>
 +                <span class="n">Integer</span> <span class="n">id</span> 
<span class="o">=</span> <span class="o">(</span><span 
class="n">Integer</span><span class="o">)</span> <span 
class="n">arg</span><span class="o">;</span>
 +                <span class="kt">int</span> <span class="n">index</span> 
<span class="o">=</span> <span class="n">id</span> <span class="o">%</span> 
<span class="n">mqs</span><span class="o">.</span><span 
class="na">size</span><span class="o">();</span>
 +                <span class="k">return</span> <span class="n">mqs</span><span 
class="o">.</span><span class="na">get</span><span class="o">(</span><span 
class="n">index</span><span class="o">);</span>
 +            <span class="o">}</span>
 +            <span class="o">},</span> <span class="n">orderId</span><span 
class="o">);</span>
 +
 +            <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">printf</span><span class="o">(</span><span 
class="s">"%s%n"</span><span class="o">,</span> <span 
class="n">sendResult</span><span class="o">);</span>
 +        <span class="o">}</span>
 +        <span class="c1">//server shutdown</span>
 +        <span class="n">producer</span><span class="o">.</span><span 
class="na">shutdown</span><span class="o">();</span>
 +    <span class="o">}</span>
 +<span class="o">}</span>
 +</code></pre>
 +</div>
 +
 +<h4 id="subscription-message-sample-code">Subscription message sample 
code</h4>
 +
 +<div class="language-java highlighter-rouge"><pre 
class="highlight"><code><span class="kd">public</span> <span 
class="kd">class</span> <span class="nc">OrderedConsumer</span> <span 
class="o">{</span>
 +    <span class="kd">public</span> <span class="kd">static</span> <span 
class="kt">void</span> <span class="nf">main</span><span 
class="o">(</span><span class="n">String</span><span class="o">[]</span> <span 
class="n">args</span><span class="o">)</span> <span class="kd">throws</span> 
<span class="n">Exception</span> <span class="o">{</span>
 +        <span class="n">DefaultMQPushConsumer</span> <span 
class="n">consumer</span> <span class="o">=</span> <span class="k">new</span> 
<span class="n">DefaultMQPushConsumer</span><span class="o">(</span><span 
class="s">"example_group_name"</span><span class="o">);</span>
 +
 +        <span class="n">consumer</span><span class="o">.</span><span 
class="na">setConsumeFromWhere</span><span class="o">(</span><span 
class="n">ConsumeFromWhere</span><span class="o">.</span><span 
class="na">CONSUME_FROM_FIRST_OFFSET</span><span class="o">);</span>
 +
 +        <span class="n">consumer</span><span class="o">.</span><span 
class="na">subscribe</span><span class="o">(</span><span 
class="s">"TopicTest"</span><span class="o">,</span> <span class="s">"TagA || 
TagC || TagD"</span><span class="o">);</span>
 +
 +        <span class="n">consumer</span><span class="o">.</span><span 
class="na">registerMessageListener</span><span class="o">(</span><span 
class="k">new</span> <span class="n">MessageListenerOrderly</span><span 
class="o">()</span> <span class="o">{</span>
 +
 +            <span class="n">AtomicLong</span> <span 
class="n">consumeTimes</span> <span class="o">=</span> <span 
class="k">new</span> <span class="n">AtomicLong</span><span 
class="o">(</span><span class="mi">0</span><span class="o">);</span>
 +            <span class="nd">@Override</span>
 +            <span class="kd">public</span> <span 
class="n">ConsumeOrderlyStatus</span> <span 
class="nf">consumeMessage</span><span class="o">(</span><span 
class="n">List</span><span class="o">&lt;</span><span 
class="n">MessageExt</span><span class="o">&gt;</span> <span 
class="n">msgs</span><span class="o">,</span>
 +                                                       <span 
class="n">ConsumeOrderlyContext</span> <span class="n">context</span><span 
class="o">)</span> <span class="o">{</span>
 +                <span class="n">context</span><span class="o">.</span><span 
class="na">setAutoCommit</span><span class="o">(</span><span 
class="kc">false</span><span class="o">);</span>
 +                <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">printf</span><span class="o">(</span><span 
class="n">Thread</span><span class="o">.</span><span 
class="na">currentThread</span><span class="o">().</span><span 
class="na">getName</span><span class="o">()</span> <span class="o">+</span> 
<span class="s">" Receive New Messages: "</span> <span class="o">+</span> <span 
class="n">msgs</span> <span class="o">+</span> <span class="s">"%n"</span><span 
class="o">);</span>
 +                <span class="k">this</span><span class="o">.</span><span 
class="na">consumeTimes</span><span class="o">.</span><span 
class="na">incrementAndGet</span><span class="o">();</span>
 +                <span class="k">if</span> <span class="o">((</span><span 
class="k">this</span><span class="o">.</span><span 
class="na">consumeTimes</span><span class="o">.</span><span 
class="na">get</span><span class="o">()</span> <span class="o">%</span> <span 
class="mi">2</span><span class="o">)</span> <span class="o">==</span> <span 
class="mi">0</span><span class="o">)</span> <span class="o">{</span>
 +                    <span class="k">return</span> <span 
class="n">ConsumeOrderlyStatus</span><span class="o">.</span><span 
class="na">SUCCESS</span><span class="o">;</span>
 +                <span class="o">}</span> <span class="k">else</span> <span 
class="k">if</span> <span class="o">((</span><span class="k">this</span><span 
class="o">.</span><span class="na">consumeTimes</span><span 
class="o">.</span><span class="na">get</span><span class="o">()</span> <span 
class="o">%</span> <span class="mi">3</span><span class="o">)</span> <span 
class="o">==</span> <span class="mi">0</span><span class="o">)</span> <span 
class="o">{</span>
 +                    <span class="k">return</span> <span 
class="n">ConsumeOrderlyStatus</span><span class="o">.</span><span 
class="na">ROLLBACK</span><span class="o">;</span>
 +                <span class="o">}</span> <span class="k">else</span> <span 
class="k">if</span> <span class="o">((</span><span class="k">this</span><span 
class="o">.</span><span class="na">consumeTimes</span><span 
class="o">.</span><span class="na">get</span><span class="o">()</span> <span 
class="o">%</span> <span class="mi">4</span><span class="o">)</span> <span 
class="o">==</span> <span class="mi">0</span><span class="o">)</span> <span 
class="o">{</span>
 +                    <span class="k">return</span> <span 
class="n">ConsumeOrderlyStatus</span><span class="o">.</span><span 
class="na">COMMIT</span><span class="o">;</span>
 +                <span class="o">}</span> <span class="k">else</span> <span 
class="k">if</span> <span class="o">((</span><span class="k">this</span><span 
class="o">.</span><span class="na">consumeTimes</span><span 
class="o">.</span><span class="na">get</span><span class="o">()</span> <span 
class="o">%</span> <span class="mi">5</span><span class="o">)</span> <span 
class="o">==</span> <span class="mi">0</span><span class="o">)</span> <span 
class="o">{</span>
 +                    <span class="n">context</span><span 
class="o">.</span><span class="na">setSuspendCurrentQueueTimeMillis</span><span 
class="o">(</span><span class="mi">3000</span><span class="o">);</span>
 +                    <span class="k">return</span> <span 
class="n">ConsumeOrderlyStatus</span><span class="o">.</span><span 
class="na">SUSPEND_CURRENT_QUEUE_A_MOMENT</span><span class="o">;</span>
 +                <span class="o">}</span>
 +                <span class="k">return</span> <span 
class="n">ConsumeOrderlyStatus</span><span class="o">.</span><span 
class="na">SUCCESS</span><span class="o">;</span>
 +
 +            <span class="o">}</span>
 +        <span class="o">});</span>
 +
 +        <span class="n">consumer</span><span class="o">.</span><span 
class="na">start</span><span class="o">();</span>
 +
 +        <span class="n">System</span><span class="o">.</span><span 
class="na">out</span><span class="o">.</span><span 
class="na">printf</span><span class="o">(</span><span class="s">"Consumer 
Started.%n"</span><span class="o">);</span>
 +    <span class="o">}</span>
 +<span class="o">}</span>
 +</code></pre>
 +</div>
 +
 +
 +        
 +      </section>
 +
 +      <footer class="page__meta">
 +        
 +        
 +
 +
 +        
 +          <p class="page__date"><strong><i class="fa fa-fw fa-calendar" 
aria-hidden="true"></i> Updated:</strong> <time datetime="2017-04-24">April 24, 
2017</time></p>
 +        
 +      </footer>
 +
 +      <section class="page__share">
 +  
 +    <h4 class="page__share-title">Share on</h4>
 +  
 +
 +  <a href="https://twitter.com/intent/tweet?via=ApacheRocketMQ&text=Order 
Message  /docs/order-example/" class="btn btn--twitter" title="Share on 
Twitter"><i class="fa fa-fw fa-twitter" aria-hidden="true"></i><span> 
Twitter</span></a>
 +
 +  <a href="https://www.facebook.com/sharer/sharer.php?u=/docs/order-example/"; 
class="btn btn--facebook" title="Share on Facebook"><i class="fa fa-fw 
fa-facebook" aria-hidden="true"></i><span> Facebook</span></a>
 +
 +  <a href="https://plus.google.com/share?url=/docs/order-example/"; class="btn 
btn--google-plus" title="Share on Google Plus"><i class="fa fa-fw 
fa-google-plus" aria-hidden="true"></i><span> Google+</span></a>
 +
 +  <a 
href="https://www.linkedin.com/shareArticle?mini=true&url=/docs/order-example/"; 
class="btn btn--linkedin" title="Share on LinkedIn"><i class="fa fa-fw 
fa-linkedin" aria-hidden="true"></i><span> LinkedIn</span></a>
 +</section>
 +
 +
 +      
 +  <nav class="pagination">
 +    
 +      <a href="/docs/rmq-deployment/" class="pagination--pager" 
title="Deployment
 +">Previous</a>
 +    
 +    
 +      <a href="/docs/rmq-arc/" class="pagination--pager" title="RocketMQ 
Architecture
 +">Next</a>
 +    
 +  </nav>
 +
 +    </div>
 +
 +    
 +      <div class="page__comments">
 +  
 +  
 +    <h4 class="page__comments-title">Leave a Comment</h4>
 +    <section id="disqus_thread"></section>
 +  
 +</div>
 +    
 +  </article>
 +
 +  
 +  
 +</div>
 +
 +    <div class="page__footer">
 +      <footer>
 +        <!-- start custom footer snippets -->
 +
 +<!-- end custom footer snippets -->
 +        <style type="text/css">
 +  div.columns   { float: left; margin-left: 10px;}
 +  div.clear     { clear: both; } 
 +</style>
 +<div>
 +  <div class="columns">
 +    <a href="https://www.apache.org/";><img 
src="/assets/images/feather-small.gif" alt="Apache Software Foundation" 
style="height: 88px !important" /></a>
 +  </div>
 +  <div class="columns" style="width: 80%">
 +    <div class="page__footer-follow">
 +      <ul class="social-icons">
 +        
 +          <li><strong>Follow:</strong></li>
 +        
 +        
 +          <li><a href="https://twitter.com/ApacheRocketMQ";><i class="fa fa-fw 
fa-twitter-square" aria-hidden="true"></i> Twitter</a></li>
 +        
 +        
 +        
 +          <li><a href="http://github.com/apache/incubator-rocketmq";><i 
class="fa fa-fw fa-github" aria-hidden="true"></i> GitHub</a></li>
 +        
 +        
 +        <li><a href="/feed.xml"><i class="fa fa-fw fa-rss-square" 
aria-hidden="true"></i> Feed</a></li>
 +      </ul>
 +    </div>
 +
 +    <div class="page__footer-copyright">Copyright &copy; 2017 <a 
href="http://www.apache.org/";>The Apache Software Foundation</a>. All Rights 
Reserved.</div>
 +  </div>
 +</div>
 +<div class="clear"></div>
 +      </footer>
 +    </div>
 +
 +    <script src="/assets/js/main.min.js"></script>
 +
 +
 +
 +
 +  <script>
 +  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
 +  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new 
Date();a=s.createElement(o),
 +  
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
 +  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
 +
 +  ga('create', 'UA-89603173-1', 'auto');
 +  ga('send', 'pageview');
 +</script>
 +
 +<script>
 +var _hmt = _hmt || [];
 +(function() {
 +  var hm = document.createElement("script");
 +  hm.src = "https://hm.baidu.com/hm.js?36428f2b841d08e7405724cbf7f860d2";;
 +  var s = document.getElementsByTagName("script")[0]; 
 +  s.parentNode.insertBefore(hm, s);
 +})();
 +</script>
 +
 +
 +
 +
 +  
 +  <script type="text/javascript">
 +      /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * 
* */
 +      var disqus_shortname = 'rocketmq';
 +
 +      /* * * DON'T EDIT BELOW THIS LINE * * */
 +      (function() {
 +              var dsq = document.createElement('script'); dsq.type = 
'text/javascript'; dsq.async = true;
 +              dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
 +              (document.getElementsByTagName('head')[0] || 
document.getElementsByTagName('body')[0]).appendChild(dsq);
 +      })();
 +
 +      /* * * DON'T EDIT BELOW THIS LINE * * */
 +      (function () {
 +              var s = document.createElement('script'); s.async = true;
 +              s.type = 'text/javascript';
 +              s.src = '//' + disqus_shortname + '.disqus.com/count.js';
 +              (document.getElementsByTagName('HEAD')[0] || 
document.getElementsByTagName('BODY')[0]).appendChild(s);
 +      }());
 +  </script>
 +  <noscript>Please enable JavaScript to view the <a 
href="http://disqus.com/?ref_noscript";>comments powered by 
Disqus.</a></noscript>
 +
 +
 +
 +
 +
 +
 +  </body>
 +</html>

http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/af2718af/content/docs/pull-request/index.html
----------------------------------------------------------------------
diff --cc content/docs/pull-request/index.html
index ab9a5c6,0000000..e13f734
mode 100644,000000..100644
--- a/content/docs/pull-request/index.html
+++ b/content/docs/pull-request/index.html
@@@ -1,784 -1,0 +1,784 @@@
 +<!doctype html>
 +<html lang="en" class="no-js">
 +  <head>
 +    <meta charset="utf-8">
 +
 +<!-- begin SEO -->
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +<title>How to manage Pull Request - Apache RocketMQ</title>
 +
 +
 +
 +
 +<meta name="description" content="This page guides you through Git setup and 
contribution process.">
 +
 +
 +
 +
 +<meta property="og:locale" content="en">
 +<meta property="og:site_name" content="Apache RocketMQ">
 +<meta property="og:title" content="How to manage Pull Request">
 +
 +
 +
 +
 +  <meta property="og:description" content="This page guides you through Git 
setup and contribution process.">
 +
 +
 +
 +  <meta name="twitter:site" content="@ApacheRocketMQ">
 +  <meta name="twitter:title" content="How to manage Pull Request">
 +  <meta name="twitter:description" content="This page guides you through Git 
setup and contribution process.">
 +  <meta name="twitter:url" content="">
 +
 +  
 +    <meta name="twitter:card" content="summary">
 +    
 +  
 +
 +  
 +
 +
 +
 +  
 +
 +  
 +
 +
 +
 +
 +
 +  <meta property="og:type" content="article">
-   <meta property="article:published_time" content="2017-06-08T17:34:10+08:00">
++  <meta property="article:published_time" content="2017-06-08T18:09:33+08:00">
 +
 +
 +
 +
 +
 +
 +
 +
 +  <script type="application/ld+json">
 +    {
 +      "@context" : "http://schema.org";,
 +      "@type" : "Person",
 +      "name" : "Apache RocketMQ",
 +      "url" : null,
 +      "sameAs" : null
 +    }
 +  </script>
 +
 +
 +
 +  <meta name="google-site-verification" 
content="aand0XZkSGsziuC-UPD4ZJniFD0m0JhGx6820y2mAQY" />
 +
 +
 +  <meta name="baidu-site-verification" content="wD06EbDRkQ" />
 +
 +
 +
 +
 +<!-- end SEO -->
 +
 +
 +<link href="/feed.xml" type="application/atom+xml" rel="alternate" 
title="Apache RocketMQ Feed">
 +
 +<!-- http://t.co/dKP3o1e -->
 +<meta name="HandheldFriendly" content="True">
 +<meta name="MobileOptimized" content="320">
 +<meta name="viewport" content="width=device-width, initial-scale=1.0">
 +
 +<script>
 +  document.documentElement.className = 
document.documentElement.className.replace(/\bno-js\b/g, '') + ' js ';
 +</script>
 +
 +<!-- For all browsers -->
 +<link rel="stylesheet" href="/assets/css/main.css">
 +
 +<meta http-equiv="cleartype" content="on">
 +    <!-- start custom head snippets -->
 +
 +<!-- insert favicons. use http://realfavicongenerator.net/ -->
 +
 +<!-- end custom head snippets -->
 +  </head>
 +
 +  <body class="layout--single">
 +
 +    <!--[if lt IE 9]>
 +<div class="notice--danger align-center" style="margin: 0;">You are using an 
<strong>outdated</strong> browser. Please <a 
href="http://browsehappy.com/";>upgrade your browser</a> to improve your 
experience.</div>
 +<![endif]-->
 +    <div class="masthead">
 +  <div class="masthead__inner-wrap">
 +    <div class="masthead__menu">
 +      <nav id="site-nav" class="greedy-nav">
 +        <button><div class="navicon"></div></button>
 +        <ul class="visible-links">
 +          <li class="masthead__menu-item masthead__menu-item--lg"><a 
href="/">Apache RocketMQ</a></li>
 +          
 +            
 +            <li class="masthead__menu-item"><a 
href="/docs/quick-start/">Documentation</a></li>
 +          
 +            
 +            <li class="masthead__menu-item"><a 
href="/year-archive/">Blog</a></li>
 +          
 +            
 +            <li class="masthead__menu-item"><a 
href="/community/">Community</a></li>
 +          
 +            
 +            <li class="masthead__menu-item"><a 
href="/customer/">Customer</a></li>
 +          
 +            
 +            <li class="masthead__menu-item"><a 
href="/about/team/">About</a></li>
 +          
 +        </ul>
 +        <ul class="hidden-links hidden"></ul>
 +      </nav>
 +    </div>
 +  </div>
 +</div>
 +
 +    
 +
 +
 +
 +<div id="main" role="main">
 +  
 +  <div class="sidebar sticky">
 +  
 +  
 +    
 +      
 +      
 +      
 +    
 +    
 +      
 +
 +<nav class="nav__list">
 +  
 +  <input id="ac-toc" name="accordion-toc" type="checkbox" />
 +  <label for="ac-toc">Toggle Menu</label>
 +  <ul class="nav__items">
 +    
 +      <li>
 +        
 +          <span class="nav__sub-title">User Guide</span>
 +        
 +
 +        
 +        <ul>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/motivation/" class="">Why RocketMQ</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/quick-start/" class="">Quick Start</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/simple-example/" class="">Simple 
Example</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/order-example/" class="">Order Example</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/broadcast-example/" class="">Broadcasting 
Example</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/schedule-example/" class="">Schedule 
Example</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/batch-example/" class="">Batch Example</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/filter-by-sql92-example/" class="">Filter 
Example</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/faq/" class="">FAQ</a></li>
 +          
 +        </ul>
 +        
 +      </li>
 +    
 +      <li>
 +        
 +          <span class="nav__sub-title">Deployment & Operations</span>
 +        
 +
 +        
 +        <ul>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/rmq-arc/" class="">Architecture</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/rmq-deployment/" class="">Deployment</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/cli-admin-tool/" class="">CLI Admin 
Tool</a></li>
 +          
 +        </ul>
 +        
 +      </li>
 +    
 +      <li>
 +        
 +          <span class="nav__sub-title">Contributor Guide</span>
 +        
 +
 +        
 +        <ul>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/code-guidelines/" class="">Code 
Guidelines</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/pull-request/" class="active">Manage Pull 
Request</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/release-manual" class="">Release 
Manual</a></li>
 +          
 +        </ul>
 +        
 +      </li>
 +    
 +      <li>
 +        
 +          <span class="nav__sub-title">Best Practice</span>
 +        
 +
 +        
 +        <ul>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/core-concept/" class="">Core Concept</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/best-practice-broker/" class="">Broker</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/best-practice-producer/" 
class="">Producer</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/best-practice-consumer/" 
class="">Consumer</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/best-practice-namesvr/" 
class="">NameServer</a></li>
 +          
 +        </ul>
 +        
 +      </li>
 +    
 +      <li>
 +        
 +          <span class="nav__sub-title">Release Notes</span>
 +        
 +
 +        
 +        <ul>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/dowloading/releases/" class="">Download</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/release_notes/release-notes-4.0.0-incubating/" 
class="">4.0.0-incubating</a></li>
 +          
 +        </ul>
 +        
 +      </li>
 +    
 +      <li>
 +        
 +          
 +          
 +
 +          <a href="/docs/roadmap/"><span 
class="nav__sub-title">RoadMap</span></a>
 +        
 +
 +        
 +      </li>
 +    
 +  </ul>
 +</nav>
 +    
 +  
 +  </div>
 +
 +
 +  <article class="page" itemscope itemtype="http://schema.org/CreativeWork";>
 +    <meta itemprop="headline" content="How to manage Pull Request">
 +    <meta itemprop="description" content="This page guides you through Git 
setup and contribution process.">
 +    <meta itemprop="datePublished" content="June 08, 2017">
 +    <meta itemprop="dateModified" content="December 24, 2016">
 +
 +    <div class="page__inner-wrap">
 +      
 +        <header>
 +          <h1 class="page__title" itemprop="headline">How to manage Pull 
Request
 +</h1>
 +          
 +        </header>
 +      
 +
 +      <section class="page__content" itemprop="text">
 +        <p>This page guides you through Git setup and contribution 
process.</p>
 +
 +<aside class="sidebar__right">
 +<nav class="toc">
 +    <header><h4 class="nav__title"><i class="fa fa-file-text"></i> On This 
Page</h4></header>
 +<ul class="toc__menu" id="markdown-toc">
 +  <li><a href="#git-setup-for-contributors" 
id="markdown-toc-git-setup-for-contributors">Git setup for Contributors</a></li>
 +  <li><a href="#git-setup-for-committers" 
id="markdown-toc-git-setup-for-committers">Git setup for Committers</a></li>
 +  <li><a href="#do-some-work-on-the-branch" 
id="markdown-toc-do-some-work-on-the-branch">Do some work on the branch</a></li>
 +  <li><a href="#how-to-create-a-pr-committers" 
id="markdown-toc-how-to-create-a-pr-committers">How to create a PR 
(committers)</a></li>
 +  <li><a href="#how-to-create-a-pr-contributors" 
id="markdown-toc-how-to-create-a-pr-contributors">How to create a PR 
(contributors)</a></li>
 +  <li><a href="#merging-a-pr-yours-or-contributors" 
id="markdown-toc-merging-a-pr-yours-or-contributors">Merging a PR (yours or 
contributors)</a></li>
 +  <li><a href="#closing-a-pr-without-committing-for-committers" 
id="markdown-toc-closing-a-pr-without-committing-for-committers">Closing a PR 
without committing (for committers)</a></li>
 +  <li><a href="#apachegithub-integration-features" 
id="markdown-toc-apachegithub-integration-features">Apache/github integration 
features</a></li>
 +  <li><a href="#best-practises" id="markdown-toc-best-practises">Best 
Practises</a>    <ul>
 +      <li><a 
href="#avoiding-accidentally-committing-private-branches-to-the-asf-repo" 
id="markdown-toc-avoiding-accidentally-committing-private-branches-to-the-asf-repo">Avoiding
 accidentally committing private branches to the ASF repo</a></li>
 +    </ul>
 +  </li>
 +</ul>
 +
 +  </nav>
 +</aside>
 +
 +<h1 id="git-setup-for-contributors">Git setup for Contributors</h1>
 +<p>First of all, fork github’s <code 
class="highlighter-rouge">apache/incubator-rocketmq</code> to your own account 
on github and clone it as follows,</p>
 +
 +<div class="highlighter-rouge"><pre class="highlight"><code>git clone 
https://github.com/&lt;your_github_name&gt;/incubator-rocketmq.git
 +</code></pre>
 +</div>
 +
 +<p>Cloning this locally will set up <code 
class="highlighter-rouge">origin</code> to point to your remote fork on github 
as the default remote.
 +Now you can create your pull requests.</p>
 +
 +<p>You will need to update a local master sometimes (to merge to your 
development branches).
 +For this, you have to add remote for RocketMQ mirror as follows,</p>
 +
 +<div class="highlighter-rouge"><pre class="highlight"><code>git remote add 
upstream https://github.com/apache/incubator-rocketmq.git
 +</code></pre>
 +</div>
 +
 +<p>and update your local master via <code class="highlighter-rouge">git 
fetch</code> followed by <code class="highlighter-rouge">git rebase</code>, for 
instance:
 +    git fetch upstream master
 +    git rebase upstream/master</p>
 +
 +<h1 id="git-setup-for-committers">Git setup for Committers</h1>
 +<p>In addition to contributors’ configurations, committers will have to 
attach the apache git repo:</p>
 +
 +<div class="highlighter-rouge"><pre class="highlight"><code>git remote add 
apache https://git-wip-us.apache.org/repos/asf/incubator-rocketmq.git
 +</code></pre>
 +</div>
 +
 +<p>To check your remote setup, issue</p>
 +
 +<div class="highlighter-rouge"><pre class="highlight"><code>git remote -v
 +</code></pre>
 +</div>
 +
 +<p>You should see something like this:</p>
 +
 +<div class="highlighter-rouge"><pre class="highlight"><code>origin    
https://github.com/&lt;your_github_name&gt;/incubator-rocketmq.git (fetch)
 +origin    https://github.com/&lt;your_github_name&gt;/incubator-rocketmq.git 
(push)
 +upstream  https://github.com/apache/incubator-rocketmq.git (fetch)
 +upstream  https://github.com/apache/incubator-rocketmq.git (push)
 +apache    https://git-wip-us.apache.org/repos/asf/incubator-rocketmq.git 
(fetch)
 +apache    https://git-wip-us.apache.org/repos/asf/incubator-rocketmq.git 
(push)
 +</code></pre>
 +</div>
 +
 +<p>Now if you want to experiment with a branch everything, by default, points 
to your github account because ‘origin’ is default. You can work as normal 
using only github until you are ready to merge with the apache remote. Some 
conventions will integrate with Apache JIRA ticket numbers.</p>
 +
 +<div class="highlighter-rouge"><pre class="highlight"><code>git checkout -b 
ROCKETMQ-xxxx #xxxx typically is a JIRA ticket number
 +</code></pre>
 +</div>
 +
 +<p><em>To ensure the code quality of the master branch, all but minor changes 
should go through pull requests reviewed by peer committers.</em></p>
 +
 +<h1 id="do-some-work-on-the-branch">Do some work on the branch</h1>
 +
 +<div class="highlighter-rouge"><pre class="highlight"><code>git commit -a -m 
"doing some work"
 +git push origin ROCKETMQ-xxxx # notice pushing to **origin** not **apache**
 +</code></pre>
 +</div>
 +
 +<p>Once you are ready to commit to the apache remote you can merge and push 
them directly, otherwise always create a PR.</p>
 +
 +<h1 id="how-to-create-a-pr-committers">How to create a PR (committers)</h1>
 +
 +<p>Push your branch to Github:</p>
 +
 +<div class="highlighter-rouge"><pre class="highlight"><code>git checkout 
ROCKETMQ-xxxx
 +git push origin ROCKETMQ-xxxx
 +</code></pre>
 +</div>
 +
 +<ol>
 +  <li>
 +    <p>Go to your ROCKETMQ-xxxx branch on Github. Since you forked it from 
Github’s apache/incubator-rocketmq. By default all PR will go to 
apache/master.</p>
 +  </li>
 +  <li>Click the green “Compare, review, and create pull request” button. 
You can edit the to and from for the PR if it isn’t correct. The “base 
fork” should be apache/incubator-rocketmq unless you are collaborating with 
one of the committers on the list. The “base” will be master. Don’t 
submit a PR to any other branches unless permitted by branch owner. The “head 
fork” will be your forked repo and the “compare” will be your 
ROCKETMQ-xxxx branch.</li>
 +  <li>Click the “Create pull request” button and name the request 
“ROCKETMQ-xxxx” all caps. This will connect the comments of the PR to the 
mailing list and JIRA comments.</li>
 +  <li>From now on the PR lives on github’s apache/incubator-rocketmq. You 
can use the commenting UI there.</li>
 +  <li>If you are looking for a review or wanting to share with someone else 
please write a note in the comments and don’t worry about automated merging 
of your PR – you will have to do that later. The PR is tied to your branch so 
you can respond to comments, make fixes, and commit them from your local repo. 
They will appear on the PR page and be mirrored to JIRA and the mailing 
list.</li>
 +  <li>When you are satisfied and want to push it to Apache’s remote repo, 
you can merge this PR.</li>
 +</ol>
 +
 +<h1 id="how-to-create-a-pr-contributors">How to create a PR 
(contributors)</h1>
 +<p>Before you create a pull request, make sure</p>
 +<ol>
 +  <li>A corresponding <a 
href="https://issues.apache.org/jira/browse/ROCKETMQ/";>JIRA</a> issue is 
created and has a clear problem description.</li>
 +  <li>Make sure you follow <a href="/docs/code-guidelines/">Coding 
Guidelines</a>.</li>
 +  <li>You have unit tests for everything you are about to commit.</li>
 +</ol>
 +
 +<p>For information about creating pull requests, please check <a 
href="https://help.github.com/articles/creating-a-pull-request/";>GitHub PR 
docs</a>.</p>
 +
 +<p>Pull requests are made to <code 
class="highlighter-rouge">apache/incubator-rocketmq</code> repository on 
Github. 
 +In the Github UI you should pick the master branch as target of the PR. <br />
 +You pull request will be reviewed and commented by committers, and issues can 
be discussed. When all reviewers are positive on the pull request, it will be 
merged.</p>
 +
 +<h1 id="merging-a-pr-yours-or-contributors">Merging a PR (yours or 
contributors)</h1>
 +<p>Start with reading <a 
href="https://help.github.com/articles/checking-out-pull-requests-locally/";>GitHub
 PR merging locally</a>. Remember that pull requests are equivalent to a remote 
github branch with potentially a multitude of commits. In this case it is 
recommended to squash remote commit history to have one commit per issue, 
rather than merging in a multitude of contributor’s commits. In order to do 
that, as well as to close the PR at the same time, it is recommended to use 
squash commits.
 +Merging pull requests are equivalent to a “pull” of a contributor’s 
branch:</p>
 +
 +<div class="highlighter-rouge"><pre class="highlight"><code>git checkout 
master      # switch to local master branch
 +git pull apache master   # fast-forward to current remote HEAD
 +git pull --squash https://github.com/cuser/incubator-rocketmq.git 
ROCKETMQ-xxxx  # merge to master
 +</code></pre>
 +</div>
 +
 +<p><code class="highlighter-rouge">--squash</code> ensures all PR history is 
squashed into single commit, and allows committer to use his/her own message. 
Please refer to git help for merge or pull for more information about <code 
class="highlighter-rouge">--squash</code> option. In this example we assume 
that the contributor’s Github handle is “cuser” and the PR branch name is 
“ROCKETMQ-xxxx”. Next, resolve all conflicts, or ask a contributor to 
rebase on top of master, if PR went out of sync.</p>
 +
 +<p>If you are ready to merge your own (committer’s) PR you only need to 
merge (not pull), since you have a local copy that you’ve been working on. 
This is the branch that you used to create the PR.</p>
 +
 +<div class="highlighter-rouge"><pre class="highlight"><code>git checkout 
master      # switch to local master branch
 +git pull apache master   # fast-forward to current remote HEAD
 +git merge --squash ROCKETMQ-xxxx
 +</code></pre>
 +</div>
 +
 +<p>Please run regular patch checks, build with tests enabled, and change 
CHANGELOG whenever needed.
 +If all requirements are met, you can commit the squashed request using:</p>
 +
 +<div class="highlighter-rouge"><pre class="highlight"><code>git commit 
--author="contributor_name &lt;contributor_email&gt;" -a -m "ROCKETMQ-XXXX 
description closes apache/incubator-rocketmq#ZZ"
 +</code></pre>
 +</div>
 +
 +<p>ROCKETMQ-XXXX is all capitalized and ZZ is the pull request number on 
apache/incubator-rocketmq repository. Including “closes 
apache/incubator-rocketmq#ZZ” will close the PR automatically. More 
information can be found here <a 
href="https://help.github.com/articles/closing-issues-via-commit-messages/";>GitHub
 PR closing docs.</a>.
 +Next, push to git-wip-us.apache.org:</p>
 +
 +<div class="highlighter-rouge"><pre class="highlight"><code>git push apache 
master
 +</code></pre>
 +</div>
 +
 +<p>(this will require Apache handle credentials).
 +The PR, once pushed, will get mirrored to github. To update your github 
version push there too:</p>
 +
 +<div class="highlighter-rouge"><pre class="highlight"><code>git push origin 
master
 +</code></pre>
 +</div>
 +
 +<p>Note on squashing: Since squash discards remote branch history, repeated 
PRs from the same remote branch are difficult to be merged. The workflow 
implies that every new PR starts with a new rebased branch. This is more 
important for contributors to know, rather than for committers, because if new 
PR is not mergeable, github would warn at the start. Please watch for dupe PRs 
(based on same source branches).</p>
 +
 +<h1 id="closing-a-pr-without-committing-for-committers">Closing a PR without 
committing (for committers)</h1>
 +<p>When we want to reject a PR (close without committing), we can just issue 
an empty commit on master’s HEAD without merging the PR:</p>
 +
 +<div class="highlighter-rouge"><pre class="highlight"><code>git commit 
--allow-empty -m "ROCKETMQ-XXXX closes apache/incubator-rocketmq#ZZ *Won't fix*"
 +git push apache master
 +</code></pre>
 +</div>
 +
 +<p>that should close PR ZZ on github mirror without merging and any code 
modifications in the master repository.more detail please refer to RocketMQ PR 
https://github.com/apache/incubator-rocketmq/pull/15</p>
 +
 +<h1 id="apachegithub-integration-features">Apache/github integration 
features</h1>
 +
 +<p>Read <a 
href="https://blogs.apache.org/infra/entry/improved_integration_between_apache_and";>infra
 blog</a>. Comments and PRs with RocketMQ issue handles should post to mailing 
lists and JIRA. RocketMQ issue handles must in the form ROCKETMQ-YYYYY (all 
capitals). Usually it makes sense to file a JIRA issue first, and then create a 
PR with description
 +ROCKETMQ-YYYY: <jira-issue-description>
 +All subsequent comments will then automatically be copied to 
JIRA.</jira-issue-description></p>
 +
 +<h1 id="best-practises">Best Practises</h1>
 +
 +<h2 
id="avoiding-accidentally-committing-private-branches-to-the-asf-repo">Avoiding 
accidentally committing private branches to the ASF repo</h2>
 +
 +<p>It’s dangerous —especially when using IDEs— to accidentally commit 
changes to the ASF repo, be directed to the trunk, branch-2, other standard 
branch on which you are developing, or to a private branch you had intended to 
keep on github (or a private repo).</p>
 +
 +<p>Committers can avoid this by setting the directory in which they develop 
code to read only access to the ASF repository on github. A separate directory 
should also be set up with write access to the ASF repository as well as read 
access to your other repositories. Merging operations and push backs to the ASF 
repo are done from this directory —so it will be immune to all local 
changes.</p>
 +
 +<p>If you accidentally committed a patch to an ASF branch, do not attempt to 
roll back the branch and force out a new update. Simply commit and push out a 
new patch revoking the change.</p>
 +
 +<p>If you do accidentally committed a branch to the ASF repo, the 
infrastructure team can delete it —but they cannot stop it propagating to 
github and potentially being visible. Please avoid this.</p>
 +
 +
 +        
 +      </section>
 +
 +      <footer class="page__meta">
 +        
 +        
 +
 +
 +        
 +          <p class="page__date"><strong><i class="fa fa-fw fa-calendar" 
aria-hidden="true"></i> Updated:</strong> <time datetime="2016-12-24">December 
24, 2016</time></p>
 +        
 +      </footer>
 +
 +      <section class="page__share">
 +  
 +    <h4 class="page__share-title">Share on</h4>
 +  
 +
 +  <a href="https://twitter.com/intent/tweet?via=ApacheRocketMQ&text=How to 
manage Pull Request /docs/pull-request/" class="btn btn--twitter" title="Share 
on Twitter"><i class="fa fa-fw fa-twitter" aria-hidden="true"></i><span> 
Twitter</span></a>
 +
 +  <a href="https://www.facebook.com/sharer/sharer.php?u=/docs/pull-request/"; 
class="btn btn--facebook" title="Share on Facebook"><i class="fa fa-fw 
fa-facebook" aria-hidden="true"></i><span> Facebook</span></a>
 +
 +  <a href="https://plus.google.com/share?url=/docs/pull-request/"; class="btn 
btn--google-plus" title="Share on Google Plus"><i class="fa fa-fw 
fa-google-plus" aria-hidden="true"></i><span> Google+</span></a>
 +
 +  <a 
href="https://www.linkedin.com/shareArticle?mini=true&url=/docs/pull-request/"; 
class="btn btn--linkedin" title="Share on LinkedIn"><i class="fa fa-fw 
fa-linkedin" aria-hidden="true"></i><span> LinkedIn</span></a>
 +</section>
 +
 +
 +      
 +  <nav class="pagination">
 +    
 +      <a href="/docs/cluster-deployment/" class="pagination--pager" 
title="Cluster Configuration and Deployment
 +">Previous</a>
 +    
 +    
 +      <a href="/docs/code-guidelines/" class="pagination--pager" 
title="Coding Guidelines
 +">Next</a>
 +    
 +  </nav>
 +
 +    </div>
 +
 +    
 +      <div class="page__comments">
 +  
 +  
 +    <h4 class="page__comments-title">Leave a Comment</h4>
 +    <section id="disqus_thread"></section>
 +  
 +</div>
 +    
 +  </article>
 +
 +  
 +  
 +</div>
 +
 +    <div class="page__footer">
 +      <footer>
 +        <!-- start custom footer snippets -->
 +
 +<!-- end custom footer snippets -->
 +        <style type="text/css">
 +  div.columns   { float: left; margin-left: 10px;}
 +  div.clear     { clear: both; } 
 +</style>
 +<div>
 +  <div class="columns">
 +    <a href="https://www.apache.org/";><img 
src="/assets/images/feather-small.gif" alt="Apache Software Foundation" 
style="height: 88px !important" /></a>
 +  </div>
 +  <div class="columns" style="width: 80%">
 +    <div class="page__footer-follow">
 +      <ul class="social-icons">
 +        
 +          <li><strong>Follow:</strong></li>
 +        
 +        
 +          <li><a href="https://twitter.com/ApacheRocketMQ";><i class="fa fa-fw 
fa-twitter-square" aria-hidden="true"></i> Twitter</a></li>
 +        
 +        
 +        
 +          <li><a href="http://github.com/apache/incubator-rocketmq";><i 
class="fa fa-fw fa-github" aria-hidden="true"></i> GitHub</a></li>
 +        
 +        
 +        <li><a href="/feed.xml"><i class="fa fa-fw fa-rss-square" 
aria-hidden="true"></i> Feed</a></li>
 +      </ul>
 +    </div>
 +
 +    <div class="page__footer-copyright">Copyright &copy; 2017 <a 
href="http://www.apache.org/";>The Apache Software Foundation</a>. All Rights 
Reserved.</div>
 +  </div>
 +</div>
 +<div class="clear"></div>
 +      </footer>
 +    </div>
 +
 +    <script src="/assets/js/main.min.js"></script>
 +
 +
 +
 +
 +  <script>
 +  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
 +  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new 
Date();a=s.createElement(o),
 +  
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
 +  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
 +
 +  ga('create', 'UA-89603173-1', 'auto');
 +  ga('send', 'pageview');
 +</script>
 +
 +<script>
 +var _hmt = _hmt || [];
 +(function() {
 +  var hm = document.createElement("script");
 +  hm.src = "https://hm.baidu.com/hm.js?36428f2b841d08e7405724cbf7f860d2";;
 +  var s = document.getElementsByTagName("script")[0]; 
 +  s.parentNode.insertBefore(hm, s);
 +})();
 +</script>
 +
 +
 +
 +
 +  
 +  <script type="text/javascript">
 +      /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * 
* */
 +      var disqus_shortname = 'rocketmq';
 +
 +      /* * * DON'T EDIT BELOW THIS LINE * * */
 +      (function() {
 +              var dsq = document.createElement('script'); dsq.type = 
'text/javascript'; dsq.async = true;
 +              dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
 +              (document.getElementsByTagName('head')[0] || 
document.getElementsByTagName('body')[0]).appendChild(dsq);
 +      })();
 +
 +      /* * * DON'T EDIT BELOW THIS LINE * * */
 +      (function () {
 +              var s = document.createElement('script'); s.async = true;
 +              s.type = 'text/javascript';
 +              s.src = '//' + disqus_shortname + '.disqus.com/count.js';
 +              (document.getElementsByTagName('HEAD')[0] || 
document.getElementsByTagName('BODY')[0]).appendChild(s);
 +      }());
 +  </script>
 +  <noscript>Please enable JavaScript to view the <a 
href="http://disqus.com/?ref_noscript";>comments powered by 
Disqus.</a></noscript>
 +
 +
 +
 +
 +
 +
 +  </body>
 +</html>

http://git-wip-us.apache.org/repos/asf/incubator-rocketmq-site/blob/af2718af/content/docs/quick-start/index.html
----------------------------------------------------------------------
diff --cc content/docs/quick-start/index.html
index ad4ff81,0000000..fa1197c
mode 100644,000000..100644
--- a/content/docs/quick-start/index.html
+++ b/content/docs/quick-start/index.html
@@@ -1,670 -1,0 +1,670 @@@
 +<!doctype html>
 +<html lang="en" class="no-js">
 +  <head>
 +    <meta charset="utf-8">
 +
 +<!-- begin SEO -->
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +<title>Quick Start - Apache RocketMQ</title>
 +
 +
 +
 +
 +<meta name="description" content="How to quickly install and setup Apache 
RocketMQ.">
 +
 +
 +
 +
 +<meta property="og:locale" content="en">
 +<meta property="og:site_name" content="Apache RocketMQ">
 +<meta property="og:title" content="Quick Start">
 +
 +
 +
 +
 +  <meta property="og:description" content="How to quickly install and setup 
Apache RocketMQ.">
 +
 +
 +
 +  <meta name="twitter:site" content="@ApacheRocketMQ">
 +  <meta name="twitter:title" content="Quick Start">
 +  <meta name="twitter:description" content="How to quickly install and setup 
Apache RocketMQ.">
 +  <meta name="twitter:url" content="">
 +
 +  
 +    <meta name="twitter:card" content="summary">
 +    
 +  
 +
 +  
 +
 +
 +
 +  
 +
 +  
 +
 +
 +
 +
 +
 +  <meta property="og:type" content="article">
-   <meta property="article:published_time" content="2017-06-08T17:34:10+08:00">
++  <meta property="article:published_time" content="2017-06-08T18:09:33+08:00">
 +
 +
 +
 +
 +
 +
 +
 +
 +  <script type="application/ld+json">
 +    {
 +      "@context" : "http://schema.org";,
 +      "@type" : "Person",
 +      "name" : "Apache RocketMQ",
 +      "url" : null,
 +      "sameAs" : null
 +    }
 +  </script>
 +
 +
 +
 +  <meta name="google-site-verification" 
content="aand0XZkSGsziuC-UPD4ZJniFD0m0JhGx6820y2mAQY" />
 +
 +
 +  <meta name="baidu-site-verification" content="wD06EbDRkQ" />
 +
 +
 +
 +
 +<!-- end SEO -->
 +
 +
 +<link href="/feed.xml" type="application/atom+xml" rel="alternate" 
title="Apache RocketMQ Feed">
 +
 +<!-- http://t.co/dKP3o1e -->
 +<meta name="HandheldFriendly" content="True">
 +<meta name="MobileOptimized" content="320">
 +<meta name="viewport" content="width=device-width, initial-scale=1.0">
 +
 +<script>
 +  document.documentElement.className = 
document.documentElement.className.replace(/\bno-js\b/g, '') + ' js ';
 +</script>
 +
 +<!-- For all browsers -->
 +<link rel="stylesheet" href="/assets/css/main.css">
 +
 +<meta http-equiv="cleartype" content="on">
 +    <!-- start custom head snippets -->
 +
 +<!-- insert favicons. use http://realfavicongenerator.net/ -->
 +
 +<!-- end custom head snippets -->
 +  </head>
 +
 +  <body class="layout--single">
 +
 +    <!--[if lt IE 9]>
 +<div class="notice--danger align-center" style="margin: 0;">You are using an 
<strong>outdated</strong> browser. Please <a 
href="http://browsehappy.com/";>upgrade your browser</a> to improve your 
experience.</div>
 +<![endif]-->
 +    <div class="masthead">
 +  <div class="masthead__inner-wrap">
 +    <div class="masthead__menu">
 +      <nav id="site-nav" class="greedy-nav">
 +        <button><div class="navicon"></div></button>
 +        <ul class="visible-links">
 +          <li class="masthead__menu-item masthead__menu-item--lg"><a 
href="/">Apache RocketMQ</a></li>
 +          
 +            
 +            <li class="masthead__menu-item"><a 
href="/docs/quick-start/">Documentation</a></li>
 +          
 +            
 +            <li class="masthead__menu-item"><a 
href="/year-archive/">Blog</a></li>
 +          
 +            
 +            <li class="masthead__menu-item"><a 
href="/community/">Community</a></li>
 +          
 +            
 +            <li class="masthead__menu-item"><a 
href="/customer/">Customer</a></li>
 +          
 +            
 +            <li class="masthead__menu-item"><a 
href="/about/team/">About</a></li>
 +          
 +        </ul>
 +        <ul class="hidden-links hidden"></ul>
 +      </nav>
 +    </div>
 +  </div>
 +</div>
 +
 +    
 +
 +
 +
 +<div id="main" role="main">
 +  
 +  <div class="sidebar sticky">
 +  
 +  
 +    
 +      
 +      
 +      
 +    
 +    
 +      
 +
 +<nav class="nav__list">
 +  
 +  <input id="ac-toc" name="accordion-toc" type="checkbox" />
 +  <label for="ac-toc">Toggle Menu</label>
 +  <ul class="nav__items">
 +    
 +      <li>
 +        
 +          <span class="nav__sub-title">User Guide</span>
 +        
 +
 +        
 +        <ul>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/motivation/" class="">Why RocketMQ</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/quick-start/" class="active">Quick 
Start</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/simple-example/" class="">Simple 
Example</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/order-example/" class="">Order Example</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/broadcast-example/" class="">Broadcasting 
Example</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/schedule-example/" class="">Schedule 
Example</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/batch-example/" class="">Batch Example</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/filter-by-sql92-example/" class="">Filter 
Example</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/faq/" class="">FAQ</a></li>
 +          
 +        </ul>
 +        
 +      </li>
 +    
 +      <li>
 +        
 +          <span class="nav__sub-title">Deployment & Operations</span>
 +        
 +
 +        
 +        <ul>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/rmq-arc/" class="">Architecture</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/rmq-deployment/" class="">Deployment</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/cli-admin-tool/" class="">CLI Admin 
Tool</a></li>
 +          
 +        </ul>
 +        
 +      </li>
 +    
 +      <li>
 +        
 +          <span class="nav__sub-title">Contributor Guide</span>
 +        
 +
 +        
 +        <ul>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/code-guidelines/" class="">Code 
Guidelines</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/pull-request/" class="">Manage Pull 
Request</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/release-manual" class="">Release 
Manual</a></li>
 +          
 +        </ul>
 +        
 +      </li>
 +    
 +      <li>
 +        
 +          <span class="nav__sub-title">Best Practice</span>
 +        
 +
 +        
 +        <ul>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/core-concept/" class="">Core Concept</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/best-practice-broker/" class="">Broker</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/best-practice-producer/" 
class="">Producer</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/best-practice-consumer/" 
class="">Consumer</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/docs/best-practice-namesvr/" 
class="">NameServer</a></li>
 +          
 +        </ul>
 +        
 +      </li>
 +    
 +      <li>
 +        
 +          <span class="nav__sub-title">Release Notes</span>
 +        
 +
 +        
 +        <ul>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/dowloading/releases/" class="">Download</a></li>
 +          
 +            
 +            
 +
 +            
 +            
 +
 +            <li><a href="/release_notes/release-notes-4.0.0-incubating/" 
class="">4.0.0-incubating</a></li>
 +          
 +        </ul>
 +        
 +      </li>
 +    
 +      <li>
 +        
 +          
 +          
 +
 +          <a href="/docs/roadmap/"><span 
class="nav__sub-title">RoadMap</span></a>
 +        
 +
 +        
 +      </li>
 +    
 +  </ul>
 +</nav>
 +    
 +  
 +  </div>
 +
 +
 +  <article class="page" itemscope itemtype="http://schema.org/CreativeWork";>
 +    <meta itemprop="headline" content="Quick Start">
 +    <meta itemprop="description" content="How to quickly install and setup 
Apache RocketMQ.">
 +    <meta itemprop="datePublished" content="June 08, 2017">
 +    <meta itemprop="dateModified" content="December 29, 2016">
 +
 +    <div class="page__inner-wrap">
 +      
 +        <header>
 +          <h1 class="page__title" itemprop="headline">Quick Start
 +</h1>
 +          
 +        </header>
 +      
 +
 +      <section class="page__content" itemprop="text">
 +        <p>This quick start guide is a detailed instruction of setting up 
RocketMQ messaging system on your local machine to send 
 +and receive messages.</p>
 +
 +<aside class="sidebar__right">
 +<nav class="toc">
 +    <header><h4 class="nav__title"><i class="fa fa-file-text"></i> On This 
Page</h4></header>
 +<ul class="toc__menu" id="markdown-toc">
 +  <li><a href="#prerequisite" 
id="markdown-toc-prerequisite">Prerequisite</a></li>
 +  <li><a href="#clone--build" id="markdown-toc-clone--build">Clone &amp; 
Build</a></li>
 +  <li><a href="#start-name-server" id="markdown-toc-start-name-server">Start 
Name Server</a></li>
 +  <li><a href="#start-broker" id="markdown-toc-start-broker">Start 
Broker</a></li>
 +  <li><a href="#send--receive-messages" 
id="markdown-toc-send--receive-messages">Send &amp; Receive Messages</a></li>
 +  <li><a href="#shutdown-servers" id="markdown-toc-shutdown-servers">Shutdown 
Servers</a></li>
 +</ul>
 +
 +  </nav>
 +</aside>
 +
 +<h1 id="prerequisite">Prerequisite</h1>
 +
 +<p>The following softwares are assumed installed:</p>
 +<ol>
 +  <li>64bit OS, Linux/Unix/Mac is recommended;</li>
 +  <li>64bit JDK 1.7+;</li>
 +  <li>Maven 3.2.x</li>
 +  <li>Git</li>
 +</ol>
 +
 +<h1 id="clone--build">Clone &amp; Build</h1>
 +
 +<div class="language-shell highlighter-rouge"><pre class="highlight"><code>  
&gt; git clone -b develop https://github.com/apache/incubator-rocketmq.git
 +  &gt; <span class="nb">cd </span>incubator-rocketmq
 +  &gt; mvn -Prelease-all -DskipTests clean install -U
 +  &gt; <span class="nb">cd </span>distribution/target/apache-rocketmq
 +</code></pre>
 +</div>
 +
 +<h1 id="start-name-server">Start Name Server</h1>
 +
 +<div class="language-shell highlighter-rouge"><pre class="highlight"><code>  
&gt; nohup sh bin/mqnamesrv &amp;
 +  &gt; tail -f ~/logs/rocketmqlogs/namesrv.log
 +  The Name Server boot success...
 +</code></pre>
 +</div>
 +
 +<h1 id="start-broker">Start Broker</h1>
 +
 +<div class="language-shell highlighter-rouge"><pre class="highlight"><code>  
&gt; nohup sh bin/mqbroker -n localhost:9876 &amp;
 +  &gt; tail -f ~/logs/rocketmqlogs/broker.log 
 +  The broker[%s, 172.30.30.233:10911] boot success...
 +</code></pre>
 +</div>
 +
 +<h1 id="send--receive-messages">Send &amp; Receive Messages</h1>
 +
 +<p>Before sending/receiving messages, we need to tell clients the location of 
name servers. RocketMQ provides multiple ways to achieve this. For simplicity, 
we use environment variable <code 
class="highlighter-rouge">NAMESRV_ADDR</code></p>
 +
 +<div class="language-shell highlighter-rouge"><pre class="highlight"><code> 
&gt; <span class="nb">export </span><span class="nv">NAMESRV_ADDR</span><span 
class="o">=</span>localhost:9876
 + &gt; sh bin/tools.sh org.apache.rocketmq.example.quickstart.Producer
 + SendResult <span class="o">[</span><span class="nv">sendStatus</span><span 
class="o">=</span>SEND_OK, <span class="nv">msgId</span><span 
class="o">=</span> ...
 +
 + &gt; sh bin/tools.sh org.apache.rocketmq.example.quickstart.Consumer
 + ConsumeMessageThread_%d Receive New Messages: <span 
class="o">[</span>MessageExt...
 +</code></pre>
 +</div>
 +
 +<h1 id="shutdown-servers">Shutdown Servers</h1>
 +
 +<div class="language-shell highlighter-rouge"><pre 
class="highlight"><code><span class="gp">&gt; </span>sh bin/mqshutdown broker
 +The mqbroker<span class="o">(</span>36695<span class="o">)</span> is 
running...
 +Send shutdown request to mqbroker<span class="o">(</span>36695<span 
class="o">)</span> OK
 +
 +<span class="gp">&gt; </span>sh bin/mqshutdown namesrv
 +The mqnamesrv<span class="o">(</span>36664<span class="o">)</span> is 
running...
 +Send shutdown request to mqnamesrv<span class="o">(</span>36664<span 
class="o">)</span> OK
 +</code></pre>
 +</div>
 +
 +        
 +      </section>
 +
 +      <footer class="page__meta">
 +        
 +        
 +
 +
 +        
 +          <p class="page__date"><strong><i class="fa fa-fw fa-calendar" 
aria-hidden="true"></i> Updated:</strong> <time datetime="2016-12-29">December 
29, 2016</time></p>
 +        
 +      </footer>
 +
 +      <section class="page__share">
 +  
 +    <h4 class="page__share-title">Share on</h4>
 +  
 +
 +  <a href="https://twitter.com/intent/tweet?via=ApacheRocketMQ&text=Quick 
Start /docs/quick-start/" class="btn btn--twitter" title="Share on Twitter"><i 
class="fa fa-fw fa-twitter" aria-hidden="true"></i><span> Twitter</span></a>
 +
 +  <a href="https://www.facebook.com/sharer/sharer.php?u=/docs/quick-start/"; 
class="btn btn--facebook" title="Share on Facebook"><i class="fa fa-fw 
fa-facebook" aria-hidden="true"></i><span> Facebook</span></a>
 +
 +  <a href="https://plus.google.com/share?url=/docs/quick-start/"; class="btn 
btn--google-plus" title="Share on Google Plus"><i class="fa fa-fw 
fa-google-plus" aria-hidden="true"></i><span> Google+</span></a>
 +
 +  <a 
href="https://www.linkedin.com/shareArticle?mini=true&url=/docs/quick-start/"; 
class="btn btn--linkedin" title="Share on LinkedIn"><i class="fa fa-fw 
fa-linkedin" aria-hidden="true"></i><span> LinkedIn</span></a>
 +</section>
 +
 +
 +      
 +  <nav class="pagination">
 +    
 +      <a href="#" class="pagination--pager disabled">Previous</a>
 +    
 +    
 +      <a href="/docs/motivation/" class="pagination--pager" title="Motivation
 +">Next</a>
 +    
 +  </nav>
 +
 +    </div>
 +
 +    
 +      <div class="page__comments">
 +  
 +  
 +    <h4 class="page__comments-title">Leave a Comment</h4>
 +    <section id="disqus_thread"></section>
 +  
 +</div>
 +    
 +  </article>
 +
 +  
 +  
 +</div>
 +
 +    <div class="page__footer">
 +      <footer>
 +        <!-- start custom footer snippets -->
 +
 +<!-- end custom footer snippets -->
 +        <style type="text/css">
 +  div.columns   { float: left; margin-left: 10px;}
 +  div.clear     { clear: both; } 
 +</style>
 +<div>
 +  <div class="columns">
 +    <a href="https://www.apache.org/";><img 
src="/assets/images/feather-small.gif" alt="Apache Software Foundation" 
style="height: 88px !important" /></a>
 +  </div>
 +  <div class="columns" style="width: 80%">
 +    <div class="page__footer-follow">
 +      <ul class="social-icons">
 +        
 +          <li><strong>Follow:</strong></li>
 +        
 +        
 +          <li><a href="https://twitter.com/ApacheRocketMQ";><i class="fa fa-fw 
fa-twitter-square" aria-hidden="true"></i> Twitter</a></li>
 +        
 +        
 +        
 +          <li><a href="http://github.com/apache/incubator-rocketmq";><i 
class="fa fa-fw fa-github" aria-hidden="true"></i> GitHub</a></li>
 +        
 +        
 +        <li><a href="/feed.xml"><i class="fa fa-fw fa-rss-square" 
aria-hidden="true"></i> Feed</a></li>
 +      </ul>
 +    </div>
 +
 +    <div class="page__footer-copyright">Copyright &copy; 2017 <a 
href="http://www.apache.org/";>The Apache Software Foundation</a>. All Rights 
Reserved.</div>
 +  </div>
 +</div>
 +<div class="clear"></div>
 +      </footer>
 +    </div>
 +
 +    <script src="/assets/js/main.min.js"></script>
 +
 +
 +
 +
 +  <script>
 +  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
 +  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new 
Date();a=s.createElement(o),
 +  
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
 +  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
 +
 +  ga('create', 'UA-89603173-1', 'auto');
 +  ga('send', 'pageview');
 +</script>
 +
 +<script>
 +var _hmt = _hmt || [];
 +(function() {
 +  var hm = document.createElement("script");
 +  hm.src = "https://hm.baidu.com/hm.js?36428f2b841d08e7405724cbf7f860d2";;
 +  var s = document.getElementsByTagName("script")[0]; 
 +  s.parentNode.insertBefore(hm, s);
 +})();
 +</script>
 +
 +
 +
 +
 +  
 +  <script type="text/javascript">
 +      /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * 
* */
 +      var disqus_shortname = 'rocketmq';
 +
 +      /* * * DON'T EDIT BELOW THIS LINE * * */
 +      (function() {
 +              var dsq = document.createElement('script'); dsq.type = 
'text/javascript'; dsq.async = true;
 +              dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
 +              (document.getElementsByTagName('head')[0] || 
document.getElementsByTagName('body')[0]).appendChild(dsq);
 +      })();
 +
 +      /* * * DON'T EDIT BELOW THIS LINE * * */
 +      (function () {
 +              var s = document.createElement('script'); s.async = true;
 +              s.type = 'text/javascript';
 +              s.src = '//' + disqus_shortname + '.disqus.com/count.js';
 +              (document.getElementsByTagName('HEAD')[0] || 
document.getElementsByTagName('BODY')[0]).appendChild(s);
 +      }());
 +  </script>
 +  <noscript>Please enable JavaScript to view the <a 
href="http://disqus.com/?ref_noscript";>comments powered by 
Disqus.</a></noscript>
 +
 +
 +
 +
 +
 +
 +  </body>
 +</html>

Reply via email to