Dubbo-admin管理平臺的安裝

1.到地址 https://github.com/alibaba/dubbo 下載dubbo源碼 git

 

 

2.解壓縮zip文件到 「 D:\技術資料\zookeeper\dubbo-master\dubbo-master」 目錄下github

 

3.打開命令操做模式,進入D:\技術資料\zookeeper\dubbo-master\dubbo-master\dubbo-admin目錄下執行下面的編譯命令web

D:\技術資料\zookeeper\dubbo-master\dubbo-master\dubbo-admin>  mvn  package -Dmaven.skip.test=true瀏覽器

若是編譯時報下面的錯誤,須要修改 D:\技術資料\zookeeper\dubbo-master\dubbo-master\dubbo-admin目錄下的pom.xml文件tomcat

[ERROR] Failed to execute goal on project dubbo-admin: Could not resolve dependencies for project com.alibaba:dubbo-admin:war:2.5.4-SNAPSHOT: Could not find artifact com.alibaba:dubbo:jar:2.5.4-SNAPSHOT -> [Help 1]app

將 <version>${project.parent.version}</version> 修改成<version>2.5.3</version>webapp

<dependency>
maven

   <groupId>com.alibaba</groupId>
   <artifactId>dubbo</artifactId>
   <version>${project.parent.version}</version>
  </dependency>
spa

<dependency>
   <groupId>com.alibaba</groupId>
   <artifactId>dubbo</artifactId>
   <version>2.5.3</version>
  </dependency>
3d

 4.出現下面的提示,編譯成功

5.編譯成功後,在D:\技術資料\zookeeper\dubbo-master\dubbo-master\dubbo-admin\target目錄下有下面的war包存在

 

 

6.把這個dubbo-admin-2.5.4-SNAPSHOT.war拷貝到 tomcat下的webapps目錄下

 

 7 修改tomcat的端口爲8088,修改方法以下,打到conf下的文件 server.xml,由於zookeeper會用到8080的端口,因此爲了避免衝突,把Tomcat的端口改一下。記得必定要改!!!

 

 

 8 啓動tomcat後,tomcat啓動命令爲 C:\tomcat\bin>startup.bat,啓動後,dubbo-admin-2.5.4-SNAPSHOT.war包會自動解壓,在tomcat/webapps目錄下生成一個dubbo-admin-2.5.4-SNAPSHOT文件夾

 修改dubbo-admin-2.5.4-SNAPSHOT/WEB-INF/文件夾下的dubbo.properties文件爲以下內容

 

9 先啓動zookeeper,而後再啓動tomcat,在瀏覽器輸入 http://localhost:8088/dubbo-admin-2.5.4-SNAPSHOT/ 

 彈出登陸框

,輸入root/root後,顯示下面頁面

相關文章
相關標籤/搜索