dubbo-monitor-simple-2.5.3-assembly 簡易監控中心安裝

dubbo-monitor-simple-2.5.3-assembly資源下載java

dubbo-monitor是一個web工程,是基於內嵌的jetty。dubbo-monitor是使用java編寫的項目,因此須要安裝jdk。web

安裝過程
tar zxvf dubbo-monitor-simple-2.5.3-assembly
配置過程
cd dubbo-monitor-simple-2.5.3-assembly
vi conf/dubbo.properties

1   ##
     2  # Copyright 1999-2011 Alibaba Group.
     3  #  
     4  # Licensed under the Apache License, Version 2.0 (the "License");
     5  # you may not use this file except in compliance with the License.
     6  # You may obtain a copy of the License at
     7  #  
     8  #      http://www.apache.org/licenses/LICENSE-2.0
     9  #  
    10  # Unless required by applicable law or agreed to in writing, software
    11  # distributed under the License is distributed on an "AS IS" BASIS,
    12  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  # See the License for the specific language governing permissions and
    14  # limitations under the License.
    15  ##
    16  dubbo.container=log4j,spring,registry,jetty
    17  dubbo.application.name=simple-monitor
    18  dubbo.application.owner=
    19  dubbo.registry.address=multicast://224.5.6.7:1234
    20  #dubbo.registry.address=zookeeper://127.0.0.1:2181
    21  #dubbo.registry.address=redis://127.0.0.1:6379
    22  #dubbo.registry.address=dubbo://127.0.0.1:9090
    23  dubbo.protocol.port=7070
    24  dubbo.jetty.port=9090
    25  dubbo.jetty.directory=${user.home}/monitor
    26  dubbo.charts.directory=${dubbo.jetty.directory}/charts
    27  dubbo.statistics.directory=${user.home}/monitor/statistics
    28  dubbo.log4j.file=logs/dubbo-monitor-simple.log
    29  dubbo.log4j.level=WARN

註釋掉19行
去掉20行的 #,將ip 端口號 修改成 zookeeper服務器的ip地址端口號,若是你的zookeeper是集羣,則註冊地址修改成zookeeper://127.0.0.1:2181?backup=127.0.0.1:2182,127.0.0.1:2183
23行 協議端口,端口號只要是沒有被佔用就行
24行 jetty提供web服務的端口號,即經過 瀏覽器訪問 監控中心的端口號
其餘的配置默認就行,固然也能夠本身配置。

保存以上配置
啓動過程
tail -f /usr/local/dubbo-monitor-simple-2.5.3/logs/stdout.log
cd /usr/local/dubbo-monitor-simple-2.5.3/bin
./start.sh
執行命令 ./start.sh 後 stdout.log日誌文件會輸出
[2016-03-01 11:30:46] Dubbo service server started!
說明啓動成功

瀏覽器訪問地址 http://192.168.17.129:9090/ 顯示頁面
這裏寫圖片描述redis

相關文章
相關標籤/搜索