1、下載dubbo-admin服務器版本
2、上傳至服務器,?并解壓
dubbo多注冊中心、3、進入解壓后的目錄D:\WorkJava\dubbo-admin-0.2.0
?
4、默認啟動8080端口,?可能會存在沖突,
修改dubbo-admin-server的端口?D:\WorkJava\dubbo-admin-0.2.0\dubbo-admin-server\src\main\resources\application.properties
#
# 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.
## 新版注冊中心
admin.config-center=zookeeper://127.0.0.1:2181# 老版注冊中心,建議注釋,因為無法顯示服務的方法
#這里取消了這兩個配置,必須在zookeeper創建文件,否則jar包運行失敗
#zookeeper創建/dubbo/config/dubbo/dubbo.properties文件 內容
#dubbo.registry.address=zookeeper://127.0.0.1:2181
#dubbo.metadata-report.address=zookeeper://127.0.0.1:2181#admin.registry.address=zookeeper://127.0.0.1:2181
#admin.metadata-report.address=zookeeper://127.0.0.1:2181admin.registry.group=dubbo
admin.apollo.token=e16e5cd903fd0c97a116c873b448544b9d086de9
admin.apollo.appId=test
admin.apollo.env=dev
admin.apollo.cluster=default
admin.apollo.namespace=dubboserver.port=8090
dubbo3.0。注意:
#這里取消了這兩個配置,必須在zookeeper創建文件,否則jar包運行失敗?
zookeeper創建/dubbo/config/dubbo/dubbo.properties文件 內容
dubbo.registry.address=zookeeper://127.0.0.1:2181
dubbo.metadata-report.address=zookeeper://127.0.0.1:2181
public static void main(String[] args) throws Exception {CuratorFramework zkClient = CuratorFrameworkFactory.builder().connectString("192.168.247.129:2181").retryPolicy(new ExponentialBackoffRetry(1000, 3)).build();zkClient.start();if (zkClient.checkExists().forPath("/dubbo/config/dubbo/dubbo.properties") == null) {zkClient.create().creatingParentsIfNeeded().forPath("/dubbo/config/dubbo/dubbo.properties");}zkClient.setData().forPath("/dubbo/config/dubbo/dubbo.properties", ("dubbo.registry.address=zookeeper://192.168.247.129:2181\n" +"dubbo.metadata-report.address=zookeeper://192.168.247.129:2181").getBytes());}
修改dubbo-admin-ui的端口?D:\WorkJava\dubbo-admin-0.2.0\dubbo-admin-ui\config
河北高速服務管理中心??
?
4、進行打包?D:\WorkJava\dubbo-admin-0.2.0
mvn clean package -Dmaven.test.skip=true
?
政務服務管理局、5.進入到dubbo-admin-distribution目錄中?D:\WorkJava\dubbo-admin-0.2.0\dubbo-admin-distribution\target
將dubbo-admin-0.2.0.jar包本地部署或者服務器部署,執行運行命令 java -jar?
啟動成功;訪問ip:8090會出現如下頁面,?代表部署已經成功。
?
就業管理中心??
?
?
安裝中心、?
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
同时也捎带提醒一句,如果你发现你 hook 系统的方法不起作用的时候,或许可以检查一下你项目里引入的第三方框架里是否也 hook 了和你一样的" alt="从使用 KVO 监听 readonly 属性说起">
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态