dubbo-admin installation
Article Directory
1. Download and install node
dubbo-admin is a project that separates the front and back ends. Vue is used on the front end and springboot is used on the back end. Installing dubbo-admin is actually deploying the project. We install dubbo-admin on the development environment. To ensure that the development environment has jdk, maven, nodejs
Install node
Because the front-end project is developed with vue, you need to install node.js, node.js comes with npm, and we will start it through npm later
download link
https://nodejs.org/en/
Click Next all the way to install node (no need to care about the environment variable selection step, the first one is the default, it will be automatically added to the environment variable), use the following command to check whether the installation is successful
2. Download Dubbo-Admin
Enter github, search for dubbo-admin
https://github.com/apache/dubbo-admin
download:
3. Unzip the downloaded zip package to the specified folder (unzip to that folder at will)
4. Modify the configuration file
After decompression, we enter the following directory and find the application.properties configuration file to modify the configuration
Modify to the address of the host where zookeeper is located
# centers in dubbo2.7
admin.registry.address=zookeeper://192.168.149.135:2181
admin.config-center=zookeeper://192.168.149.135:2181
admin.metadata-report.address=zookeeper://192.168.149.135:2181
admin.registry.address Registry
admin.config-center Configuration Center
admin.metadata-report.address Metadata Center
5. Package the project
Execute the packaging command in the dubbo-admin-develop directory
Hold down the shift key, use powershell, execute the following instructions, you need to install maven in advance
This process takes a long time and takes about 20 minutes, during which errors and warnings may be reported, which is normal
mvn clean package
The effect after the execution is as follows:
6. Start the backend
Execute this command in this directory
Finished
This window cannot be closed, otherwise it cannot be used normally
7, the foreground starts
Execute the following commands in this directory, shitf + right click, select powershell
Start successfully
This window cannot be closed, otherwise it cannot be used normally
8. Visit
According to the prompt of successful startup, enter the corresponding address http://localhost:8081/ in the browser
Click the service query, you need to enter the account password
Username and password are both root
dubbo-admin is simple to use
- Inquire
In the above steps, we have entered the main interface of Dubbo-Admin
Enter * to query all services
The picture shows the service in the dubbo study notes (you need to start this producer service first)
After clicking the details
If you want to display successful metadata, you need to add the following code in the xml configuration file of the producer
<!-- 元数据配置 -->
<dubbo:metadata-report address="zookeeper://192.168.149.135:2181" />
Restart the producer and open Dubbo-Admin again
So our metadata information will come out
-
test