安裝dubbo admin
阿新 • • 發佈:2019-02-03
dubbo-admin 是 dubbo管理平臺,可以對dubbo進行精確的控制。
新版的dubboAdmin是用springBoot編寫的,具體可以檢視github說明。
可以看到如下描述:
How to use it
You can get a release of dubbo monitor in two steps:
dubbo admin
dubbo admin is a spring boot application, you can start it with fat jar or in IDE directly
dubbo monitor and dubbo registry
Step 1 :
git clone https://github.com/apache/incubator-dubbo-ops
Step 2:
cd incubator-dubbo-ops && mvn package
Then you will find:
dubbo-monitor-simple-2.0.0-assembly.tar.gz in incubator-dubbo-ops\dubbo-monitor-simple\target directory. Unzip it you will find the shell scripts for starting or stopping monitor.
dubbo-registry-simple-2.0 .0-assembly.tar.gz in incubator-dubbo-ops\dubbo-registry-simple\target directory. Unzip it you will find the shell scripts for starting or stopping registry.
- 根據提示,先把程式碼download下來,
git clone https://github.com/apache/incubator-dubbo-ops
- 然後進到
incubator-dubbo-ops/dubbo-admin/src/main/resources
目錄下,修改配置檔案application.properties
server.port=7001
spring.velocity.cache=false
spring.velocity.charset=UTF-8
spring.velocity.layout-url=/templates/default.vm
spring.messages.fallback-to-system-locale=false
spring.messages.basename=i18n/message
spring.root.password=root
spring.guest.password=guest
dubbo.registry.address=zookeeper://127.0.0.1:2181
1、可以修改tomcat的埠,預設7001
2、修改zookeeper的地址,預設是本地
3、修改root使用者和guest使用者的密碼
- 最後編譯:
mvn package
編譯成功後,進入到target目錄,可以看到jar檔案dubbo-admin-0.0.1-SNAPSHOT.jar
- 執行啟動命令
java -jar dubbo-admin-0.0.1-SNAPSHOT.jar
看到應用啟動成功的提示資訊後,在瀏覽器開啟:http://localhost:7001,輸入root賬戶和密碼後即可進入到dubbo-admin的web控制檯介面。