dubbo之dubbo admin搭建

1:dubbo-admin准备

环境准备:zk安装

maven setting:

<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>D:/program_files/mvn_rep_361</localRepository>
  <pluginGroups>
  <pluginGroup>org.apache.tomcat.maven</pluginGroup>
  </pluginGroups>
  <proxies>
  </proxies>
  <servers>
  </servers>
  <profiles>
    <profile>  
      <id>central</id>  
      <repositories>  
        <repository>  
          <id>central</id>  
          <url>https://repo.maven.apache.org/maven2/</url>  
          <releases>  
            <enabled>true</enabled>  
          </releases>  
          <snapshots>  
            <enabled>true</enabled>  
          </snapshots>  
        </repository>  
      </repositories>  
    </profile>
    <profile>  
      <id>aliyun</id>  
      <repositories>  
        <repository>  
          <id>aliyun</id>  
          <url>http://maven.aliyun.com/nexus/content/groups/public/</url>  
          <releases>  
            <enabled>true</enabled>  
          </releases>  
          <snapshots>  
            <enabled>true</enabled>  
          </snapshots>  
        </repository>  
      </repositories>  
    </profile>
    
    <profile>
      <id>jdk18</id>
      <activation>
        <activeByDefault>true</activeByDefault>
        <jdk>1.8</jdk>
      </activation>
      <properties>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
      </properties>    
    </profile>
  </profiles>  
  <activeProfiles>  
    <activeProfile>central</activeProfile>
    <activeProfile>aliyun</activeProfile>
  </activeProfiles>
</settings>

1.1:下载代码

git clone https://gitee.com/dongsir2020/dubbo-admin.git

1.2:切换分支

因为主干分支一直不能编译成功,使用tag后成功了,你可以根据情况看是否需要该步骤:
git branch 0.2.0-local 0.2.0

1.3:编译

进入项目目录,执行D:\\program_files\\apache-maven-3.6.1-form\\apache-maven-3.6.1\\bin\\mvn clean package -Dmaven.test.skip=true,具体根据情况修改。编译完成后在dubbo-admin-distribution\target会生成可执行jar包,如下图:

在这里插入图片描述

1.4:运行

直接使用如下命令执行在1.3:编译生成的jar包,如下:

在这里插入图片描述

1.5:访问

localhost:8080访问:

在这里插入图片描述

点击详情可以查看都有哪些服务节点:

在这里插入图片描述

可以查看服务提供者,以及服务消费者信息。

参考文章列表

Dubbo Admin 运维指南
Git通过tag创建分支并推送到远程

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值