• Detailed explanation of Python using consumer for service discovery example


    preface The previous chapter talked about some advantages and disadvantages of microservices, and how to do it 1、 Target 2、 Use steps 1. Install consumer We can directly use the binaries provided by the official for installation and deployment. The official website address is https://www.consul.io/downloads After downloading, it is an executable file, which can be […]

  • Web service of Java soapheader


    C# JSON return format Web Servicehttps://www.jb51.net/article/16768.htmI use axis to create a class package here. First download the compressed package of axis, then unzip it and put axis under webapp. If it can run, it’s OK.   C# create the WSDL of the WebService, which can be added directly? WSDL access, and then use axis to generate […]

  • Use messenger to realize two-way communication of service


    There is a solution in the Android architecture: use Android messenger to realize two-way communication between service processes. Mainactivity class: package com.example.messengeservicetest; import android.app.Activity; import android.app.Service; import android.content.ComponentName; import android.content.Intent; import android.content.ServiceConnection; import android.os.Bundle; import android.os.Handler; import android.os.IBinder; import android.os.Message; import android.os.Messenger; import android.os.RemoteException; import android.text.style.IconMarginSpan; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class MainActivity […]

  • Android uses service to realize IPC communication in two ways


    Using Aidl to realize IPC communication 1、 Code operation — service binding with remote process The above code communicates with service in the current process. Now let’s implement how to bind services in different processes. Aidl: Android interface definition language, namely Android interface definition language. Service needs Aidl to transfer data across processes. The main […]

  • How to pop up dialog in Android 8.1.0 service


    Scenario: start the thread to download the upgrade package in the service. When the system upgrade package is downloaded, a dialog will pop up to prompt the user. Note that different versions of Android system may have different performance. Currently, it is a service hit dialog based on Android 8.1.0. First of all, to declare […]

  • Start bat script sharing of SQL Server Service


    I declare that I didn’t write this script. I forgot where I saw it. I’d like to share it with you, because in my understanding, technology is for sharing. I hope the original author doesn’t mind if he sees it. 1. Create a text and change the suffix to. Bat 2. Paste the following statement […]

  • Linux shell script monitors the status of Tomcat and realizes the steps of automatic startup


    Recently, the company needs to monitor the Tomcat service under Linux. Once the Tomcat service is abnormal or down, restart Tomcat to ensure the normal operation of the service. Since there is a shell script under Linux to achieve this effect, the following is the steps for shell script under Linux to monitor the status […]

  • Implementation method of carrying eshop on containers with service fabric


    From pet shop to eshop on container are sample projects in which Microsoft demonstrates. Net’s development ability and architecture ability to developers on the path of technology evolution. When petshop is used, it is more about application’s layered architecture, design abstraction and communication between modules. Now that eshop on container focuses more on architecture design […]

  • Code analysis of starting and stopping services using batch processing (net start & net stop)


    Use windows native net.exe Function start or stop serviceThe command line format of start / stop service is: Net start / stop service name (Note: service should be set to manual start type first)example:Take starting and stopping the Oracle11g service as an example (orcl is the database name): Copy codeThe code is as follows: %Start […]

  • How to shut down onedrive service in win10 system


    Onedrive is an online cloud storage service launched by Microsoft. By logging in the account, you can upload and synchronize the data on the computer to onedrive for backup. Although this is very convenient, there are some security risks. Some computer users want to close the onedrive service, but they don’t know how to operate […]

  • How to deal with unresponsive audio service in win10 system


    Windows 10 is undoubtedly the most popular PC operating system in the world. Microsoft is famous for its high attention to the operating system and its constantly updated cool features and software optimization. What about the unresponsive audio service of win10 system? Here’s a solution for the unresponsive audio service brought by Xiaobian. I hope […]

  • How to turn on printer service in win7 system


    Printers have become the peripherals we often use. We also know that the printer service of the system must be turned on when the printer is needed. How to turn on the printer service of the win7 system? Here’s how to set up the printer service. I hope it can help you. To set the […]