A program management system, method and device
By interacting between the management end and the execution end, program management scripts are generated and executed, which solves the problem of user errors when selecting and configuring programs, realizes automated configuration, and improves the efficiency and accuracy of program management.
Patent Information
- Application Number
- CN202111405431.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-24
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-11-24
AI Technical Summary
Users are prone to making mistakes when selecting and configuring programs, causing the programs to fail to execute normally. The existing technology lacks an effective management mechanism.
By interacting between the management end and the execution end, program management scripts are generated and executed to automate the configuration process of the program, including determining the specified configuration process, generating program management files, and executing scripts to configure the program.
It reduces manual operation errors, reduces the user's burden in program management, and improves the efficiency and accuracy of program management.
Smart Images

Figure CN114168217B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of program management technology, and in particular to a program management system, method and device. Background Art
[0002] With the development of science and technology, terminals are appearing more and more in people's lives. People can run various programs in the terminals to realize various functions.
[0003] Faced with a wide variety of programs available for selection, users may not know which program to choose, or how to configure the program. If the selection of a program is wrong and / or the configuration of the program is wrong, the job based on the program may not be executed. Summary of the invention
[0004] The present application provides a program management system, method and device to solve the problem of poor program management in the prior art.
[0005] In a first aspect, the present application provides a first program management method, which is applied to a management end, and the method includes: upon receiving a first program management request from an execution end, determining a program management script based on a program management file, wherein the program management file contains data collected for a specified configuration process for a specified program, and the program management script is used to: configure the specified program using the specified configuration process; and send the program management script to the execution end.
[0006] In an optional embodiment of the present specification, the management end locally stores a number of alternative scripts, and the alternative scripts correspond one-to-one to the alternative project identifiers. When a first program management request is received from the execution end, a program management script is determined based on the program management file, including: determining a specified project identifier according to the first program management request, wherein the specified project identifier is used to identify a set of specified programs to be configured in the execution end; and using the alternative script corresponding to the alternative project identifier that matches the specified project identifier among the alternative project identifiers of each pre-stored alternative script as the program management script.
[0007] In an optional embodiment of the present specification, a management end locally stores a number of alternative files, and the alternative files correspond one-to-one to the alternative project identifiers. When a first program management request is received from the execution end, a program management script is determined based on the program management file, including: determining a specified project identifier according to the first program management request, wherein the specified project identifier is used to identify a set of specified programs to be configured in the execution end; using the alternative file corresponding to the alternative project identifier that matches the specified project identifier among the alternative project identifiers of each alternative file as the program management file, and creating a program management script based on the program management file.
[0008] In an optional embodiment of the present specification, the program management file includes at least one of the following data: a version number of a specified program, an installation path when installing the specified program, and a parameter configuration of the specified program.
[0009] In an optional embodiment of the present specification, when a first program management request is received from the execution end, before determining the program management script based on the program management file, the method also includes: if a first management instruction is received, taking the program corresponding to the first management instruction as an alternative program, and taking the configuration process executed for the alternative program as the designated configuration process; and generating a program management file based on the data collected during the designated configuration process.
[0010] In an optional embodiment of the present specification, before generating a program management file according to data collected during a specified configuration process, the method further includes: calling a specified template, wherein the specified template includes a plurality of fields to be filled in.
[0011] In an optional embodiment of the present specification, a program management file is generated based on the data collected during the specified configuration process, including: for each field to be filled in contained in the specified template, if data matching the field to be filled in is collected, the data is added to the field to be filled in to obtain a program management file.
[0012] In an optional embodiment of the present specification, the method also includes: in the case of receiving a second program management request from the execution end, treating the program corresponding to the second program management request as a pending program, and treating the configuration process executed by the execution end for the pending program as a pending configuration process, wherein the second program management request is triggered by a second management instruction, and the risk of the second management instruction is higher than the risk of the first management instruction; receiving data collected by the execution end during the execution of the pending configuration process as pending data; generating a pending management file based on the pending data; if no risk information on the pending program is received from the execution end within a specified time period, determining the pending management file as a program management file, and determining the pending program as an alternative program.
[0013] In an optional embodiment of the present specification, the pending data is data collected when the execution end executes the pending configuration in its local designated container, wherein, before receiving the data collected by the execution end during the pending configuration process as the pending data, the method also includes: generating a container creation instruction, wherein the container creation instruction is used to create a designated container on the execution end; and sending the container generation instruction to the execution end.
[0014] In the second aspect, the present application provides a second program management method, which is applied to the execution end, and the method includes: generating a first program management request; sending the first program management request to the management end; receiving a program management script from the management end; executing the program management script to configure the specified program corresponding to the program management script locally on the execution end using a specified configuration process.
[0015] In an optional embodiment of the present specification, generating a first program management request includes: determining a specified project identifier, wherein the specified project identifier is used to identify a set of specified programs to be configured in the execution end; adding the specified project identifier to a specified field of the pending management request to obtain the first program management request.
[0016] In an optional embodiment of the present specification, the method also includes: if a second management instruction is received, generating a second program management request, wherein the second management instruction corresponds to a pending program, and the configuration process executed for the pending program is a pending configuration process; sending the second program management request to the management end; sending data collected during the execution of the pending configuration process to the management end; if a risk for the pending program is detected within a specified time period, generating risk information; and sending the risk information to the management end.
[0017] In an optional embodiment of the present specification, data collected during the execution of pending configuration is sent to the management end, including: receiving a container creation instruction from the management end; creating a specified container locally according to the instruction of the container creation instruction; executing the pending configuration in the specified container, and performing data collection when executing the pending configuration, wherein the collected data is pending data; and sending the pending data to the management end.
[0018] In the third aspect, the present application provides a first program management device, which is applied to a management end, and the device includes: a program management script determination module, configured to: upon receiving a first program management request from an execution end, determine a program management script based on a program management file, wherein the program management file contains data collected for a specified configuration process for a specified program, and the program management script is used to: configure a specified program using a specified configuration process; a first sending module, configured to: send the program management script to the execution end.
[0019] In a fourth aspect, the present application provides a second program management device, which is applied to an execution end, and the device includes: a first program management request generation module, configured to generate a first program management request; a second sending module, configured to send the first program management request to the management end; a first receiving module, configured to receive a program management script from the management end; and a script execution module, configured to: execute the program management script to configure a specified program corresponding to the program management script locally on the execution end using a specified configuration process.
[0020] In a fifth aspect, the present application provides a program management system, which includes: an execution end, configured to: generate a first program management request; send the first program management request to a management end; the management end, configured to: upon receiving the first program management request from the execution end, determine a program management script based on a program management file, wherein the program management file contains data collected historically for a specified configuration process for a specified program, and the program management script is used to: configure a specified program using a specified configuration process; send the program management script to the execution end; the execution end is also configured to: receive the program management script from the management end; execute the program management script to configure the specified program corresponding to the program management script locally on the execution end using the specified configuration process.
[0021] In a sixth aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0022] Memory, used to store computer programs;
[0023] The processor is used to implement the steps of any program management method in the first aspect or the steps of any program management method in the second aspect when executing the program stored in the memory.
[0024] In the seventh aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, it implements the steps of any program management method in the first aspect, or implements the steps of any program management method in the second aspect.
[0025] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:
[0026] The program management system, method and device in this specification manages the programs in the execution end by means of interaction between the execution end and the management end. The human participation in this process is low, which can avoid errors caused by manual operation to a certain extent. In addition, the program management in this specification is based on the program management script. The execution end can manage the specified program by running the program management script, which can effectively reduce the burden on users in the management process of the specified program. It can be seen that the program management system, method and device in this specification can solve the problem of poor program management in the prior art to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0029] Figure 1 A schematic diagram of a program management system architecture provided by an embodiment of the present application;
[0030] Figure 2 A flowchart of a program management process provided in an embodiment of the present application;
[0031] Figure 3 A schematic diagram of a program management device provided in an embodiment of the present application;
[0032] Figure 4 A schematic diagram of a program management device provided in an embodiment of the present application;
[0033] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0035] In order to reduce the burden of users in the program management process (the program management process in this specification includes the process of selecting programs and the process of configuring programs) and to improve the efficiency of program management to a certain extent, this specification provides a program management process, which is based on a program management system. The program management system includes an execution end and a management end. The architecture of the program management system is schematically shown as follows: Figure 1 shown.
[0036] The execution end can be one or more. Figure 1 In the program management system shown, execution terminals 1 to n are respectively connected to the management terminal in communication. The number of execution terminals connected to the management terminal in communication is not specifically limited in this specification. In this specification, the management terminal is used to manage the program; the execution terminal is used to execute the job using the program from the management terminal.
[0037] This specification does not impose any specific restrictions on the specific forms of the execution end and the management end. For example, the management end can be a server terminal or a program running in a server terminal; the execution end can be a data processing device or a program running in a data processing device.
[0038] Schematically, the communication process between any one of the execution terminals and the management terminal is taken as an example to illustrate the program management process in this specification. Figure 2 As shown, the program management process in this specification includes at least part of the following steps.
[0039] S200: The execution end generates a first program management request.
[0040] The first program management request in this specification is used to obtain at least part of the data required for executing the program management process from the management end.
[0041] The triggering condition for generating the first program management request may be determined according to actual circumstances. For example, the execution end may display an interactive interface, which may include a first control, and the first program management request is generated when the execution end detects a click on the first control.
[0042] In addition, the interactive interface may include a first text box. After detecting the account data (the account data indicates the identity of the user) entered by the user into the first text box, the account data is sent to the management end. Based on the account data, the management end searches for historical data collected during the program management process executed in the past. If the historical data containing the account data is not found, the first information is sent to the execution end. The first information is used to trigger the execution end to generate a first program management request. If the historical data containing the account data is found, the historical data is used as the specified data. The generation time of the specified data is determined as the specified time. It is determined whether the program management file of the program corresponding to the specified project identifier managed by the management end is updated during the specified time between the specified time and the current time. If so, the first information is sent to the execution end. If not, the second information is sent to the execution end so that the execution end displays the second information. The second information indicates that the execution end does not need to continue to execute the subsequent program management steps. Among them, the specified project identifier is used to identify the set of each specified program to be configured in the execution end.
[0043] After receiving the first information, the execution end parses the first information to obtain the designated project identifier, adds the designated project identifier to the designated field of the pending management request, and obtains the first program management request.
[0044] S202: The execution end sends the first program management request to the management end.
[0045] The execution end may send the first program management request to the management end through a communication link between the execution end and the management end. The communication link may be established after the first program management request is generated, or may be established in advance before the first program management request is generated.
[0046] S204: When receiving the first program management request from the execution end, the management end determines a program management script based on the program management file.
[0047] The program management file contains data collected historically for a specified configuration process for a specified program. The specified program is a program that needs to be managed on the execution end. In an optional embodiment of the present specification, the first program management request carries account data, and the management end parses the account data from the first program management request and determines a program management script that matches the account data.
[0048] Optionally, the program management file includes at least one of the following data: the version number of the specified program, the installation path when installing the specified program, and the parameter configuration of the specified program. The parameter configuration may include at least one of the following: the language used by the specified program, the plug-in identifier of the specified program, the font used by the specified program, etc.
[0049] In a further optional embodiment, the program management file may also include an installation package for a specified program. The execution end may then directly perform the installation of the specified program based on the installation package obtained from the management end. In this embodiment, the execution end has the ability to communicate with the management end, and can manage the program without connecting to the Internet.
[0050] The program management scripts in this manual are used to configure a specified program using a specified configuration process.
[0051] S206: The management end sends the program management script to the execution end.
[0052] S208: The execution end receives the program management script from the management end.
[0053] S210: The execution end executes the program management script to configure the specified program corresponding to the program management script locally on the execution end using a specified configuration process.
[0054] Exemplarily, after receiving the program management script, the execution end directly executes the program management script to install the designated program locally on the execution end, and / or configure the program that has been installed locally on the execution end.
[0055] In addition, after receiving the program management script, the execution end may also display a second control on the interactive interface, and execute the program management script after detecting a click operation of the user on the second control.
[0056] In a further optional embodiment, after receiving the program management script, the execution end stores the program management script locally and displays a third control on the interactive interface. If a user clicks the third control, the locally stored program management script is called and then executed without further communication with the management end. This embodiment can realize the recovery of data of a specified program in the execution end.
[0057] The program management process in this specification adopts the method of interaction between the execution end and the management end to manage the program in the execution end. The human participation in this process is low, which can avoid errors caused by manual operation to a certain extent. In addition, the program management in this specification is based on the program management script. The execution end can realize the management of the specified program by running the program management script, which can effectively reduce the burden on users in the management process of the specified program. It can be seen that the program management system, method and device in this specification can solve the problem of poor program management in the prior art to a certain extent.
[0058] As can be seen from the above content, at the execution end, the management for the specified level is mainly performed by the program management script. Now, how the management end generates the program management script is described.
[0059] In an optional embodiment of the present specification, the management end locally stores a number of candidate scripts, and the candidate scripts correspond to the candidate project identifiers one by one. After the management end receives the first program management request, the designated project identifier is determined according to the first program management request, wherein the designated project identifier is used to identify the set of designated programs to be configured in the execution end; and the candidate script corresponding to the candidate project identifier that matches the designated project identifier among the candidate project identifiers of the pre-stored candidate scripts is used as the program management script.
[0060] In this embodiment, the management end locally stores candidate scripts in advance. After receiving the first program management request, the program management script can be determined by searching, which is beneficial to improving the efficiency of the management end.
[0061] In another optional embodiment of the present specification, the management end locally stores a number of candidate files, and the candidate files correspond to the candidate project identifiers one by one. After the management end receives the first program management request, the designated project identifier is determined according to the first program management request, wherein the designated project identifier is used to identify the set of designated programs to be configured in the execution end; the candidate files corresponding to the candidate project identifiers matching the designated project identifier among the candidate project identifiers of each candidate file are used as program management files, and a program management script is created according to the program management files.
[0062] In this embodiment, if there are many projects corresponding to the candidate files, the programs corresponding to different projects are quite different, and / or the configurations of the same program by different projects are quite different, the process in this embodiment is more flexible.
[0063] Optionally, the first program management request carries a designated project identifier, and the management end can parse the designated project identifier from the first program management request. Further optionally, the management end maintains a designated relationship table, and the designated relationship table records the corresponding relationship between the project identifier and the account data. The management end can parse the account data from the first program management request as the designated data, and find the project identifier corresponding to the designated data from the designated relationship table as the designated project identifier.
[0064] In the process of this manual, the program management script is obtained based on the program management file. Now, how to obtain the program management file is described.
[0065] In an optional embodiment of the present specification, if a first management instruction is received, the program corresponding to the first management instruction is used as an alternative program, and the configuration process performed on the alternative program is used as a designated configuration process. A designated template is called, wherein the designated template includes a plurality of fields to be filled in. For each field to be filled in the designated template, if data matching the field to be filled in is collected, the data is added to the field to be filled in, and a program management file is obtained.
[0066] The risk of the first management instruction in this specification is lower than that of the second management instruction. The first management instruction and the second management instruction can be distinguished based on the account data carried therein. If the account data carried in a management instruction matches the preset administrator account data (for example, the same means a match), the management instruction is determined to be the first management instruction; if the account data carried in a management instruction does not match the preset administrator account data, the management instruction is determined to be the second management instruction.
[0067] Optionally, the fields to be filled in the specified template are respectively used to fill in the version number of the standby program, the installation path of the standby program, and the parameter configuration of the standby program.
[0068] In a further optional embodiment of the present specification, in addition to the administrator, ordinary employees who do not have management authority can also manage the programs managed by the management end through the execution end. Now, how ordinary employees can manage the programs is described.
[0069] In this specification, when the execution end receives the second management instruction, it generates a second program management request and sends the second program management request to the management end. The second management instruction corresponds to the pending program, and the configuration process executed for the pending program is the pending configuration process. The second management instruction can be triggered by a user's click operation on the fourth control on the execution end interactive interface.
[0070] Afterwards, the execution end collects the data generated during the pending configuration process to obtain pending data. The pending data includes at least one of the following: the version number of the pending program, the installation path when installing the pending program, and the parameter configuration of the pending program. The execution end sends the pending data to the management end.
[0071] After receiving the pending data, the management end generates a pending management file according to the pending data and stores the pending management file.
[0072] After the execution end completes the management of the pending program, it starts to monitor the data generated during the operation of the pending program. If risks are detected in the data monitored within the specified time period, risk information is generated. Then, the risk information is sent to the management end.
[0073] If the management end receives risk information within a specified time period, it generates a deletion instruction and sends it to the execution end, so that the execution end deletes all data of the pending degree stored locally. In addition, the management end determines the pending management file as a risk file and isolates the risk file. Thereafter, if the pending management file is generated again, the similarity between the regenerated pending management file and the risk file is determined. If the similarity is greater than the preset similarity threshold, the regenerated pending management file is directly determined as a risk file without waiting for the risk information to be received, and a deletion instruction for the pending program corresponding to the regenerated pending management file is generated and sent to the execution end.
[0074] If no risk information on the pending program is received from the execution end within the specified time period, the pending management file is determined as a program management file, and the pending program is determined as an alternative program.
[0075] The risks in this specification may be risks caused by errors due to incompatibility between programs when the programs are running; in addition, the risks in this specification may also be risks caused by programs being hijacked or carrying viruses in the programs.
[0076] In a further optional embodiment of the present description, in order to avoid risks affecting the running of other programs in the execution end, after receiving the second program management request, the management end generates a container creation instruction, wherein the container creation instruction is used to create a specified container in the execution end. Then, the container generation instruction is sent to the execution end.
[0077] After receiving the container creation instruction, the execution end creates a specified container locally according to the instruction of the container creation instruction. The pending configuration is executed in the specified container, and data collection is performed when executing the pending configuration, wherein the collected data is the pending data. The pending data is sent to the management end.
[0078] In this embodiment, the management process and the running process of the pending program on the execution end are both executed in a specified container, which can effectively isolate the pending program from other programs and help avoid the spread of risks.
[0079] Based on the same idea, this specification further provides a first program management device, which is applied to an aggregation module, such as Figure 3 As shown, the first program management device includes one or more of the following modules:
[0080] The program management script determination module 300 is configured to: determine a program management script based on a program management file when receiving a first program management request from an execution end, wherein the program management file includes data collected for a specified configuration process for a specified program, and the program management script is used to: configure the specified program using the specified configuration process;
[0081] The first sending module 302 is configured to send the program management script to the execution end.
[0082] In an optional embodiment of the present specification, the management end locally stores a number of candidate scripts, and the candidate scripts correspond to the candidate project identifiers one by one. The program management script determination module 300 is specifically configured as follows: determining a designated project identifier according to the first program management request, wherein the designated project identifier is used to identify a set of designated programs to be configured in the execution end; and using the candidate project identifiers of the pre-stored candidate scripts, the candidate script corresponding to the candidate project identifier that matches the designated project identifier, as the program management script.
[0083] In an optional embodiment of the present specification, the management end locally stores a number of candidate files, and the candidate files correspond to the candidate project identifiers one by one. The program management script determination module 300 is specifically configured as follows: determining the specified project identifier according to the first program management request, wherein the specified project identifier is used to identify the set of specified programs to be configured in the execution end; using the candidate files corresponding to the candidate project identifiers that match the specified project identifier among the candidate project identifiers of each candidate file as program management files, and creating a program management script according to the program management files.
[0084] In an optional embodiment of the present specification, the program management file includes at least one of the following data: a version number of a specified program, an installation path when installing the specified program, and a parameter configuration of the specified program.
[0085] In an optional embodiment of the present specification, the first program management device also includes a program management file generation module, which is configured as follows: if a first management instruction is received, the program corresponding to the first management instruction is used as an alternative program, and the configuration process executed for the alternative program is used as a designated configuration process; and a program management file is generated based on the data collected during the designated configuration process.
[0086] In an optional embodiment of the present specification, the program management file generation module is specifically configured as follows: before generating the program management file according to the data collected during the specified configuration process, the method also includes: calling the specified template, wherein the specified template includes a number of fields to be filled in; generating the program management file according to the data collected during the specified configuration process, including: for each field to be filled in contained in the specified template, if data matching the field to be filled in is collected, the data is added to the field to be filled in to obtain the program management file.
[0087] In an optional embodiment of the present specification, the first program management device also includes a pending management file generation module, which is configured to: upon receiving a second program management request from the execution end, use the program corresponding to the second program management request as a pending program, and use the configuration process executed by the execution end for the pending program as a pending configuration process, wherein the second program management request is triggered by a second management instruction, and the risk of the second management instruction is higher than the risk of the first management instruction; receive data collected by the execution end during the execution of the pending configuration process as pending data; generate a pending management file based on the pending data; if no risk information on the pending program is received from the execution end within a specified time period, determine the pending management file as a program management file, and determine the pending program as an alternative program.
[0088] In an optional embodiment of the present specification, the pending data is data collected when the execution end executes the pending configuration in its local designated container. The pending management file generation module is specifically configured to: generate a container creation instruction, wherein the container creation instruction is used to create a designated container on the execution end; and send the container generation instruction to the execution end.
[0089] Based on the same idea, this specification further provides a second program management device, which is applied to the aggregation module, such as Figure 4 As shown, the second program management device includes one or more of the following modules:
[0090] A first program management request generating module 400, configured to generate a first program management request;
[0091] The second sending module 402 is configured to send the first program management request to the management end;
[0092] A first receiving module 404 is configured to receive a program management script from a management terminal;
[0093] The script execution module 406 is configured to execute the program management script to configure the specified program corresponding to the program management script locally on the execution end using a specified configuration process.
[0094] In an optional embodiment of the present specification, the first program management request generation module 400 is specifically configured as follows: determining a specified project identifier, wherein the specified project identifier is used to identify a set of specified programs to be configured in the execution end; adding the specified project identifier to a specified field of the pending management request to obtain a first program management request.
[0095] In an optional embodiment of the present specification, the second program management device also includes: a pending program management module, configured to: generate a second program management request if a second management instruction is received, wherein the second management instruction corresponds to the pending program, and the configuration process executed for the pending program is the pending configuration process; send the second program management request to the management end; send the data collected during the execution of the pending configuration process to the management end; if a risk for the pending program is detected within a specified time period, generate risk information; and send the risk information to the management end.
[0096] In an optional embodiment of the present specification, the pending program management module is specifically configured as follows: receiving a container creation instruction from the management end; creating a specified container locally according to the instructions of the container creation instruction; executing the pending configuration in the specified container, and performing data collection when executing the pending configuration, wherein the collected data is the pending data; and sending the pending data to the management end.
[0097] like Figure 5 As shown, an embodiment of the present application provides a data processing device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.
[0098] Memory 113, used for storing computer programs;
[0099] In one embodiment of the present application, the processor 111 is used to implement the program management method provided by any one of the aforementioned method embodiments when executing the program stored in the memory 113, including:
[0100] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the program management steps provided in any of the aforementioned method embodiments are implemented.
[0101] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0102] The above is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features applied herein.
Claims
1. A program management system, characterized in that: The system comprises: The execution end is configured to generate a first program management request; and send the first program management request to the management end; The management end is configured to, if receiving a first management instruction, use the program corresponding to the first management instruction as an alternative program, and use the configuration process executed for the alternative program as a designated configuration process, generate a program management file according to data collected during the designated configuration process, and determine a program management script based on the program management file when receiving a first program management request from the execution end, wherein the program management file contains data collected during the designated configuration process for the designated program in history, and the program management script is used to: configure the designated program using the designated configuration process; and send the program management script to the execution end; The execution end is further configured to receive a program management script from the management end; execute the program management script to configure a specified program corresponding to the program management script locally on the execution end using a specified configuration process; The management end is also configured to, upon receiving a second program management request from the execution end, treat the program corresponding to the second program management request as a pending program, and treat the configuration process executed by the execution end for the pending program as a pending configuration process, wherein the second program management request is triggered by a second management instruction, and the risk of the second management instruction is higher than the risk of the first management instruction; receive data collected by the execution end during the execution of the pending configuration process as pending data; generate a pending management file based on the pending data; and if no risk information on the pending program from the execution end is received within a specified time period, determine the pending management file as the program management file, and determine the pending program as an alternative program.
2. A program management method, characterized in that: The method is applied to a management end, and the method includes: If a first management instruction is received, taking a program corresponding to the first management instruction as a candidate program, and taking a configuration process executed for the candidate program as a designated configuration process; Generate a program management file based on the data collected during the specified configuration process; In the case of receiving a first program management request from the execution end, determining a program management script based on the program management file, wherein the program management file includes data collected for a specified configuration process for a specified program, and the program management script is used to: configure the specified program using the specified configuration process; Sending the program management script to the execution end; Among them, the method also includes: in the case of receiving a second program management request from the execution end, taking the program corresponding to the second program management request as a pending program, and taking the configuration process executed by the execution end for the pending program as a pending configuration process, the second program management request is triggered by a second management instruction, and the risk of the second management instruction is higher than the risk of the first management instruction; receiving data collected by the execution end during the execution of the pending configuration process as pending data; generating a pending management file based on the pending data; if no risk information about the pending program is received from the execution end within a specified time period, determining the pending management file as the program management file, and determining the pending program as an alternative program.
3. The method according to claim 2, characterized in that The management end locally stores a plurality of candidate scripts, and the candidate scripts correspond to the candidate project identifiers one by one. When receiving the first program management request from the execution end, the program management script is determined based on the program management file, including: determining a designated project identifier according to the first program management request, wherein the designated project identifier is used to identify a set of designated programs to be configured in the execution end; using the candidate script corresponding to the candidate project identifier matching the designated project identifier among the candidate project identifiers of the pre-stored candidate scripts as the program management script; or, The management end locally stores a number of alternative files, and the alternative files correspond one-to-one to the alternative project identifiers. When a first program management request is received from the execution end, a program management script is determined based on the program management file, including: determining a specified project identifier according to the first program management request, wherein the specified project identifier is used to identify a set of specified programs to be configured in the execution end; taking the alternative file corresponding to the alternative project identifier that matches the specified project identifier among the alternative project identifiers of each alternative file as the program management file, and creating a program management script based on the program management file.
4. The method according to claim 2, characterized in that: The program management file includes at least one of the following data: a version number of the specified program, an installation path when installing the specified program, and a parameter configuration of the specified program.
5. The method according to claim 2, characterized in that: Before generating a program management file according to the data collected during the specified configuration process, the method further includes: calling a specified template, wherein the specified template includes a plurality of fields to be filled in; A program management file is generated based on the data collected during the specified configuration process, including: for each field to be filled in contained in the specified template, if data matching the field to be filled in is collected, the data is added to the field to be filled in to obtain a program management file.
6. The method according to claim 2, characterized in that The pending data is data collected when the execution end executes the pending configuration in its local designated container, wherein, before receiving the data collected by the execution end during the pending configuration as the pending data, the method further includes: Generate a container creation instruction, wherein the container creation instruction is used to create a specified container on the execution end; The container generation instruction is sent to the execution end.
7. A program management method, characterized in that: The method is applied to the execution end, and the method includes: generating a first program management request; The first program management request is sent to the management end, wherein the management end is configured to, if receiving the first management instruction, take the program corresponding to the first management instruction as an alternative program, and take the configuration process executed for the alternative program as a designated configuration process, generate a program management file according to the data collected during the designated configuration process, and determine a program management script based on the program management file when receiving the first program management request from the execution end, wherein the program management file contains data collected from the designated configuration process for the designated program in history; the management end is further configured to, if receiving the second program management request from the execution end, take the program corresponding to the second program management request as a pending program, and take the configuration process executed by the execution end for the pending program as a pending configuration process, wherein the second program management request is triggered by a second management instruction, and the risk of the second management instruction is higher than the risk of the first management instruction; receive the data collected by the execution end during the execution of the pending configuration process as pending data; generate a pending management file according to the pending data; if no risk information for the pending program is received from the execution end within a specified time period, determine the pending management file as the program management file, and determine the pending program as an alternative program; Receiving a program management script from the management terminal; The program management script is executed to configure the designated program corresponding to the program management script locally on the execution end using a designated configuration process.
8. The method according to claim 7, characterized in that Generate a first program management request, including: Determine a designated project identifier, wherein the designated project identifier is used to identify a set of designated programs to be configured in the execution end; The designated project identifier is added to a designated field of the pending management request to obtain a first program management request.
9. The method according to claim 7, characterized in that: The data collected during the execution of the pending configuration is sent to the management end, including: Receiving a container creation instruction from the management end; Creating a specified container locally according to the instruction of the container creation instruction; Executing the pending configuration in the designated container, and performing data collection when executing the pending configuration, wherein the collected data is pending data; The pending data is sent to the management end.
10. A program management device, characterized in that: The device is applied to a management end, and the device includes: A program management script determination module is configured to: if a first management instruction is received, use the program corresponding to the first management instruction as an alternative program, and use the configuration process executed for the alternative program as a designated configuration process, generate a program management file according to the data collected during the designated configuration process, and when a first program management request is received from the execution end, determine a program management script based on the program management file, wherein the program management file contains the data collected during the designated configuration process for the designated program, and the program management script is used to: configure the designated program using the designated configuration process; A first sending module is configured to: send the program management script to the execution end; The program management script determination module is also configured to: upon receiving a second program management request from the execution end, use the program corresponding to the second program management request as a pending program, and use the configuration process executed by the execution end for the pending program as a pending configuration process, wherein the second program management request is triggered by a second management instruction, and the risk of the second management instruction is higher than the risk of the first management instruction; receive data collected by the execution end during the execution of the pending configuration process as pending data; generate a pending management file based on the pending data; if no risk information about the pending program from the execution end is received within a specified time period, determine the pending management file as the program management file, and determine the pending program as an alternative program.
11. A program management device, characterized in that: The device is applied to an execution end, and the device includes: A first program management request generating module configured to generate a first program management request; The second sending module is configured to send the first program management request to the management end, wherein the management end is configured to, if receiving the first management instruction, use the program corresponding to the first management instruction as an alternative program, and use the configuration process executed for the alternative program as a designated configuration process, generate a program management file based on the data collected during the designated configuration process, and when receiving the first program management request from the execution end, determine a program management script based on the program management file, wherein the program management file contains the data collected historically for the designated configuration process of the designated program; the management end is also configured to, when receiving the second program management request from the execution end In the case of a problem that the second program management request is triggered by a second management instruction, the program corresponding to the second program management request is used as a pending program, and the configuration process executed by the execution end for the pending program is used as a pending configuration process, wherein the second program management request is triggered by a second management instruction, and the risk of the second management instruction is higher than the risk of the first management instruction; receiving data collected by the execution end during the execution of the pending configuration process as pending data; generating a pending management file based on the pending data; if no risk information of the execution end for the pending program is received within a specified time period, determining the pending management file as the program management file, and determining the pending program as an alternative program; A first receiving module, configured to receive a program management script from the management terminal; The script execution module is configured to: execute the program management script to configure the specified program corresponding to the program management script locally on the execution end using a specified configuration process.
12. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the steps of the program management method described in any one of claims 2 to 6, or implementing the steps of the program management method described in any one of claims 7 to 9 when executing a program stored in a memory.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the program management method described in any one of claims 2 to 6 are implemented, or the steps of the program management method described in any one of claims 7 to 9 are implemented.
