Dubbo2.6 admin 安裝指南

* 1.啓動zookeeper *
dubbo官方推薦使用zookeeper作爲註冊中心,所以第一步先啓動zookeeper服務。
安裝:
1。下載壓縮包–zookeeper-3.4.13.tar.gz; 2.解壓後找到COF目錄下的動物園爲爲爲sample.cfg修改爲zoo.cfg(這是動物園管理員的演示配置,修改爲zoo.cfg就可以直接使用這個演示了)
2。解壓後找到倉目錄下的zkServer .cmd(用來啓動zookeeper服務),編輯並修改{把zkServer.cmd文件的最後調用%JAVA%直接改成調用“%JAVA _ HOME%\ bin \ java”,JAVA _ HOME環境變量配置並且在該文件最後一行後面加上暫停方便看到命令結果,否則如果失敗的話會直接一閃而過}
3.然後雙擊運行下面是我的修改後的文件:

echo on
call java -jar dubbo.jar
endlocal
pause

這裏寫圖片描述

2.導入dubbo admin
打開cmd窗口或者shell,通過java -jar dubbo-admin-0.0.1-SNAPSHOT來運行該jar包,我自己模仿着寫了一個dubbo-start.cmd腳本,方便直接運行該jar包

https://download.csdn.net/download/zzzpaul/10641929

這裏寫圖片描述

#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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.
#
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

通過http:// localhost:7001訪問,賬號密碼默認都是root(這裏僅供開發使用)

這裏寫圖片描述

* 4.關閉服務 *
這個直接關閉CMD窗口服務就都關閉了,包括達博管理員項目和飼養員服務,這裏存疑,希望有人能告訴我更好的方案。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章