Service installation method, apparatus and system, electronic device, and storage medium
By recording and transmitting installation progress information at the forwarding layer of the server, the problem that users cannot perceive the progress of business installation packages in real time is solved, and the transparency of the installation process and the improvement of user experience is achieved.
Patent Information
- Application Number
- PCT/CN2024/133950
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-28
- Filing Date
- 2024-11-22
- Publication Date
- 2025-07-03
AI Technical Summary
When installing business installation packages on the server, users cannot perceive progress in real time, resulting in the user waiting time being too long and affecting the user experience.
During the installation process of the business installation package, the installation process information is recorded in the target storage location of the forwarding layer of the server, and the progress information is sent to the client through the forwarding layer to display, and the client displays the installation progress.
Users can understand the installation progress of the business installation package in real time, avoiding long-term waiting, and improving user experience.
Smart Images

Figure CN2024133950_03072025_PF_FP_ABST
Abstract
Description
Service installation method, device, system, electronic device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on December 28, 2023, with application number 202311855436.4 and invention name “A service installation method, device, system, electronic device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of Internet technology, and in particular to a service installation method, device, system, electronic device and storage medium. Background Art
[0003] With the development of science and technology, servers can provide more and more business services. If the logic codes, databases and other files of all the business services that can be provided are set in one installation package, the installation package of the software installed by the user will occupy more storage resources and require the server in the user's installation environment to have higher performance such as memory.
[0004] Considering that not all business services are used, the software is designed as a base installation package and multiple business installation packages (Addon packages). Users can first set up a server to install the base installation package, and then select the Addon packages to install based on their scenario requirements. When users want the server to provide some new business services, they can download the Addon package from the application market and install it on the server.
[0005] During the installation process, the basic services provided by the server's business layer and the server's forwarding layer are all stopped. During this period, the user's client cannot obtain relevant information from the server. The installation process of the installation package is long, and the user cannot perceive the installation progress of the installation package, which can easily cause the user to wait in vain for a long time, affecting the user's experience. Summary of the Invention
[0006] The present application provides a service installation method, device, system, electronic device and storage medium, which are used to solve the problem that during the process of installing a service installation package in a server, the service layer and forwarding layer of the server stop serving and the user cannot perceive the installation progress of the service installation package.
[0007] To achieve the above technical objectives, this application adopts the following technical solutions:
[0008] In a first aspect, an embodiment of the present application provides a service installation method, which is applied to a server. The server includes a forwarding layer and a business layer. The forwarding layer is used to forward data information sent and received by the server, and the business layer is used to provide business services. The method includes:
[0009] After obtaining the service installation package, install the service installation package and control the service layer to stop providing service;
[0010] Recording the installation process information of the service installation package in the target storage location of the forwarding layer;
[0011] In response to receiving the progress reading instruction sent by the client, the installation progress information of the service installation package in the target storage location is sent to the client through the forwarding layer, so that the client can display the installation progress of the service installation package.
[0012] The technical solution provided by this application brings at least the following beneficial effects: since when the server installs the business installation package, only the business layer stops providing business services, and the installation process information of the business installation package is recorded in the forwarding layer of the server, during the installation process of the business installation package, the forwarding layer can directly read the installation process information of the business installation package and send the installation process information to the client used by the user, and then the installation process information of the business installation package can be displayed in the client, so that the user can perceive the installation progress of the business installation package, avoid the user waiting for a long time, and improve the user experience.
[0013] In one possible implementation, the method further includes: after the service installation package is installed, generating installation completion identification information, and storing the installation completion identification information in a target storage location; starting the service layer, and controlling the forwarding layer to restart; and sending the installation completion identification information in the target storage location to the client.
[0014] In one possible implementation, the method further includes: after the forwarding layer is successfully restarted, receiving a detection instruction sent by the client, the detection instruction is used to determine whether the forwarding layer and the business layer are started; after the business layer and the forwarding layer are started, in response to the detection instruction, sending a detection response message to the client through the forwarding layer, so that the client refreshes the display page corresponding to the business service provided by the business layer, and the detection response information is used to indicate that the forwarding layer and the business layer have been started.
[0015] In a possible implementation, the method further includes: when an abnormality occurs during the installation of the service installation package, recording abnormality information representing the abnormality in a target storage location; and sending the abnormality information in the target storage location to the client.
[0016] In a second aspect, the present application provides a service installation method, applied to a client, the method comprising:
[0017] Send progress reading instructions to the server;
[0018] Receiving the installation progress information of the service installation package in the target storage location of the forwarding layer sent by the server through the forwarding layer of the server, the forwarding layer is used to forward the data information sent and received by the server;
[0019] Displays the installation progress of the service installation package based on the installation process information of the service installation package.
[0020] In one possible implementation, the method also includes: receiving installation completion identification information in the target storage location of the forwarding layer sent by the server through the forwarding layer; periodically sending detection instructions to the server within a preset time period, the detection instructions are used to determine whether the forwarding layer and the business layer are started, and the business layer is used to provide business services; if the detection response information sent by the server through the forwarding layer is received within the preset time period, the display page corresponding to the business service provided by the business layer is refreshed, and the detection response information is used to indicate that the forwarding layer and the business layer have been started; if the detection response information sent by the server through the forwarding layer is not received within the preset time period, it is determined that the forwarding layer startup failed, and a first prompt message is issued, and the first prompt message is used to indicate that the forwarding layer startup of the server failed.
[0021] In one possible implementation, the method also includes: receiving abnormal information in the target storage location of the forwarding layer sent by the server through the forwarding layer; determining that an abnormal situation occurs during the installation of the business installation package; and issuing a second prompt message, the second prompt message being used to indicate that an abnormal situation occurs during the installation of the business installation package.
[0022] In a third aspect, the present application provides a service installation device, comprising:
[0023] Transmission module, used to obtain the service installation package;
[0024] The processing module is used to install the service installation package and control the business layer to stop providing business services. The business layer is used to provide business services;
[0025] The processing module is further configured to record the installation process information of the service installation package in a target storage location of the forwarding layer;
[0026] The transmission module is further configured to, in response to receiving a progress reading instruction sent by the client, send the installation progress information of the service installation package in the target storage location to the client through the forwarding layer, so that the client can display the installation progress of the service installation package.
[0027] In one possible implementation, the processing module is also used to: generate installation completion identification information after the service installation package is installed, and store the installation completion identification information in the target storage location; start the service layer and control the forwarding layer to restart; the transmission module is also used to send the installation completion identification information in the target storage location to the client.
[0028] In one possible implementation, the transmission module is also used to: after the forwarding layer is successfully restarted, receive a detection instruction sent by the client, and the detection instruction is used to determine whether the forwarding layer and the business layer are started; after the business layer and the forwarding layer are started, in response to the detection instruction, send a detection response information to the client through the forwarding layer, so that the client refreshes the display page corresponding to the business service provided by the business layer, and the detection response information is used to indicate that the forwarding layer and the business layer have been started.
[0029] In one possible implementation, the processing module is further used to record abnormal information characterizing the abnormal situation in a target storage location when an abnormal situation occurs during the installation of the service installation package; the transmission module is further used to send the abnormal information in the target storage location to the client.
[0030] In a fourth aspect, the present application provides a service installation device, comprising:
[0031] Transmission module, used to send progress reading instructions to the server;
[0032] The transmission module is further configured to receive installation progress information of the service installation package in the target storage location of the forwarding layer sent by the server through the forwarding layer of the server, and the forwarding layer is configured to forward data information sent and received by the server;
[0033] The display module is used to display the installation progress of the service installation package based on the installation process information of the service installation package.
[0034] In one possible implementation, the transmission module is also used to: receive installation completion identification information in the target storage location of the forwarding layer sent by the server through the forwarding layer; periodically send detection instructions to the server within a preset time period, the detection instructions are used to determine whether the forwarding layer and the business layer are started, and the business layer is used to provide business services; the display module is also used to refresh the display page corresponding to the business service provided by the business layer if the transmission module receives the detection response information sent by the server through the forwarding layer within a preset time period, and the detection response information is used to indicate that the forwarding layer and the business layer have been started; the service installation device also includes a processing module, the processing module is used to determine that the forwarding layer startup failed if the transmission module does not receive the detection response information sent by the server through the forwarding layer within the preset time period; the transmission module is also used to, in the case of a forwarding layer startup failure, issue a first prompt message, and the first prompt message is used to indicate that the forwarding layer startup of the server failed.
[0035] In one possible implementation, the transmission module is also used to receive exception information in the target storage location of the forwarding layer sent by the server through the forwarding layer; the processing module is also used to determine that an abnormal situation occurs during the installation of the business installation package; the transmission module is also used to issue a second prompt message, and the second prompt message is used to indicate that an abnormal situation occurs during the installation of the business installation package.
[0036] In a fifth aspect, the present application provides a service installation system, comprising:
[0037] The server is used to install the service installation package after obtaining it and control the service layer to stop providing service services. The server includes a service layer and a forwarding layer. The forwarding layer is used to forward data information sent and received by the server, and the service layer is used to provide service services.
[0038] The server is further configured to record the installation process information of the service installation package in the target storage location of the forwarding layer;
[0039] The client is used to send progress reading instructions to the server;
[0040] The server is further configured to, in response to receiving a progress reading instruction sent by the client, send the installation progress information of the service installation package in the target storage location to the client via the forwarding layer;
[0041] The client is further configured to receive installation progress information of the service installation package in the target storage location of the forwarding layer sent by the server through the forwarding layer of the server, and display the installation progress of the service installation package based on the installation progress information of the service installation package.
[0042] In a sixth aspect, the present application provides an electronic device comprising: one or more processors; one or more memories; wherein the one or more memories are used to store computer program code, the computer program code including computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes any one of the service installation methods provided in the first aspect above, or any one of the service installation methods provided in the second aspect above.
[0043] In the seventh aspect, the present application provides a computer-readable storage medium, which stores computer execution instructions. When the computer execution instructions are run on a computer, the computer executes any one of the service installation methods provided in the first aspect above, or any one of the service installation methods provided in the second aspect above.
[0044] In an eighth aspect, the present application provides a computer program product, which includes computer instructions. When the computer instructions are run on a computer, the computer executes any one of the service installation methods provided in the first aspect or any one of the service installation methods provided in the second aspect.
[0045] For the specific descriptions of the second to eighth aspects and their various implementations in this application, reference can be made to the detailed descriptions in the first aspect and its various implementations; and for the beneficial effects of the second to eighth aspects and their various implementations, reference can be made to the analysis of the beneficial effects in the first aspect and its various implementations, which will not be repeated here.
[0046] These and other aspects of the present application will become more readily apparent from the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application.
[0048] FIG1 is a schematic diagram of the structure of a service installation system applicable to a service installation method provided in an embodiment of the present application;
[0049] FIG2 is a schematic diagram of the hardware composition of a computing device provided in an embodiment of the present application;
[0050] FIG3 is a flow chart of a service installation method provided in an embodiment of the present application;
[0051] FIG4 is a schematic diagram of an application scenario of a service installation method provided in an embodiment of the present application;
[0052] FIG5 is a second schematic diagram of an application scenario of a service installation method provided in an embodiment of the present application;
[0053] FIG6 is a third schematic diagram of an application scenario of a service installation method provided in an embodiment of the present application;
[0054] FIG7 is a fourth schematic diagram of an application scenario of a service installation method provided in an embodiment of the present application;
[0055] FIG8 is a logic diagram of a service installation method provided in an embodiment of the present application;
[0056] FIG9 is a schematic structural diagram of a service installation device provided in an embodiment of the present application;
[0057] FIG10 is a schematic structural diagram of another service installation device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] To make the objectives, technical solutions, and advantages of this application more clearly understood, the present application is further described below with reference to the accompanying drawings and examples. It is apparent that the described examples are only a portion of the embodiments of this application, and not all of them. All other embodiments derived by persons of ordinary skill in the art based on the examples in this application are intended to fall within the scope of protection of this application.
[0059] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0060] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. To be precise, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete way. The terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present application, unless otherwise specified, "multiple" means two or more.
[0061] To facilitate understanding, we first briefly introduce and explain the basic concepts of some terms or technologies involved in the embodiments of this application.
[0062] The server's forwarding layer can be an HTTP (HyperText Transfer Protocol) and reverse proxy web server, such as Nginx (a high-performance HTTP server and reverse proxy), Caddy (a cross-platform open source web server that supports HTTP / 2), etc. There is no limitation here, as long as the forwarding function can be implemented.
[0063] The system services of the product provide business servers for various business data processing, that is, the business layer of the server in this application.
[0064] On the premise of a basic service, a new business can be added on this basis. The installation package of this new business service is called an Addon package in this article. In other cases, it can also be called a plug-in, extension package, etc.
[0065] Application Market: A place where some business applications are managed in the cloud.
[0066] The above is an introduction to some of the concepts involved in the embodiments of this application, which will not be repeated below.
[0067] With the development of science and technology, servers can provide more and more business services. If the logic codes, databases and other files of all the business services that can be provided are set in one installation package, the installation package of the software installed by the user will occupy more storage resources and require the server in the user's installation environment to have higher performance such as memory.
[0068] Taking into account that not all business services will be used, by designing a software as a basic installation package and multiple business installation packages (Addon packages), users can first set up a server to install an installation package that provides a basic server, and then select the Addon packages to be installed according to their own scenario requirements. When users want the server to provide some new business services or update the installation package of a business service, users can use the application market to download the new Addon package and install it on the server. Alternatively, different branches may have different requirements for the same business service and the Addon packages they use may be different versions. In this case, users can update different Addon packages on the server for different branches.
[0069] During the installation process, the basic services provided by the server's business layer and the server's forwarding layer are all stopped. During this period, the user's client cannot obtain relevant information from the server. The installation process of the installation package is long, and the user cannot perceive the installation progress of the installation package, which can easily cause the user to wait in vain for a long time, affecting the user's experience.
[0070] In this regard, an embodiment of the present application provides a service installation method. When installing a business installation package, the business layer stops working, and the forwarding layer works normally, and the installation process information of the business installation package is recorded in the forwarding layer of the server. Then, during the installation process of the business installation package, the forwarding layer can directly read the installation process information of the business installation package and send the installation process information to the client used by the user. The installation process information of the business installation package can then be displayed in the client, allowing the user to perceive the installation progress of the business installation package, avoiding the user waiting for a long time, and improving the user experience.
[0071] Please refer to Figure 1 , which shows a service installation system to which the service installation method provided by this application is applicable. As shown in Figure 1 , the service installation system 1 includes a server 10 and a client 20 .
[0072] A communication connection is established between the server 10 and the client 20. It should be understood that the connection method can be a wireless connection, such as a Bluetooth connection, a wireless fidelity (Wi-Fi) connection, etc.; or the connection method can also be a wired connection, such as an optical fiber connection, etc., without limitation.
[0073] In some embodiments, the server 10 includes a forwarding layer and a business layer. The forwarding layer is used to forward data information sent and received by the server 10, and the business layer is used to provide business services, such as search services, recommendation services, computing services, etc.
[0074] In some embodiments, when a user has a new service requirement, the server 10 is configured to obtain a service installation package. Specifically, the server 10 is connected to the cloud, which provides an application market. The application market may include information such as the installation package versions and function descriptions of different service services. When the server 10 receives a service package download instruction issued by the user after selecting the required service installation package based on the installation package versions and function descriptions of different service services, the server 10 downloads the service installation package indicated by the service package download instruction from the application market provided by the cloud, thereby obtaining the service installation package.
[0075] In some embodiments, the server 10 is used to install a service installation package, and when installing the service installation package, controls the service layer to provide service services.
[0076] In some embodiments, the server 10 is configured to record the installation progress information of the service installation package in a target storage location at the forwarding layer. The target storage location at the forwarding layer may be an Nginx directory. That is, the server 10 records the installation progress information of the service installation package in a file under the Nginx directory. When the server 10 receives a progress read instruction sent by the client 20, the server 10 reads the file under the Nginx directory through Nginx and returns it to the client 20.
[0077] In some embodiments, the client 20 is used to send a progress reading instruction to the server 10, and then receive the installation progress information of the service installation package returned to the client 20 by the server 10 in response to the progress reading instruction. The client 20 displays the installation progress of the service installation package.
[0078] In some embodiments, the client 20 is further configured to receive a user's selection operation for a service installation package, and then the client 20 sends the service installation package selected by the user to the server 10 through the forwarding layer of the server 10 to instruct the server 10 to download the service installation package selected by the user.
[0079] In some embodiments, when the server 10 completes downloading the business installation package, it can send download completion identification information to the client 20. After receiving the business installation package download completion identification information sent by the server 10, the client 20 receives the installation instruction issued by the user. The client 20 sends the installation instruction to the server 10 through the forwarding layer of the server 10, so that the server 10 installs the business installation package, controls the business layer to stop providing business services, and stores the installation process information of the business installation package in the file under the Nginx directory.
[0080] In some embodiments, the client 20 is also used to display pages related to business services provided by the business layer of the server 10 .
[0081] Based on the above description, client 20 includes at least an interactive device for interacting with the user. For example, a user can use the interactive device of client 20 to issue installation instructions for a service installation package. Another example is that the interactive device of client 20 can display the installation progress of the service installation package. Specifically, the interactive device may include a display, an alarm, touch buttons, a keyboard, a speaker, etc. This embodiment of the present application does not specifically limit the structure of the interactive device.
[0082] In some embodiments, the server 10 may be a device with data processing and data storage capabilities, configured to provide business services to users. For example, the server 10 may be a single server, a server cluster consisting of multiple servers, or a cloud computing service center, without limitation.
[0083] In some embodiments, the client 20 may be any electronic device that can provide business service display results to users and communicate with the server 10. For example, the client 20 may be a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile internet device (MID), a wearable device, a virtual reality (VR) device, or an augmented reality (AR) device.
[0084] The hardware structures of the server 10 and the client 20 may include the elements included in the computing device shown in Figure 2. The hardware structures of the server 10 and the client 20 are described below using the computing device shown in Figure 2 as an example.
[0085] As shown in FIG2 , the computing device may include a processor 301 , a memory 302 , a communication interface 303 , and a bus 304 . The processor 301 , the memory 302 , and the communication interface 303 may be connected via a bus 304 .
[0086] Processor 301 is the control center of the computing device and can be a single processor or a collective term for multiple processing elements. For example, processor 301 can be a general-purpose central processing unit (CPU) or other general-purpose processor. A general-purpose processor can be a microprocessor or any conventional processor.
[0087] As an embodiment, the processor 301 may include one or more CPUs, such as CPU 0 and CPU 1 shown in FIG. 2 .
[0088] The memory 302 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0089] In one possible implementation, memory 302 may exist independently of processor 301 and may be connected to processor 301 via bus 304 for storing instructions or program codes. When processor 301 calls and executes the instructions or program codes stored in memory 302, the service installation method provided in the embodiment of the present application can be implemented.
[0090] In another possible implementation, the memory 302 may also be integrated with the processor 301 .
[0091] The communication interface 303 is used to connect the computing device to other devices via a communication network, such as Ethernet, a radio access network (RAN), a wireless local area network (WLAN), etc. The communication interface 303 may include a receiving unit for receiving data and a sending unit for sending data.
[0092] Bus 304 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. This bus can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, FIG2 shows only one thick line, but this does not mean that there is only one bus or only one type of bus.
[0093] It should be noted that the structure shown in FIG2 does not constitute a limitation on the computing device. In addition to the components shown in FIG2 , the computing device may include more or fewer components than shown, or a combination of certain components, or a different arrangement of components.
[0094] The implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0095] As shown in FIG3 , an embodiment of the present application provides a service installation method, which includes the following steps:
[0096] S101 . After obtaining a service installation package, the server 10 installs the service installation package and controls the service layer to stop providing service.
[0097] In some embodiments, the user first sends a service installation package download instruction to the server 10 through the client 20, and then the server 10 downloads the service installation package indicated by the service installation package download instruction from the application market provided by the cloud, so that the server 10 obtains the service installation package.
[0098] For example, as shown in FIG4 , the client 20 displays multiple service installation packages, including service installation package 1, service installation package 2, service installation package 3, service installation package 4, service installation package 5, and service installation package 6. After the user selects service installation package 1, service installation package 2, and service installation package 3, the user clicks the "Download" control, and the client 20 then sends the identification information of the service installation package selected by the user to the server 10, instructing the server 10 to download the service installation package selected by the user from the application market provided by the cloud. At this time, the user's click on the "Download" control is the user's operation of sending a service installation package download instruction to the server 10 through the client 20.
[0099] In some embodiments, after obtaining the business installation package, the server 10 determines the installation order of the business installation package. After receiving the installation instruction sent by the user to the server through the client 20, the server 10 installs the business installation package and controls the business layer to stop providing business services. After the server 10 completes the installation of the business installation package, the business layer of the server 10 is started. This process can also be understood as the restart process of the business layer of the server 10.
[0100] In some embodiments, after the service layer of server 10 stops providing service services, server 10 automatically installs each service installation package in sequence based on the order in which the service installation packages were installed. For example, if a user chooses to install service installation package 1, service installation package 2, and service installation package 3, and the installation order is service installation package 1, service installation package 2, and service installation package 3, after service installation package 1 is installed, server 10 automatically launches the installation program for service installation package 2 and installs service installation package 2. After service installation package 2 is installed, server 10 automatically launches the installation program for service installation package 3. This process does not require the involvement of the service layer.
[0101] S102: The server 10 records the installation process information of the service installation package in the target storage location of the forwarding layer.
[0102] In some embodiments, during the installation of the business installation package, the server 10 periodically stores the installation process information and overwrites the previously stored installation process information with the newly stored installation process information. When the subsequent forwarding layer forwards the installation process information to the client 20, the installation process information currently stored in the target storage location is sent to the client 20.
[0103] Specifically, the installation process information may include the total installation progress of all business installation packages, and / or the installation progress of each business installation package. For example, the user chooses to install business installation package 1, business installation package 2, and business installation package 3. If the data volume of each business installation package is x1, x2, and x3 respectively, the amount of data installed in the current business installation package 1 is x0, and the other business installation packages have not started to be installed, then the installation process information may include "total installation progress x0 / (x1+x2+x3)", and / or "Business installation package 1 installation progress: x0 / x1; business installation package 2 installation progress: 0%; business installation package 3 installation progress 0%". The installation process information is recorded in the form of code in the directory of the forwarding layer, and the forwarding layer can directly access the information stored in the directory of the forwarding layer. The installation process information can also be stored in the directory of the forwarding layer in the form of a character string, etc., and its embodiment itself does not specifically limit this.
[0104] S103 : The client 20 sends a progress reading instruction to the server 10 ; accordingly, the server 10 receives the progress reading instruction through the forwarding layer.
[0105] The progress reading instruction is used to instruct to obtain the installation progress of the service installation package.
[0106] In some embodiments, the client 20 periodically sends a progress reading instruction to the server 10. After receiving the progress reading instruction, the server 10 sends all the installation progress information stored in the target storage location of the forwarding layer or the latest stored installation progress information to the client 20.
[0107] S104. In response to receiving the progress reading instruction sent by the client 20, the server 10 sends the installation progress information of the business installation package in the target storage location to the client 20 through the forwarding layer; accordingly, the client 20 receives the installation progress information of the business installation package sent by the server 10 and displays the installation progress of the business installation package.
[0108] In some embodiments, after the service installation package is installed, the server 10 generates installation completion identification information and stores the installation completion identification information in a target storage location. The server 10 starts the service layer and controls the forwarding layer to restart. The server 10 sends the installation completion identification information in the target storage location to the client 20. Accordingly, the client 20 receives the installation completion identification information in the target storage location of the forwarding layer sent by the server 10 via the forwarding layer. The client 20 periodically sends a probe instruction to the server 10 within a preset period of time. The probe instruction is used to determine whether the forwarding layer and the service layer are started, and the service layer is used to provide service services. If the forwarding layer of the server 10 is successfully restarted within the preset period of time, the forwarding layer of the server 10 may receive the probe instruction sent by the client 20. After the service layer is also successfully started, in response to the probe instruction, the server 10 sends a probe response information to the client 20 via the forwarding layer. The probe response information is used to indicate that the forwarding layer and the service layer have started. Accordingly, the client 20 receives the probe response information sent by the server 10 via the forwarding layer within the preset period of time and refreshes the display page corresponding to the service provided by the service layer. If the client 20 does not receive the probe response information sent by the server 10 through the forwarding layer within the preset time, it determines that the forwarding layer startup fails and sends a first prompt message, which is used to indicate that the forwarding layer startup of the server 10 fails.
[0109] The server 10 stores the installation completion identification information in the target storage location. It can be understood that the installation process information stored in the target storage location includes the installation completion identification information.
[0110] Specifically, the probe response information may be in the 200 status, indicating that the service layer has been successfully started. Meanwhile, if the client 20 receives the probe response information, it indicates that the forwarding layer is also working normally, that is, the forwarding layer has been successfully restarted.
[0111] For example, as shown in FIG5 , the client 20 displays the words “Startup Failed” on the display page, prompting the user that the forwarding layer and / or business layer startup failed, so that the user can check the server 10 as soon as possible to determine the reason for the forwarding layer and / or business layer startup failure.
[0112] In this way, after the service installation package is installed, the service layer of the server 10 is started, and the forwarding layer is restarted at this time. Since the forwarding layer is only responsible for data forwarding, it sets a preset time length and periodically sends a detection instruction to the server 10 within the preset time length. If the detection response information returned by the forwarding layer of the server 10 is received within the preset time length, it indicates that the forwarding layer and the service layer in the server 10 are successfully started and the service installation package is also successfully installed. The user does not need to check in real time whether the service installation package is installed in this process, which avoids the user waiting in vain and improves the user experience. In addition, if the client 20 does not receive the detection response information within the preset time length, it can be determined that the forwarding layer and / or service layer of the server 10 have not been successfully started. At this time, the client 20 sends a first prompt message, which can prompt the user to promptly check the reasons why the forwarding layer and / or service layer did not start successfully, so that the server 10 can work normally as soon as possible.
[0113] In some embodiments, when an abnormal situation occurs during the installation of a business installation package, the server 10 records the abnormal situation in the target storage location; the server 10 sends the abnormal situation in the target storage location to the client 20 through the forwarding layer; accordingly, the client 20 receives the abnormal situation in the target storage location of the forwarding layer sent by the server 10 through the forwarding layer; the client 20 determines that an abnormal situation occurs during the installation of the business installation package; the client 20 issues a second prompt message, and the second prompt message is used to indicate that an abnormal situation occurs during the installation of the business installation package.
[0114] The server 10 records the abnormal information for characterizing the abnormal situation in the target storage location. It can be understood that the installation process information stored by the server 10 in the target storage location includes the abnormal information for characterizing the abnormal situation.
[0115] 6 , the display page of the client 20 displays the words “Service installation package 1 installation failed”, prompting the user that the service installation package 1 installation failed, so that the user can check the server 10 as soon as possible to determine the reason for the service installation package 1 installation failure.
[0116] In this way, the client 20 can obtain abnormal conditions during the installation of the service installation package and issue a second prompt message, which can prompt the user to promptly detect problems that occur during the installation of the service installation package to avoid long-term abnormal conditions of the server 10.
[0117] S105 : The client 20 displays the installation progress of the service installation package.
[0118] Optionally, when displaying the installation progress of the service installation package, the client 20 estimates the remaining installation time and displays the estimated remaining installation time.
[0119] For example, as shown in Figure 7, the display page of the client 20 shows the installation progress of the business installation package. The total installation progress of the business installation package is 10%. This process takes 30 seconds, so the client 20 can estimate the remaining installation time to be 270 seconds, and displays the estimated remaining installation time at the same time.
[0120] In this way, the user can know the installation progress and remaining installation time of the business installation package, so that the user can perform other work during the installation process of the business installation package, avoiding the user waiting for the installation process of the business installation package in vain. After the business installation package is installed, the user can perform subsequent operations as soon as possible.
[0121] The technical solution shown in Figure 3 brings at least the following beneficial effects: since when the server 10 installs the business installation package, only the business layer stops providing business services, and the installation process information of the business installation package is recorded in the forwarding layer of the server 10, during the installation process of the business installation package, the forwarding layer can directly read the installation process information of the business installation package and send the installation process information to the client 20 used by the user, and then the installation process information of the business installation package can be displayed in the client 20, so that the user can perceive the installation progress of the business installation package, avoid the user waiting for a long time, and improve the user experience.
[0122] The following describes in detail the installation method of the service provided by this application from the perspective of the overall process:
[0123] As shown in Figure 8, after the service installation package download is complete, the user enters a restart command on client 20, triggering client 20 to send a restart command to server 10. Server 10 receives the restart command through the forwarding layer, triggering the service layer to stop providing service services, install each service installation package in sequence, and record the installation progress information of the service installation package and any exception information during the installation process in the forwarding layer directory. Server 10 receives the progress read command periodically sent by client 20, and sends the installation progress information or exception information stored in the target storage location to client 20 through the forwarding layer, so that client 20 can display the installation progress of the service installation package. After installing all service installation packages, server 10 records the installation completion indicator information in the forwarding layer directory, controls the service layer to start, and controls the forwarding layer to restart. At the same time, after receiving the installation completion indicator information, client 20 periodically sends a probe command to server 10. If client 20 receives a probe response message from server 10 within a preset time period, indicating that both the forwarding layer and the service layer of server 10 have been successfully started, client 20 refreshes the corresponding service display page of server 10.
[0124] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. It should be easy to realize that the technical goals in this field are combined with the units and algorithm steps of each example described in the embodiments disclosed herein, and the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional technical goals can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0125] As shown in FIG9 , the embodiment of the present application further provides a service installation device, which is used in the service installation method shown in the above method embodiment. The service installation device 400 includes: a transmission module 401 and a processing module 402 .
[0126] Among them, the transmission module 401 is used to obtain the business installation package; the processing module 402 is used to install the business installation package and control the business layer to stop providing business services, and the business layer is used to provide business services; the processing module 402 is also used to record the installation process information of the business installation package in the target storage location of the forwarding layer; the transmission module 401 is also used to, in response to receiving a progress reading instruction sent by the client 20, send the installation process information of the business installation package in the target storage location to the client 20 through the forwarding layer, so that the client 20 can display the installation progress of the business installation package.
[0127] In one possible implementation, the processing module 402 is also used to: generate installation completion identification information after the service installation package is installed, and store the installation completion identification information in the target storage location; start the service layer, and control the forwarding layer to restart; the transmission module 401 is also used to send the installation completion identification information in the target storage location to the client 20.
[0128] In one possible implementation, the transmission module 401 is also used to: after the forwarding layer is successfully restarted, receive a detection instruction sent by the client 20, and the detection instruction is used to determine whether the forwarding layer and the business layer are started; after the business layer and the forwarding layer are started, in response to the detection instruction, send a detection response information to the client 20 through the forwarding layer, so that the client 20 refreshes the display page corresponding to the business service provided by the business layer, and the detection response information is used to indicate that the forwarding layer and the business layer have been started.
[0129] In one possible implementation, the processing module 402 is also used to record the abnormal information used to characterize the abnormal situation in the target storage location when an abnormal situation occurs during the installation of the business installation package; the transmission module 401 is also used to send the abnormal information in the target storage location to the client 20.
[0130] As shown in FIG10 , the embodiment of the present application further provides a service installation device, which is used in the service installation method shown in the above method embodiment. The service installation device 500 includes: a transmission module 501 , a display module 502 and a processing module 503 .
[0131] Among them, the transmission module 501 is used to send a progress reading instruction to the server 10; the transmission module 501 is also used to receive the installation process information of the business installation package in the target storage location of the forwarding layer sent by the server 10 through the forwarding layer of the server 10, and the forwarding layer is used to forward the data information sent and received by the server 10; the display module 502 is used to display the installation progress of the business installation package based on the installation process information of the business installation package.
[0132] In one possible implementation, the transmission module 501 is also used to: receive installation completion identification information in the target storage location of the forwarding layer sent by the server 10 through the forwarding layer; periodically send detection instructions to the server within a preset time period, the detection instructions are used to determine whether the forwarding layer and the business layer are started, and the business layer is used to provide business services; the display module 502 is also used to refresh the display page corresponding to the business service provided by the business layer if the transmission module 501 receives the detection response information sent by the server 10 through the forwarding layer within a preset time period, and the detection response information is used to indicate that the forwarding layer and the business layer have been started; the service installation device also includes a processing module 503, the processing module 503 is used to determine that the forwarding layer startup failed if the transmission module 501 does not receive the detection response information sent by the server 10 through the forwarding layer within the preset time period; the transmission module 501 is also used to, in the case of a forwarding layer startup failure, issue a first prompt message, and the first prompt message is used to indicate that the forwarding layer startup of the server 10 failed.
[0133] In one possible implementation, the transmission module 501 is also used to receive exception information in the target storage location of the forwarding layer sent by the server 10 through the forwarding layer; the processing module 503 is also used to determine that an abnormal situation occurs during the installation of the business installation package; the transmission module 501 is also used to issue a second prompt message, and the second prompt message is used to indicate that an abnormal situation occurs during the installation of the business installation package.
[0134] It should be noted that the module divisions shown in Figures 9 and 10 are schematic and represent only one logical functional division. In actual implementation, other divisions may be employed. For example, two or more functions may be integrated into a single processing module. These integrated modules may be implemented in either hardware or software functional modules.
[0135] Another embodiment of the present application provides an electronic device comprising a memory and a processor; the memory and the processor are coupled; the memory is configured to store computer program code, the computer program code comprising computer instructions. When the processor executes the computer instructions, the electronic device executes each step performed by the server or client in the method flow shown in the above method embodiment.
[0136] In actual implementation, transmission module 401 and processing module 402, as well as transmission module 501, display module 502, and processing module 503, can be implemented by a processor of an electronic device calling computer program code stored in a memory. The specific execution process can be found in the description of the service installation method above and will not be repeated here.
[0137] Another embodiment of the present application further provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on a computer, the computer executes each step performed by the server or client in the method flow shown in the above method embodiment.
[0138] In another embodiment of the present application, a computer program product is provided. The computer program product includes computer instructions. When the computer instructions are executed on a computer, the computer executes each step executed by the server or client in the method flow shown in the above method embodiment.
[0139] In the above embodiments, all or part of the embodiments can be implemented using software, hardware, firmware, or any combination thereof. When implemented using a software program, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer-executable instructions are loaded and executed on a computer, all or part of the processes or functions according to the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., DVDs), etc.
[0140] The above is only a specific embodiment of the present application. Those skilled in the art may conceive of changes or substitutions based on the specific embodiment provided in this application, and all such changes or substitutions shall fall within the scope of protection of this application.
[0141] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A service installation method, characterized in that, Applied to a server, the server includes a forwarding layer and a service layer. The forwarding layer is used to forward the data information sent and received by the server, and the service layer is used to provide service; The method includes: After obtaining the service installation package, install the service installation package and control the service layer to stop providing service; Record the installation process information of the service installation package in the target storage location of the forwarding layer; In response to receiving the progress reading instruction sent by the client, send the installation process information of the service installation package in the target storage location to the client through the forwarding layer for the client to display the installation progress of the service installation package.
2. The method according to claim 1, wherein The method further includes: After the service installation package is installed, generate installation completion identification information and store the installation completion identification information in the target storage location; Start the service layer and control the forwarding layer to restart; Send the installation completion identification information in the target storage location to the client.
3. The method according to claim 2, wherein The method further includes: After the forwarding layer restarts successfully, receive the detection instruction sent by the client, and the detection instruction is used to determine whether the forwarding layer and the service layer are started; After the service layer and the forwarding layer are started, in response to the detection instruction, send detection response information to the client through the forwarding layer so that the client refreshes the display page corresponding to the service provided by the service layer, and the detection response information is used to indicate that the forwarding layer and the service layer have been started.
4. The method according to claim 1, characterized in that The method further includes: When an abnormal situation occurs during the installation of the service installation package, record the abnormal information characterizing the abnormal situation in the target storage location; Send the abnormal information in the target storage location to the client.
5. A service installation method, characterized in that, Applied to a client; The method includes: Send a progress reading instruction to the server; Receive the installation process information of the service installation package in the target storage location of the forwarding layer sent by the server through the forwarding layer of the server, and the forwarding layer is used to forward the data information sent and received by the server; Based on the installation process information of the service installation package, display the installation progress of the service installation package.
6. The method according to claim 5, wherein The method further includes: Receive the installation completion identification information in the target storage location of the forwarding layer sent by the server through the forwarding layer; Periodically send a detection instruction to the server within a preset duration, and the detection instruction is used to determine whether the forwarding layer and the service layer are started, and the service layer is used to provide service; If the detection response information sent by the server through the forwarding layer is received within the preset duration, refresh the display page corresponding to the service provided by the service layer, and the detection response information is used to indicate that the forwarding layer and the service layer have been started; If the detection response information sent by the server through the forwarding layer is not received within the preset duration, determine that the forwarding layer fails to start and issue a first prompt message, and the first prompt message is used to indicate that the forwarding layer of the server fails to start.
7. The method according to claim 5, wherein The method further includes: Receiving the exception information in the target storage location of the forwarding layer sent by the server through the forwarding layer; Determining that an abnormal situation occurs during the installation process of the service installation package; Sending out a second prompt message, where the second prompt message is used to indicate that an abnormal situation occurs during the installation process of the service installation package.
8. A service installation device, characterized in that, Including: A transmission module, configured to obtain a service installation package; A processing module, configured to install the service installation package and control the service layer to stop providing service, where the service layer is used to provide services; The processing module is further configured to record the installation progress information of the service installation package in the target storage location of the forwarding layer; The transmission module is further configured to, in response to receiving a progress reading instruction sent by a client, send the installation progress information of the service installation package in the target storage location to the client through the forwarding layer for the client to display the installation progress of the service installation package.
9. A service installation device, characterized in that, Including: A transmission module, configured to send a progress reading instruction to a server; The transmission module is further configured to receive the installation progress information of the service installation package in the target storage location of the forwarding layer sent by the server through the forwarding layer of the server, where the forwarding layer is used to forward the data information sent and received by the server; A display module, configured to display the installation progress of the service installation package based on the installation progress information of the service installation package.
10. A service installation system, characterized in that, Including: A server, configured to install the service installation package after obtaining it and control the service layer to stop providing service. The server includes the service layer and the forwarding layer, where the forwarding layer is used to forward the data information sent and received by the server, and the service layer is used to provide services; The server is further configured to record the installation progress information of the service installation package in the target storage location of the forwarding layer; A client, configured to send a progress reading instruction to the server; The server is further configured to, in response to receiving a progress reading instruction sent by a client, send the installation progress information of the service installation package in the target storage location to the client through the forwarding layer; The client is further configured to receive the installation progress information of the service installation package in the target storage location of the forwarding layer sent by the server through the forwarding layer of the server and display the installation progress of the service installation package based on the installation progress information of the service installation package.
11. An electronic device, characterized in that, Including: One or more processors; One or more memories; Wherein, the one or more memories are used to store computer program codes, and the computer program codes include computer instructions. When the one or more processors execute the computer instructions, the electronic device executes the service installation method according to any one of claims 1 to 4 or claims 5 - 7.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions run on a computer, the computer executes the service installation method according to any one of claims 1 to 4 or claims 5 - 7.
Citation Information
Patent Citations
Methods and devices of installing program
CN108681662A
Application software installation method, device and system and electronic equipment
CN115309415A
Service installation method, device and system, electronic equipment and storage medium
CN117806664A
Streaming An Application Install Package Into A Virtual Environment
US20110029968A1