First, preface
Dubbo use, in fact, only need to have a registration center, consumers, the provider of these three can be used, but can not see which consumers and providers, in order to better debug, find problems, solve problems, so introduced dubbo-admin. Consumers and providers can be managed through dubbo-admin.
Second, download and configuration packaging
Dubbo-admin download, can go to the official website to download: Https://github.com/alibaba/dubbo
Of course, here the small Bao also uploaded to the csdn, ape friends can download here, more convenient and fast oh:
http://download.csdn.net/detail/u013142781/9375988
Download down is such a directory structure:
But here we only care about dubbo-admin this folder.
In fact, the following so-called configuration is to get the war package, the war package on the Internet, but there are a lot of downloads will be problematic, the reason may be everyone's computer JDK version or other environment is different, so we pack a war.
Pack the war package and go to dubbo-admin this file directory to run the command:
-Dmaven.skip.test=true
If you see the following results, the package is successful:
If the package is not successful, then directly download the blogger's war try it, pay attention to the blogger's JDK is 1.7, download link:
http://download.csdn.net/detail/u013142781/9376337
After the package is successful, you will find that Dubbo-admin has a target folder, open the target folder, and found that there is a war package:
Third, installation Dubbo-admin
In the second step we get Dubbo-admin-2.5.4-snapshot.war, and we'll deploy this war package to Tomcat.
Put the Dubbo-admin-2.5.4-snapshot.war in the Tomcat WebApps directory:
Then open the Server.xml file in Tomcat's conf directory and change the boot port to 8090, because zookeeper uses 8080 by default to avoid collisions:
Start Tomcat and let it unzip the war.
If you have been prompted unable to open the service ' tomcat* ', then reinstall a Tomcat (note be sure to use the Tomcat installation package, reinstall, not unzip the available kind), here is a window installation package download:/http download.csdn.net/detail/u013142781/9376343
There will be more of this folder in Tomcat's WebApps:
And then you can stop Tomcat.
Open the dubbo.properties that just Tomcat decompression generated, my under Tomcat 7.0\webapps\dubbo-admin-2.5.4-snapshot\web-inf:
The content is:
dubbo.registry.address=zookeeper://127.0.0.1:2181dubbo.admin.root.password=rootdubbo.admin.guest.password=guest
Know the root password: root,guest password: Guest, log in for later
Four, run below
If you have not configured zookeeper, please refer to another blog article configuration: http://blog.csdn.net/u013142781/article/details/50395650
Start zookeeper first, and then start Tomcat, Access address: http://localhost:8090/dubbo-admin-2.5.4-SNAPSHOT/
Enter the username root and password root:
Dubbo-admin Management Platform Construction