1.下載dubbo源代碼git
wget https://github.com/apache/incubator-dubbo/archive/2.5.x.zip
2.進入dubbo-admin目錄下github
cd dubbo-admin
3.執行maven編譯命令,mvn install -Dmaven.test.skip=true。-Dmaven.test.skip=true是爲了跳過測試,速度快一點web
wget http://mirrors.hust.edu.cn/apache/tomcat/tomcat-7/v7.0.92/bin/apache-tomcat-7.0.92.tar.gz
6.解壓tomcat以後,到webapps目錄下,清空裏面的文件。apache
7.修改server.xml裏面的8080端口,必定要修改,由於zookeeper會暫用這個端口,這個版本的zookeeper集成了jetty,jetty跟隨zookeeper啓動以後就會佔用8080端口。我這裏改爲8081。
8.把dubbo-admin-2.5.4-SNAPSHOT.war移到 tomcat的webapps目錄下瀏覽器
9.解壓dubbo-admin-2.5.4-SNAPSHOT.wartomcat
unzip dubbo-admin-2.5.4-SNAPSHOT.war
10.解壓出的dubbo-admin-2.5.4-SNAPSHOT目錄更名爲ROOTapp
mv dubbo-admin-2.5.4-SNAPSHOT ROOT
11.dubbo-admin配置webapp
vi webapps/ROOT/WEB-INF/dubbo.properties dubbo.properties dubbo.registry.address=zookeeper://127.0.0.1:2181 dubbo.admin.root.password=root dubbo.admin.guest.password=guest
12.啓動tomcatmaven
./bin/startup.sh
13.訪問瀏覽器IP:8081 輸入dubbo-admin配置的帳號和密碼測試