Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the use of the Telnet command in Dubbo

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Today, I will talk to you about the use of the Telnet command in Dubbo. Many people may not know much about it. In order to make you understand better, the editor has summarized the following for you. I hope you can get something according to this article.

After the Dubbo service is released, we can use the telent command to debug and manage

Starting with version 2.0.5, dubbo began to support service governance through telnet commands.

I. connecting services

Test whether the Dubbo service under the corresponding IP and port is connected

> telnet ip port (note that there is no colon between ip and port)

If the connection is normal, you will see "Escape character is'^]'."

Enter to enter Dubbo command mode at this time.

Second, view the list of services

Display a list of services

Dubbo > ls

Display a list of service details

Dubbo > ls-l

Display a list of methods for the service

Dubbo > ls XXXService

Display a list of method details for the service

Dubbo > ls-l XXXService

Display a list of service ports

Dubbo > ps

Display a list of service addresses

Dubbo > ps-l

Display connection information on the port

Dubbo > ps 20880

Display connection details on the port

Dubbo > ps-l 20880

Third, invoke the service interface

The method of invoking the service

Dubbo > invoke XXXService.XXXMethod ({"prop": "value"})

The method that invokes the service (automatically finds the service that contains this method)

Dubbo > invoke XXXMethod ({"prop": "value"})

4. Check the service status

Statistics on the invocation of any method of a service

Dubbo > count XXXService

Statistics of 10 calls to any method of the service

Dubbo > count XXXService 10

Statistics on the invocation of one service method

Dubbo > count XXXService XXXMethod

Statistics of 10 calls to service methods

Dubbo > count XXXService XXXMethod 10

Displays summary status, which summarizes the status of all resources, showing OK when all OK, ERROR as long as there is one ERROR, and WARN as long as there is one WARN.

Dubbo > status

Show status list

Dubbo > status-l

5. Switch default services

Change the default service. When the default service is set, all commands that need to enter the service name as a parameter can be saved.

Dubbo > cd XXXService

Cancel the default service

Dubbo > cd /

Show the current default service

Dubbo > pwd

VI. Other orders

Modify the log level of dubbo logger

Dubbo > log debug

View the log of the last 100 characters of file logger

Dubbo > log 100

Note: the log command is only supported at version 2.0.6 or above.

Display telnet command help information

Dubbo > help

Displays detailed help information for xxx commands

Dubbo > help xxx

Clear the contents of the screen

Dubbo > clear

Clears the contents of the specified number of lines on the screen

Dubbo > clear 100

Exit the current telnet command line

Dubbo > exit

After reading the above, do you have any further understanding of the use of the Telnet command in Dubbo? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report