1. First, use springboot to build a simple dubbo test program and introduce related dependenciesWriting a public interface API Write a provider to implement UserSvice and expose the service Write the provider configuration file Writing a Consumer Consumer configuration file Testing procedures completed Start locally to see if the program can call the service to start Zookeeper normally Start the provider first and then the consumer Through the dubbo console, we can see that our service has been successfully registered. By accessing the local, we can see that our service can be called normally and return information 2.Package the project and upload it to the server Modify the configuration file and change the address of the registration center to the address of the server Use Maven to package and write Dockerfile files Upload the provider and consumer jar packages and the corresponding Dockerfile files to the server 3. Build the image Pull the zookeeper image docker pull zookeeper Build the service provider image Build a consumer image View All Mirrors Add Alibaba Cloud security group Start the zookeeper image, provider, and consumer in sequence docker run -d -p 2181:2181 --name zk01 zookeeper View all started containers test: Open the browser and enter the server's IP address to access the service through our server's address: Successfully return information, then our service deployment is complete This is the end of this article about the steps to deploy the dubbo project using docker. For more relevant content about deploying dubbo with docker, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Use Vue3 for data binding and display list data
>>: Things to note when writing self-closing XHTML tags
This article example shares the specific code of ...
This article example shares the specific code of ...
Before we begin, we create two tables to demonstr...
Table of contents Introduction The following is a...
I'm using a placeholder in a text input and i...
The installation process is basically the same as...
Recommended reading: MySQL 8.0.19 supports accoun...
1. Methods for implementing components:組件名稱首字母必須大...
Table of contents Introduction to NIS Network env...
In the web pages we make, if we want more people ...
The first thing to do is to pick a good browser. ...
This is what happened. Today I was playing with G...
When the software package does not exist, it may ...
<br />Original text: http://www.mikkolee.com...
Today I will introduce a small Javascript animati...