這裏根據源碼下載、打包、安裝。git
前提:安裝了git和maven;有一個註冊中心,能夠在本地安裝一個zookeeper, 詳見zookeeper安裝。github
在360網盤上傳了一個壓縮包:https://yunpan.cn/cuqA4GC2vqpei 訪問密碼 979a
web
一、下載源碼:git clone https://github.com/alibaba/dubbo.git
redis
二、編譯打包:spring
cd dubbo/dubbo-simple/dubbo-monitor-simple
瀏覽器
mvn clean install -DskipTests=trueapp
cd target
maven
三、看到壓縮文件:dubbo-monitor-simple-2.5.4-SNAPSHOT-assembly.tar.gz,解壓該文件,spa
四、cd dubbo-monitor-simple-2.5.4-SNAPSHOT-assembly,暫且把該目錄叫作MONITOR_HOME。.net
五、MONITOR_HOME/conf/dubbo.properties,這是配置文件,能夠配置註冊中心,暴露服務的端口、web網頁端口等信息。根據實際狀況配置。內容以下
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
#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=8080
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
六、MONITOR_HOME/bin/start.bat
七、檢測運行效果,瀏覽器輸入:http://localhost:8080/