so far, ourDubboJourney lets usDubbogot a preliminary understanding with the registry.,the next thing to share isDubbothe management console,It's very useful in a real project .,especially inDubbothe increasing number of services provided,throughDubboThe management console can be very well used by US,So that we can better useDubbothe services provided.
first you need to prepareDubbo-adminManagement Console Program,I import the console in the form of a projectEclipsein,throughEclipsethe way to startTomcatService.Of course, you can also direct the program'sWarpackage intoTomcatof theWebAppsin,Direct StartTomcatcan also.
such as :
Next we need to configure The properties of the dubbo.properties
The main is three properties :
dubbo.registry.address=zookeeper://127.0.0.1:2181 Here is the address and Port for configuring the Zookeeper registry, which supports the configuration of multiple registries , I'll explain it in detail when I use it .
Dubbo.admin.root.password=root
Dubbo.admin.guest.password=guest
The above two properties are clear , is the user name password for the admin console .
Next we start the service :
Enter the service address : http://localhost:8080/dubbo/ ( user name : root, password : root) as :
Our Management Console program is now complete.,it provides a lot of service governance features such as:management of providers and consumers,Control of Access,The adjustment of weights and so on.Of Course we can see the number of relevant statistics services,the number of providers and consumers is0,This is because we haven't been to localZookeeperany of the services provided in.
in the following Dubbo tour article , I will Dubbo Specific code examples to share with you . we can do it by then . Dubbo Management platform See our registration of related services .
Dubbo Tour-Management Console