Software deployment method, device and computer readable storage medium

By parsing software deployment instructions to generate deployment installation packages, software deployment is automatically completed, which solves the complex and error-prone problems of software deployment in the existing technology and improves efficiency and reliability.

CN112860277BActive Publication Date: 2024-10-18江苏云从曦和人工智能有限公司
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202110158406.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-04
Publication Date
2024-10-18
Estimated Expiration
2041-02-04

AI Technical Summary

Technical Problem

The software deployment process in the existing technology is complex, time-consuming and labor-intensive, requires the guidance of an architect, and is prone to configuration errors, especially in the customized development of application scenarios for different customers.

Method used

Obtain the software components to be deployed and their configuration information by parsing software deployment instructions, generate configuration files and deploy installation packages, and use the deployment installation packages to automatically complete software deployment, reducing manual configuration and debugging.

Benefits of technology

Significantly improves the efficiency and reliability of software deployment, reduces manual intervention, avoids configuration errors, and simplifies the software deployment process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112860277B_ABST
    Figure CN112860277B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of software technology, and specifically provides a software deployment method, device and computer-readable storage medium, aiming to solve the technical problem of how to efficiently and reliably perform software deployment. To this end, according to an embodiment of the present invention, the software components to be deployed and their configuration information can be obtained by parsing software deployment instructions, and then the configuration file of the software is generated according to the configuration information, and finally the deployment installation package of the software is generated according to the software package of each software component and the configuration file. When performing software deployment, as long as the deployment installation package is run on the server where the software needs to be deployed, the deployment and installation of the software on the server can be completed. In addition, when running the deployment installation package, each software component in the installation package will be configured and run accordingly according to the corresponding configuration information, without the need for delivery personnel to configure and debug one by one, thereby significantly improving the efficiency and reliability of software deployment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of software technology, and in particular to a software deployment method, device and computer-readable storage medium. Background Art

[0002] As software systems become more integrated, scalable, and highly available, their deployment becomes more and more complex. In particular, software systems that are customized for different customer scenarios require the guidance of software architects to complete software deployment because there is no unified software deployment method. Therefore, delivery personnel need to communicate with architects repeatedly, which greatly wastes software deployment time. In addition, during the software deployment process, delivery personnel must install and configure each software package in the software system one by one, which is not only time-consuming and labor-intensive, but also prone to configuration errors. Summary of the invention

[0003] In order to overcome the above-mentioned defects, the present invention is proposed to provide a software deployment method, apparatus and computer-readable storage medium that solve or at least partially solve the technical problem of how to efficiently and reliably deploy software.

[0004] In a first aspect, a software deployment method is provided, the method comprising:

[0005] In response to the received software deployment instruction, parsing the software deployment instruction to obtain the software components to be deployed and the configuration information of each of the software components;

[0006] Generate a software configuration file according to the configuration information of each software component;

[0007] Obtaining a software package for each of the software components;

[0008] A deployment installation package of the software is generated according to the software package of each software component and the configuration file, so that the deployment and installation of the software is completed by running the deployment installation package.

[0009] In a technical solution of the above-mentioned software deployment method, the software deployment instruction is generated based on information selected by the user by clicking and / or dragging on the visual interface, and the selected information includes one or more software components to be deployed and configuration information of each of the software components.

[0010] In a technical solution of the above software deployment method, after the step of "generating a deployment installation package of the software", the method further includes:

[0011] Generating a download path for the deployment installation package according to the storage location of the deployment installation package;

[0012] Obtaining a deployment scenario of the software according to a result of parsing the software deployment instruction;

[0013] According to the deployment scenario, the configuration file and the download path, the release information of the software is generated and displayed.

[0014] In a technical solution of the above software deployment method, the method further includes:

[0015] Receiving an installation package download request sent by a terminal device;

[0016] The corresponding deployment installation package is downloaded according to the download path selected in the installation package download request, and the deployment installation package is sent to the terminal device.

[0017] In a technical solution of the above software deployment method, the method further includes:

[0018] In response to the received deployment analysis instruction, parsing the deployment analysis instruction to obtain a new configuration file generated by the software after running the deployment installation package to complete the deployment and installation of the software;

[0019] The finally deployed software components and the configuration information of each of the software components stored in the new configuration file are obtained and displayed, so as to perform information comparison according to the finally deployed software components and their configuration information, and the software components to be deployed and their configuration information.

[0020] In a technical solution of the above software deployment method, the configuration information includes the installation location and / or installation sequence and / or configuration parameters of the software components.

[0021] In a second aspect, a software deployment device is provided, the device comprising:

[0022] A module for acquiring information to be deployed, configured to parse the received software deployment instruction in response to the received software deployment instruction to acquire the software components to be deployed and the configuration information of each of the software components;

[0023] A configuration file generating module, configured to generate a configuration file of the software according to the configuration information of each of the software components;

[0024] A software package acquisition module, configured to acquire the software package of each of the software components;

[0025] The deployment installation package generation module is configured to generate a deployment installation package of the software according to the software package of each software component and the configuration file, so as to complete the deployment and installation of the software by running the deployment installation package.

[0026] In a technical solution of the above-mentioned software deployment device, the software deployment instruction is generated based on information selected by the user by clicking and / or dragging on the visual interface, and the selected information includes one or more software components to be deployed and configuration information of each of the software components.

[0027] In a technical solution of the above software deployment device, the device further includes a software publishing module, and the software publishing module is configured to perform the following operations:

[0028] Generating a download path for the deployment installation package according to the storage location of the deployment installation package;

[0029] Obtaining a deployment scenario of the software according to a result of parsing the software deployment instruction;

[0030] According to the deployment scenario, the configuration file and the download path, the release information of the software is generated and displayed.

[0031] In a technical solution of the above software deployment device, the device further includes a terminal interaction module, and the terminal interaction module is configured to perform the following operations:

[0032] Receiving an installation package download request sent by a terminal device;

[0033] The corresponding deployment installation package is downloaded according to the download path selected in the installation package download request, and the deployment installation package is sent to the terminal device.

[0034] In a technical solution of the above software deployment device, the device further includes:

[0035] a configuration file acquisition module, configured to parse the deployment analysis instruction in response to the received deployment analysis instruction to obtain a new configuration file generated by the software after the deployment installation package is run to complete the deployment and installation of the software;

[0036] An information display and comparison module is configured to obtain and display the final deployed software components and the configuration information of each of the software components stored in the new configuration file, so as to perform information comparison according to the final deployed software components and their configuration information, and the software components to be deployed and their configuration information.

[0037] In a technical solution of the above software deployment device, the configuration information includes the installation location and / or installation sequence and / or configuration parameters of the software components.

[0038] In a technical solution of the above software deployment device, the device further includes:

[0039] The software package database is configured to store software packages of a plurality of preset software components and attribute information of each software package, wherein the attribute information of each software package includes the name, storage path and information summary of each software package.

[0040] In a third aspect, a software deployment device is provided, comprising a processor and a storage device, wherein the storage device is suitable for storing multiple program codes, and the program codes are suitable for being loaded and run by the processor to execute any one of the software deployment methods described in the technical solutions of the above-mentioned software deployment methods.

[0041] In a fourth aspect, a computer-readable storage medium is provided, in which a plurality of program codes are stored, wherein the program codes are suitable for being loaded and run by the processor to execute the software deployment method described in any one of the technical solutions of the above-mentioned software deployment method.

[0042] The above one or more technical solutions of the present invention have at least one or more of the following beneficial effects:

[0043] In the technical solution of the present invention, the software components to be deployed and the corresponding configuration information can be packaged into a deployment installation package, and the deployment and installation of the software on the server can be completed by running the deployment installation package on the server. Specifically, according to the software deployment method of the embodiment of the present invention, after receiving the software deployment instruction, the software components to be deployed and the configuration information of each software component can be obtained by parsing the instruction (this information can be pre-set by the architect), and then the configuration file of the software is generated according to the configuration information, and finally the deployment installation package of the software is generated according to the software package of each software component and the configuration file. When running the deployment installation package, each software component in the installation package will be configured and run accordingly according to the corresponding configuration information, and there is no need to deploy and install under the guidance of the architect, nor is there a need for the delivery personnel to install and configure each software component one by one, thereby significantly improving the efficiency and reliability of software deployment. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The specific embodiments of the present invention are described below with reference to the accompanying drawings, in which:

[0045] Figure 1 is a flowchart of main steps of a software deployment method according to an embodiment of the present invention;

[0046] Figure 2 is a flowchart of main steps of a software deployment method according to another embodiment of the present invention;

[0047] Figure 3 It is a main structural block diagram of a software deployment device according to an embodiment of the present invention.

[0048] List of reference numerals:

[0049] 11: Module for acquiring information to be deployed; 12: Module for generating configuration files; 13: Module for acquiring software packages; 14: Module for generating deployment installation packages. DETAILED DESCRIPTION

[0050] Some embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0051] In the description of the present invention, "module" and "processor" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, and memories, and may also include software parts, such as program codes, or a combination of software and hardware. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor, or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware, or a combination of the two. Non-temporary computer-readable storage media include any suitable medium that can store program codes, such as a magnetic disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, and the like. The term "A and / or B" means all possible combinations of A and B, such as only A, only B, or A and B. The term "at least one A or B" or "at least one of A and B" has a similar meaning to "A and / or B", and may include only A, only B, or A and B. The singular terms "one" and "the" may also include plural forms.

[0052] Here we first explain some terms involved in the present invention.

[0053] Software components refer to multiple components formed by modularizing the software according to the functions implemented by the software.

[0054] A software package of a software component refers to a group of computer programs that can accomplish the functions of the software component.

[0055] The configuration file of the software refers to a computer file that can set parameters and initial settings for the computer program of the software. The file contains the information required to successfully run / operate the software.

[0056] At present, when the traditional software deployment method customizes and develops software systems for different customer application scenarios, it is necessary to rely on software architects to complete the deployment of the software, and during the deployment process, the delivery personnel must install and configure each software package in the software system one by one, which is not only time-consuming and labor-intensive, but also very prone to configuration errors. In an embodiment of the present invention, the software components to be deployed and the corresponding configuration information can be packaged into a deployment installation package, and the deployment and installation of the software on the server can be completed by running the deployment installation package on the server. Specifically, according to the software deployment method of the embodiment of the present invention, after receiving the software deployment instruction, the software components to be deployed and the configuration information of each software component can be obtained by parsing the instruction, and then the configuration file of the software is generated according to the configuration information, and finally the deployment installation package of the software is generated according to the software package of each software component and the configuration file. When running the deployment installation package, each software component in the installation package will be configured and run accordingly according to the corresponding configuration information, without the need for the delivery personnel to configure and debug one by one, thereby significantly improving the efficiency and reliability of software deployment. Furthermore, even if there is some configuration information that needs to be adjusted according to the actual server working conditions, etc. (for example, the IP address of the server), only these configuration information can be adjusted separately, without adjusting other configuration information one by one.

[0057] In an application scenario of the present invention, a supplier providing face recognition services has developed a set of face recognition systems for different customers such as banks and shopping malls. After the development is completed, the architect can enter the software deployment instruction a for the face recognition system developed for the bank (hereinafter referred to as system A) and the software deployment instruction b for the face recognition system developed for the shopping mall (hereinafter referred to as system B) on the software deployment platform pre-installed with the software deployment device according to an embodiment of the present invention. The above instructions all contain the software components to be deployed and the corresponding configuration information. After receiving the software deployment instruction a, the software deployment device generates a deployment installation package for system A, and after receiving the software deployment instruction b, it generates a deployment installation package for system B. The delivery personnel can download the deployment installation package of system A from the software deployment platform, and then run this deployment installation package on the bank's server to complete the deployment and installation of system A.

[0058] See attached Figure 1 , Figure 1 FIG. 1 is a flow chart showing the main steps of a software deployment method according to an embodiment of the present invention. Figure 1 As shown, the software deployment method in the embodiment of the present invention mainly includes the following steps:

[0059] Step S101: In response to a received software deployment instruction, the software deployment instruction is parsed to obtain software components to be deployed and configuration information of each software component.

[0060] The software deployment instruction refers to instruction information including the software components to be deployed and the configuration information of each software component. The instruction information may be directly generated after receiving the software components to be deployed and the configuration information of each software component, or may be directly entered by the user through a human-computer interaction device.

[0061] In one implementation of the embodiment of the present invention, the software deployment instruction may be generated based on information selected by a user by clicking and / or dragging on a visual interface, and the information selected by the user may include one or more software components to be deployed and configuration information of each software component. That is, in this implementation, the software components to be deployed and the configuration information of the software components are selected by a user such as an architect. After receiving the above information, the software deployment instruction may be automatically generated based on the above information.

[0062] Clicking refers to clicking on the information displayed on the visual interface.

[0063] Dragging refers to dragging the information displayed on the visual interface, that is, moving the information from one location to another by dragging the information.

[0064] It should be noted that in the embodiment of the present invention, multiple preset software components are pre-stored and the basic information of these software components, such as names, can be displayed on a visual interface. Users, such as architects, can view each software component from the visual interface to select the software component to be deployed and set configuration information for each software component.

[0065] In the embodiment of the present invention, the configuration information of the software component includes, but is not limited to: the installation location and / or installation sequence and / or configuration parameters of the software component.

[0066] The installation location refers to the node server on which the software component is installed when deploying software on a server cluster (including multiple node servers). For example, the server cluster includes node server 1 and node server 2, and the software components to be deployed include software components A, B, and C. Then the installation location of software component A can be node server 1, and the installation locations of software components B and C can be node server 2.

[0067] The installation order refers to the order in which each software component in the deployment installation package is installed on the server when the deployment installation package is run on the server. It should be noted that, in one embodiment, the configuration information may also include the startup order of the software components, which refers to the startup order of each software component when the software is run and used after the software deployment is completed. In this embodiment, the startup order of the software components may be the same as or different from the installation order.

[0068] Configuration parameters are the parameters required to successfully install / run a software component.

[0069] It should be noted that the type and specific content of the configuration parameters of each software component can be flexibly set by users such as architects according to actual needs, and the embodiment of the present invention does not specifically limit the type and specific content of the configuration parameters.

[0070] Step S102: Generate a software configuration file according to the configuration information of each software component.

[0071] In the embodiment of the present invention, a conventional configuration file generation method in the field of computer technology can be used to generate a configuration file of the software according to the configuration information of each software component. For the sake of brevity, the specific steps of the configuration file generation method will not be described in detail here.

[0072] Step S103: Obtain the software package of each software component.

[0073] In the embodiment of the present invention, a software package database may pre-store software packages of a plurality of preset software components and attribute information of each software package, wherein the attribute information of each software package includes the name, storage path and information summary of each software package.

[0074] The storage path refers to the storage path of the software package in the software package database.

[0075] The message digest refers to the message digest of the software package obtained by using a message digest algorithm. In one embodiment, the message digest of the software package can be an MD5 value obtained by using an MD5 message digest algorithm.

[0076] It should be noted that, in the embodiments of the present invention, conventional software package packaging methods in the field of computer technology can be used to package computer programs that can implement the functions of each software component to form a software package for each software component. Conventional software package packaging methods include but are not limited to: packaging methods based on Parcel packaging tools for Web applications. For the sake of brevity, the above software package packaging methods are not described in detail here.

[0077] Step S104: Generate a software deployment installation package according to the software package and configuration file of each software component, so as to complete the deployment and installation of the software by running the deployment installation package.

[0078] In one implementation of the present invention, the YAML (Yet Another Markup Language) language can be used to generate a software configuration file (inventory.yml), and a tar format installation package (installer), i.e., a deployment installation package, can be generated according to the software package of each software component and the software configuration file.

[0079] When running the deployment installation package, each software component in the installation package will be configured and run accordingly according to its corresponding configuration information. There is no need to deploy and install under the guidance of an architect, nor is there a need for delivery personnel to install and configure each software component one by one, which significantly improves the efficiency and reliability of software deployment.

[0080] After obtaining the deployment installation package of each software through the above steps S101 to S104, the deployment installation packages can be published to facilitate the delivery engineer to select and download the corresponding deployment installation package according to actual needs, and then carry the deployment installation package to deploy the corresponding software for the customer. Specifically, in one implementation of the embodiment of the present invention, the following steps S105 to S108 can also be included after the above step S104:

[0081] Step S105: Generate a download path for the deployment installation package according to the storage location of the deployment installation package. It should be noted that in this embodiment, a conventional download path generation method in the field of computer technology may be adopted, which will not be described here for simplicity.

[0082] Step S106: According to the result of parsing the software deployment instruction, the deployment scenario of the software is obtained. The result of parsing the software deployment instruction refers to the parsing result obtained when parsing the software deployment instruction in step S101, and the parsing result includes not only the software components to be deployed and the configuration information of each software component, but also the deployment scenario of the software. The deployment scenario refers to the application scenario of the software. For example, the deployment scenario may be face recognition of people entering and leaving a building. In this embodiment, the deployment scenario of the software includes but is not limited to the name and brief introduction information of the deployment scenario. For example, the name of the deployment scenario may be building monitoring, and the brief introduction information may be face recognition of people entering and leaving a building to achieve building safety monitoring.

[0083] Step S107: Generate and display software release information according to the deployment scenario, configuration file and download path.

[0084] Based on the release information of each software, the delivery personnel can quickly understand from the release information whether the corresponding software is what they need to deploy. After selecting the software, they can download the corresponding deployment installation package from the download path provided in the release information.

[0085] When the delivery personnel use a terminal device (including but not limited to: a computer device) to download a deployment installation package, the deployment software method according to an embodiment of the present invention can receive an installation package download request sent by the terminal device, download the corresponding deployment installation package according to the download path selected in the installation package download request, and send the deployment installation package to the terminal device.

[0086] It should be noted that the embodiment of the present invention can adopt a conventional data download method in the field of computer technology to download the deployment installation package according to the download path. For the sake of brevity, the download process of the deployment installation package will not be described in detail here.

[0087] As can be seen from the above, during the software deployment process, some configuration information needs to be adjusted according to the actual deployment conditions, so after the software deployment is completed, the configuration file of the software is different from the configuration file in the deployment installation package, that is, after the software is deployed, the software generates a new configuration file. At the same time, as the deployment scenario requirements change, the customer may change some configuration information of the software, or even delete some software components (for example: delete the software component that implements the face recognition function or the voice broadcast function). After the above configuration information or software components are changed, the configuration file of the software will inevitably be updated, which is also equivalent to the software generating a new configuration file. In order to clearly understand what changes have occurred in the deployment scenario, so as to analyze whether the software components used when generating the deployment installation package are reasonable based on these change information, whether the configuration information set for each software component is reasonable, etc., the new configuration file generated after the software deployment is completed can be obtained, and by parsing this configuration file, the software components and the configuration information of each software component are obtained, and this information is compared with the information used when generating the deployment installation package, so that it can be intuitively understood what changes have occurred in the deployment scenario. Specifically, in one implementation of an embodiment of the present invention, the software information comparison can be performed according to the following steps 11-12:

[0088] Step 11: In response to the received deployment analysis instruction, the deployment analysis instruction is parsed to obtain a new configuration file generated by the software after the deployment and installation of the software is completed by running the deployment installation package.

[0089] The software deployment instruction refers to the instruction information of the new configuration file generated by the software after the deployment installation package is run to complete the deployment and installation of the software. The instruction information can be directly input by a user such as an architect through a human-computer interaction device.

[0090] Step 12: Obtain and display the final deployed software components and the configuration information of each software component stored in the new configuration file, so as to perform information comparison based on the final deployed software components and their configuration information, and the software components to be deployed and their configuration information (the software components and their configuration information used when generating the deployment installation package).

[0091] The following is combined with Figure 2 , which specifically describes the complete deployment process of generating, publishing, and downloading the deployment installation package. Figure 2 As shown, a software deployment method according to another embodiment of the present invention may include the following steps S201 to S209.

[0092] Step S201: In response to the received software deployment instruction, the software deployment instruction is parsed to obtain the software components to be deployed and the configuration information of each software component. Step S202: According to the configuration information of each software component, a configuration file of the software is generated. Step S203: The software package of each software component is obtained. Step S204: According to the software package and the configuration file of each software component, a deployment installation package of the software is generated. Step S205: According to the storage location of the deployment installation package, a download path of the deployment installation package is generated. Step S206: According to the result of parsing the software deployment instruction, the deployment scenario of the software is obtained. Step S207: According to the deployment scenario, the configuration file and the download path, the release information of the software is generated and displayed. Step S208: The installation package download request sent by the terminal device is received. Step S209: According to the download path selected in the installation package download request, the corresponding deployment installation package is downloaded, and the deployment installation package is sent to the terminal device. Finally, the delivery personnel runs the deployment installation package stored in the terminal device on the user server, that is, the software can be deployed on the user server. The meanings of the terms in the above steps are the same as those in the aforementioned software deployment method embodiment, and are not repeated here for the sake of brevity.

[0093] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effects of the present invention, different steps do not have to be performed in such an order. They can be performed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present invention.

[0094] Furthermore, the present invention also provides a software deployment device.

[0095] See attached Figure 3 , Figure 3 FIG. 1 is a main structural block diagram of a software deployment device according to an embodiment of the present invention. Figure 3As shown, the software deployment device in the embodiment of the present invention mainly includes a to-be-deployed information acquisition module 11, a configuration file generation module 12, a software package acquisition module 13 and a deployment installation package generation module 14. In some embodiments, one or more of the to-be-deployed information acquisition module 11, the configuration file generation module 12, the software package acquisition module 13 and the deployment installation package generation module 14 can be combined into one module. In some embodiments, the to-be-deployed information acquisition module 11 can be configured to parse the software deployment instruction in response to the received software deployment instruction to obtain the software components to be deployed and the configuration information of each software component; the configuration file generation module 12 can be configured to generate a configuration file of the software according to the configuration information of each software component; the software package acquisition module 13 can be configured to obtain the software package of each software component; the deployment installation package generation module 14 can be configured to generate a deployment installation package of the software according to the software package and configuration file of each software component, so as to complete the deployment and installation of the software by running the deployment installation package. Among them, the configuration information includes the installation location and / or installation order and / or configuration parameters of the software components. In one embodiment, the description of the specific implementation function can be referred to the description of steps S101-step S104.

[0096] In one embodiment, the software deployment instruction may be generated based on information selected by the user on the visual interface by clicking and / or dragging, wherein the selected information includes one or more software components to be deployed and configuration information of each software component. In one embodiment, the description of the specific implementation function may refer to step S101.

[0097] In one embodiment, Figure 3 The software deployment device shown may also include a software publishing module. In this embodiment, the software publishing module may be configured to perform the following operations: generate a download path for the deployment installation package according to the storage location of the deployment installation package; obtain the deployment scenario of the software according to the result of parsing the software deployment instruction; generate and display the software publishing information according to the deployment scenario, configuration file and download path. In one embodiment, the description of the specific implementation function can be found in step S105-step S107.

[0098] In one embodiment, Figure 3 The software deployment device shown may also include a terminal interaction module. In this embodiment, the terminal interaction module may be configured to perform the following operations: receiving an installation package download request sent by a terminal device; downloading a corresponding deployment installation package according to a download path selected in the installation package download request, and sending the deployment installation package to the terminal device. In one embodiment, the description of the specific implementation function may refer to step S107.

[0099] In one embodiment, Figure 3 The software deployment device shown may also include a configuration file acquisition module and an information display comparison module. In this embodiment, the configuration file acquisition module may be configured to respond to the received software deployment instruction and parse the software deployment instruction to obtain the software components to be deployed and the configuration information of each software component; the information display comparison module may be configured to obtain and display the final deployed software components and the configuration information of each software component stored in the new configuration file, so as to perform information comparison based on the final deployed software components and their configuration information, and the software components to be deployed and their configuration information. In one embodiment, the description of the specific implementation function can be found in step 11-step 12.

[0100] In one embodiment, Figure 3 The software deployment device shown may also include a software package database. In this embodiment, the software package database may be configured to store software packages of multiple preset software components and attribute information of each software package, wherein the attribute information of each software package includes the name, storage path and information summary of each software package. In one embodiment, the description of the specific implementation function may refer to step S103.

[0101] The software deployment device is used to execute Figure 1-2 The software deployment method embodiment shown in the figure has similar technical principles, technical problems solved and technical effects produced. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process and related instructions of the software deployment device can refer to the contents described in the embodiment of the software deployment method, which will not be repeated here.

[0102] It is understood by those skilled in the art that the present invention implements all or part of the processes in the method of the above embodiment, and can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of each of the above method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium that can carry the computer program code. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0103] Furthermore, the present invention also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present invention, the computer-readable storage medium can be configured to store a program for executing the software deployment method of the above method embodiment, and the program can be loaded and run by the processor to implement the above software deployment method. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The computer-readable storage medium can be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present invention is a non-temporary computer-readable storage medium.

[0104] Furthermore, the present invention also provides a software deployment device. In an embodiment of a control device according to the present invention, the control device includes a processor and a storage device, the storage device can be configured to store a program for executing the software deployment method of the above method embodiment, and the processor can be configured to execute the program in the storage device, which includes but is not limited to the program for executing the software deployment method of the above method embodiment. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The software deployment device can be a deployment device formed by various electronic devices.

[0105] Further, it should be understood that since the setting of each module is only for illustrating the functional units of the system of the present invention, the physical devices corresponding to these modules can be the processor itself, or a part of the software in the processor, a part of the hardware, or a part of the combination of software and hardware. Therefore, the number of each module in the figure is only schematic.

[0106] Those skilled in the art will appreciate that the modules in the system may be adaptively split or merged. Such splitting or merging of specific modules will not cause the technical solution to deviate from the principle of the present invention, and therefore, the technical solutions after splitting or merging will fall within the protection scope of the present invention.

[0107] So far, the technical solution of the present invention has been described in conjunction with an embodiment shown in the accompanying drawings, but it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims

1. A software deployment method, characterized in that: The method comprises: In response to the received software deployment instruction, the software deployment instruction is parsed to obtain the software components to be deployed and the configuration information of each of the software components; the software components are multiple components formed by modularizing the software according to the functions implemented by the software; Generate a software configuration file according to the configuration information of each software component; Obtaining a software package for each of the software components; Generate a deployment installation package of the software according to the software package of each software component and the configuration file, so as to complete the deployment and installation of the software by running the deployment installation package; when running the deployment installation package, each software component is configured and operated accordingly according to its corresponding configuration information; in, The software deployment instruction is generated according to information selected by a user on a visual interface by clicking and / or dragging, wherein the selected information includes one or more software components to be deployed and configuration information of each of the software components; The configuration information includes the installation location and / or installation order and / or configuration parameters of the software component; the installation location indicates the node server in the server cluster where the software component is installed when the software is deployed on the server cluster, and the installation order indicates the installation order of each software component included in the deployment installation on the server when the deployment installation package is run on the server.

2. The software deployment method according to claim 1, characterized in that: After the step of "generating a deployment installation package for the software", the method further includes: Generating a download path for the deployment installation package according to the storage location of the deployment installation package; Obtaining a deployment scenario of the software according to a result of parsing the software deployment instruction; According to the deployment scenario, the configuration file and the download path, the release information of the software is generated and displayed.

3. The software deployment method according to claim 2, characterized in that: The method further comprises: Receiving an installation package download request sent by a terminal device; The corresponding deployment installation package is downloaded according to the download path selected in the installation package download request, and the deployment installation package is sent to the terminal device.

4. The software deployment method according to any one of claims 1 to 3, characterized in that: The method further comprises: In response to the received deployment analysis instruction, parsing the deployment analysis instruction to obtain a new configuration file generated by the software after running the deployment installation package to complete the deployment and installation of the software; The finally deployed software components and the configuration information of each of the software components stored in the new configuration file are obtained and displayed, so as to perform information comparison according to the finally deployed software components and their configuration information, and the software components to be deployed and their configuration information.

5. A software deployment device, characterized in that: The device comprises: A module for acquiring information to be deployed, which is configured to parse the software deployment instruction in response to the received software deployment instruction to obtain the software components to be deployed and the configuration information of each of the software components; the software components are multiple components formed by modularizing the software according to the functions implemented by the software; A configuration file generating module, configured to generate a configuration file of the software according to the configuration information of each of the software components; A software package acquisition module, configured to acquire the software package of each of the software components; A deployment installation package generation module, which is configured to generate a deployment installation package of the software according to the software package of each software component and the configuration file, so as to complete the deployment and installation of the software by running the deployment installation package; when running the deployment installation package, each software component is configured and operated accordingly according to its corresponding configuration information; in, The software deployment instruction is generated according to information selected by a user on a visual interface by clicking and / or dragging, wherein the selected information includes one or more software components to be deployed and configuration information of each of the software components; The configuration information includes the installation location and / or installation order and / or configuration parameters of the software component; the installation location indicates the node server in the server cluster where the software component is installed when the software is deployed on the server cluster, and the installation order indicates the installation order of each software component included in the deployment installation on the server when the deployment installation package is run on the server.

6. The software deployment device according to claim 5, characterized in that: The apparatus further comprises a software publishing module, wherein the software publishing module is configured to perform the following operations: Generating a download path for the deployment installation package according to the storage location of the deployment installation package; Obtaining a deployment scenario of the software according to a result of parsing the software deployment instruction; According to the deployment scenario, the configuration file and the download path, the release information of the software is generated and displayed.

7. The software deployment device according to claim 6, characterized in that: The device further includes a terminal interaction module, and the terminal interaction module is configured to perform the following operations: Receiving an installation package download request sent by a terminal device; The corresponding deployment installation package is downloaded according to the download path selected in the installation package download request, and the deployment installation package is sent to the terminal device.

8. The software deployment device according to any one of claims 5 to 7, characterized in that: The device also includes: a configuration file acquisition module, configured to parse the deployment analysis instruction in response to the received deployment analysis instruction to obtain a new configuration file generated by the software after the deployment installation package is run to complete the deployment and installation of the software; An information display and comparison module is configured to obtain and display the final deployed software components and the configuration information of each of the software components stored in the new configuration file, so as to perform information comparison according to the final deployed software components and their configuration information, and the software components to be deployed and their configuration information.

9. The software deployment device according to any one of claims 5 to 7, characterized in that: The device also includes: The software package database is configured to store software packages of a plurality of preset software components and attribute information of each software package, wherein the attribute information of each software package includes the name, storage path and information summary of each software package.

10. A software deployment device, comprising a processor and a storage device, wherein the storage device is suitable for storing a plurality of program codes, characterized in that: The program code is suitable for being loaded and run by the processor to execute the software deployment method according to any one of claims 1 to 4.

11. A computer-readable storage medium storing a plurality of program codes, characterized in that: The program code is suitable for being loaded and run by a processor to execute the software deployment method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Methods and devices for integrating and installing software

    CN102073488A

  • Method and system for installation and deployment of integrated software based on province, city and county

    CN103019732A

  • Software deploying method, deploying server, computer to be deployed and system

    CN103577235A

  • Online software payment method, online shopping platform and payment system

    CN108334366A

  • Software packaging method

    CN110727440A