Dubbo监控中心安装与Dubbo管理控制台安装

来源:互联网 发布:淘宝网购物车登录界面 编辑:程序博客网 时间:2024/05/16 18:22

附件参考:http://download.csdn.net/detail/yarddray/8444039

2015.01.08

 运行环境
  1. Jdk-1.6.30以上版本
  2. Tomcat-7.0.42
  3. Duboo-2.5.3
  4. Zookeeper-3.4.5

端口分配

zookeeper注册端口:2181 本地dubbo端口通常是:2088x

dubbo console 8009 (Tomcat)

dubbo monitor 4010 (dubbo-monitor-simple-2.5.3-assembly)


Dubbo监控中心安装

1. 安装

解压dubbo-monitor-simple-2.5.3-assembly.tar.gz,文件夹为dubbo-monitor-simple-2.5.3

3. 配置

打开/conf/dubbo.properties文件
##
# Copyright 1999-2011 Alibaba Group.
#  
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#  
#      http://www.apache.org/licenses/LICENSE-2.0
#  
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##
dubbo.container=log4j,spring,registry,jetty
dubbo.application.name=simple-monitor
dubbo.application.owner=
#dubbo.registry.address=multicast://224.5.6.7:1234
dubbo.registry.address=zookeeper://127.0.0.1:2181?backup=127.0.0.1:2182,127.0.0.1:2183
#dubbo.registry.address=redis://127.0.0.1:6379
#dubbo.registry.address=dubbo://127.0.0.1:9090
dubbo.protocol.port=7070
dubbo.jetty.port=4010
dubbo.jetty.directory=${user.home}/monitor
dubbo.charts.directory=${dubbo.jetty.directory}/charts
dubbo.statistics.directory=${user.home}/monitor/statistics
dubbo.log4j.file=logs/dubbo-monitor-simple.log
dubbo.log4j.level=WARN

4. 启动

/bin/start.bat

5. 停止

在cmd中Ctrl+C,选择y

6.    访问:

http://localhost:4010/


Dubbo管理控制台安装

管理控制台为内部裁剪版本,开源部分主要包含:路由规则,动态配置,服务降级,访问控制,权重调整,负载均衡,等管理功能。

1. 安装

将 dubbo-admin-2.5.3.war 拷入 tomcat webapps中

2. 配置

修改tomcat的端口8009,

查看

dubbo-admin-2.5.3.war\WEB-INF\dubbo.properties

dubbo.registry.address=zookeeper://127.0.0.1:2181?backup=127.0.0.1:2182,127.0.0.1:2183
dubbo.admin.root.password=root
dubbo.admin.guest.password=guest

3. 启动

startup.bat

4. 停止

shutdown.bat

5. 访问:

(用户:root,密码:root  用户:guest,密码:guest)

http://localhost:8009/dubbo-admin-2.5.3


最后附上linux版http://blog.itpub.net/27099995/viewspace-1394819/


0 0
原创粉丝点击