| |
| <!DOCTYPE HTML> |
| <html lang="" > |
| <head> |
| <meta charset="UTF-8"> |
| <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> |
| <title>Introduction · GitBook</title> |
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| <meta name="description" content=""> |
| <meta name="generator" content="GitBook 3.2.2"> |
| |
| |
| |
| |
| <link rel="stylesheet" href="gitbook/style.css"> |
| |
| |
| |
| |
| <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css"> |
| |
| |
| |
| <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css"> |
| |
| |
| |
| <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css"> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <meta name="HandheldFriendly" content="true"/> |
| <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> |
| <meta name="apple-mobile-web-app-capable" content="yes"> |
| <meta name="apple-mobile-web-app-status-bar-style" content="black"> |
| <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png"> |
| <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon"> |
| |
| |
| |
| |
| </head> |
| <body> |
| |
| <div class="book"> |
| <div class="book-summary"> |
| |
| |
| <div id="book-search-input" role="search"> |
| <input type="text" placeholder="Type to search" /> |
| </div> |
| |
| |
| <nav role="navigation"> |
| |
| |
| |
| <ul class="summary"> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <li class="chapter active" data-level="1.1" data-path="./"> |
| |
| <a href="./"> |
| |
| |
| Introduction |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.2" > |
| |
| <span> |
| |
| |
| 1 安装手册 |
| |
| </span> |
| |
| |
| |
| <ul class="articles"> |
| |
| |
| <li class="chapter " data-level="1.2.1" data-path="install-mannual/示例提供者安装.html"> |
| |
| <a href="install-mannual/示例提供者安装.html"> |
| |
| |
| 1.1 示例提供者安装 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.2.2" data-path="install-mannual/示例消费者安装.html"> |
| |
| <a href="install-mannual/示例消费者安装.html"> |
| |
| |
| 1.2 示例消费者安装 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.2.3" data-path="install-mannual/Zookeeper注册中心安装.html"> |
| |
| <a href="install-mannual/Zookeeper注册中心安装.html"> |
| |
| |
| 1.3 Zookeeper注册中心安装 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.2.4" data-path="install-mannual/Redis注册中心安装.html"> |
| |
| <a href="install-mannual/Redis注册中心安装.html"> |
| |
| |
| 1.4 Redis注册中心安装 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.2.5" data-path="install-mannual/简单注册中心安装.html"> |
| |
| <a href="install-mannual/简单注册中心安装.html"> |
| |
| |
| 1.5 Simple注册中心安装 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.2.6" data-path="install-mannual/简单注册中心安装.html"> |
| |
| <a href="install-mannual/简单注册中心安装.html"> |
| |
| |
| 1.6 Simple监控中心安装 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| <li class="chapter " data-level="1.2.7" data-path="install-mannual/管理控制台安装.html"> |
| |
| <a href="install-mannual/管理控制台安装.html"> |
| |
| |
| 1.7 管理控制台安装 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| |
| </ul> |
| |
| </li> |
| |
| <li class="chapter " data-level="1.3" > |
| |
| <span> |
| |
| |
| 2 运维手册 |
| |
| </span> |
| |
| |
| |
| <ul class="articles"> |
| |
| |
| <li class="chapter " data-level="1.3.1" data-path="ops-mannual/管理控制台运维.html"> |
| |
| <a href="ops-mannual/管理控制台运维.html"> |
| |
| |
| 2.1 管理控制台运维 |
| |
| </a> |
| |
| |
| |
| </li> |
| |
| |
| </ul> |
| |
| </li> |
| |
| |
| |
| |
| <li class="divider"></li> |
| |
| <li> |
| <a href="https://www.gitbook.com" target="blank" class="gitbook-link"> |
| Published with GitBook |
| </a> |
| </li> |
| </ul> |
| |
| |
| </nav> |
| |
| |
| </div> |
| |
| <div class="book-body"> |
| |
| <div class="body-inner"> |
| |
| |
| |
| <div class="book-header" role="navigation"> |
| |
| |
| <!-- Title --> |
| <h1> |
| <i class="fa fa-circle-o-notch fa-spin"></i> |
| <a href="." >Introduction</a> |
| </h1> |
| </div> |
| |
| |
| |
| |
| <div class="page-wrapper" tabindex="-1" role="main"> |
| <div class="page-inner"> |
| |
| <div id="book-search-results"> |
| <div class="search-noresults"> |
| |
| <section class="normal markdown-section"> |
| |
| <blockquote> |
| <p><img src="sources/images/check.gif" alt="check">推荐使用Zookeeper注册中心</p> |
| </blockquote> |
| <ul> |
| <li>你可以只运行<code>Demo Provider</code>和<code>Demo Consumer</code>,它们缺省配置为通过Multicast注册中心广播互相发现,建议在不同机器上运行,如果在同一机器上,需设置<code>unicast=false</code>:即:<code>multicast://224.5.6.7:1234?unicast=false</code>,否则发给消费者的单播消息可能被提供者抢占,两个消费者在同一台机器也一样,只有multicast注册中心有此问题。</li> |
| <li>你也可以运行多个<code>Demo Provider</code>和<code>Demo Consumer</code>,来验证软负载均衡,Demo Consumer可以直接启动多个实例,而多个Demo Provider因有端口冲突,可在不同机器上运行,或者修改Demo Provider安装目录下conf/dubbo.properties配置中的dubbo.protocol.port的值。</li> |
| <li>你也可以增加运行<code>Simple Monitor</code>监控中心,它缺省配置为通过Multicast注册中心广播发现Provider和Consumer,并展示出它们的依赖关系,以及它们之间调用的次数和时间。</li> |
| <li><p>你也可以将Multicast注册中心换成Zookeeper注册中心,安装<code>Zookeeper Registry</code>后,修改Demo Proivder,Demo Consumer,Simple Monitor三者安装目录下的conf/dubbo.properties,将dubbo.registry.address的值改为<code>zookeeper://127.0.0.1:2181</code>,同理,如果换成<code>Redis Registry</code>,值改为<code>redis://127.0.0.1:6379</code>,如果换成<code>Simple Registry</code>,值改为<code>dubbo://127.0.0.1:9090</code></p> |
| <p> <strong>注意:multicast地址不能配成127.0.0.1,也不能配成机器的IP地址,必须是D段广播地址,也就是:224.0.0.0到239.255.255.255之间的任意地址</strong></p> |
| </li> |
| </ul> |
| |
| |
| </section> |
| |
| </div> |
| <div class="search-results"> |
| <div class="has-results"> |
| |
| <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1> |
| <ul class="search-results-list"></ul> |
| |
| </div> |
| <div class="no-results"> |
| |
| <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1> |
| |
| </div> |
| </div> |
| </div> |
| |
| </div> |
| </div> |
| |
| </div> |
| |
| |
| |
| |
| |
| |
| </div> |
| |
| <script> |
| var gitbook = gitbook || []; |
| gitbook.push(function() { |
| gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"1 安装手册","level":"1.2","depth":1,"ref":"","articles":[{"title":"1.1 示例提供者安装","level":"1.2.1","depth":2,"path":"install-mannual/示例提供者安装.md","ref":"install-mannual/示例提供者安装.md","articles":[]},{"title":"1.2 示例消费者安装","level":"1.2.2","depth":2,"path":"install-mannual/示例消费者安装.md","ref":"install-mannual/示例消费者安装.md","articles":[]},{"title":"1.3 Zookeeper注册中心安装","level":"1.2.3","depth":2,"path":"install-mannual/Zookeeper注册中心安装.md","ref":"install-mannual/Zookeeper注册中心安装.md","articles":[]},{"title":"1.4 Redis注册中心安装","level":"1.2.4","depth":2,"path":"install-mannual/Redis注册中心安装.md","ref":"install-mannual/Redis注册中心安装.md","articles":[]},{"title":"1.5 Simple注册中心安装","level":"1.2.5","depth":2,"path":"install-mannual/简单注册中心安装.md","ref":"install-mannual/简单注册中心安装.md","articles":[]},{"title":"1.6 Simple监控中心安装","level":"1.2.6","depth":2,"path":"install-mannual/简单注册中心安装.md","ref":"install-mannual/简单注册中心安装.md","articles":[]},{"title":"1.7 管理控制台安装","level":"1.2.7","depth":2,"path":"install-mannual/管理控制台安装.md","ref":"install-mannual/管理控制台安装.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"README.md","mtime":"2017-07-28T06:05:28.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-07-28T06:05:49.376Z"},"basePath":".","book":{"language":""}}); |
| }); |
| </script> |
| </div> |
| |
| |
| <script src="gitbook/gitbook.js"></script> |
| <script src="gitbook/theme.js"></script> |
| |
| |
| <script src="gitbook/gitbook-plugin-search/search-engine.js"></script> |
| |
| |
| |
| <script src="gitbook/gitbook-plugin-search/search.js"></script> |
| |
| |
| |
| <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script> |
| |
| |
| |
| <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script> |
| |
| |
| |
| <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script> |
| |
| |
| |
| <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script> |
| |
| |
| |
| </body> |
| </html> |
| |