[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109542462B - System environment deployment method, storage medium and server - Google Patents

System environment deployment method, storage medium and server Download PDF

Info

Publication number
CN109542462B
CN109542462B CN201811207381.5A CN201811207381A CN109542462B CN 109542462 B CN109542462 B CN 109542462B CN 201811207381 A CN201811207381 A CN 201811207381A CN 109542462 B CN109542462 B CN 109542462B
Authority
CN
China
Prior art keywords
deployment
file
package
target
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811207381.5A
Other languages
Chinese (zh)
Other versions
CN109542462A (en
Inventor
谭莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811207381.5A priority Critical patent/CN109542462B/en
Publication of CN109542462A publication Critical patent/CN109542462A/en
Application granted granted Critical
Publication of CN109542462B publication Critical patent/CN109542462B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a system environment deployment method, a storage medium and a server, comprising the following steps: acquiring a deployment scene and a target execution path of a target deployment server; searching a deployment strategy corresponding to the deployment scene, wherein the deployment strategy comprises a file package identifier for deploying a file package; if an environment deployment instruction is detected, searching a file storage path for deploying the file package in a preset identification path comparison table according to the file package identification; and uploading the deployment file package to the target deployment server to execute system environment deployment according to the deployment strategy, the file storage path and the target execution path of the target deployment server. The invention can realize one-key deployment, save manpower and improve the deployment efficiency of the system environment.

Description

System environment deployment method, storage medium and server
Technical Field
The invention relates to the technical field of software development, in particular to a system environment deployment method, a storage medium and a server.
Background
In a software project development process, a developer needs to first perform environment deployment. When there are multiple subsystems, a developer usually needs to perform environment deployment, configure and maintain multiple application environments for each subsystem. In the prior art, environment deployment depends on technical and skilled developers to build and maintain application environments, so that manpower and time are consumed, and deployment efficiency is not high.
Disclosure of Invention
The embodiment of the invention provides a system environment deployment method, a storage medium and a server, and aims to solve the problems that in the prior art, environment deployment depends on a skilled developer to build and maintain an application environment, manpower and time are consumed, and deployment efficiency is low.
A first aspect of an embodiment of the present invention provides a system environment deployment method, including:
acquiring a deployment scene and a target execution path of a target deployment server;
searching a deployment strategy corresponding to the deployment scene, wherein the deployment strategy comprises a file package identifier for deploying a file package;
if an environment deployment instruction is detected, searching a file storage path for deploying the file package in a preset identification path comparison table according to the file package identification;
and uploading the deployment file package to the target deployment server to execute system environment deployment according to the deployment strategy, the file storage path and the target execution path of the target deployment server.
A second aspect of an embodiment of the present invention provides a server, including a memory and a processor, where the memory stores a computer program operable on the processor, and the processor executes the computer program to implement the following steps:
acquiring a deployment scene and a target execution path of a target deployment server;
searching a deployment strategy corresponding to the deployment scene, wherein the deployment strategy comprises a file package identifier of a deployment file package;
if an environment deployment instruction is detected, searching a file storage path for deploying the file package in a preset identification path comparison table according to the file package identification;
and uploading the deployment file package to the target deployment server to execute system environment deployment according to the deployment strategy, the file storage path and the target execution path of the target deployment server.
A third aspect of embodiments of the present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of:
acquiring a deployment scene and a target execution path of a target deployment server;
searching a deployment strategy corresponding to the deployment scene, wherein the deployment strategy comprises a file package identifier for deploying a file package;
if an environment deployment instruction is detected, searching a file storage path for deploying the file package in a preset identification path comparison table according to the file package identification;
and uploading the deployment file package to the target deployment server to execute system environment deployment according to the deployment strategy, the file storage path and the target execution path of the target deployment server.
In the embodiment of the invention, a deployment strategy corresponding to a deployment scene is searched by acquiring the deployment scene and a target execution path of a target deployment server, wherein the deployment strategy comprises a file package identifier of a deployment file package, if an environment deployment instruction is detected, a file storage path of the deployment file package is searched in a preset identifier path comparison table according to the file package identifier, and then the deployment file package is automatically uploaded to the target deployment server to execute system environment deployment according to the deployment strategy, the file storage path and the target execution path of the target deployment server, the scheme establishes the corresponding relation between the deployment scene and the deployment strategy, and a user can realize one-key deployment only by selecting the deployment scene and the target execution path to be deployed, so that the labor can be saved, and a plurality of system environments can be rapidly deployed in batch, and the efficiency of system environment deployment is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the embodiments or the prior art description will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings may be obtained according to these drawings without inventive labor.
FIG. 1 is a flowchart of an implementation of a system environment deployment method provided by an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a specific implementation of the system environment deployment method S104 according to an embodiment of the present invention;
FIG. 3 is a flowchart of a specific implementation of the system environment deployment space detection provided by the embodiment of the present invention;
FIG. 4 is a flowchart of an implementation of a system environment deployment method including deployment policy update according to an embodiment of the present invention;
FIG. 5 is a block diagram of a system environment deployment apparatus according to an embodiment of the present invention;
FIG. 6 is a block diagram of a system environment deployment apparatus according to another embodiment of the present invention;
fig. 7 is a schematic diagram of a server provided in an embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 shows an implementation flow of a system environment deployment method provided by an embodiment of the present invention, where the method flow includes steps S101 to S104. The specific realization principle of each step is as follows:
s101: and acquiring a deployment scene and a target execution path of the target deployment server.
In the embodiment of the present invention, the deployment scenario refers to an application scenario of a system environment, such as a game system, a payment system, or an OA management system, and the deployment scenario includes that a deployment user deploys the system environment for the target deployment server on a deployment server. The target deployment server refers to a server to be deployed in the system environment, and the target execution path is used for indicating a path of a position where the system environment is deployed on the target deployment server. The target execution path may be determined according to an ID of the target deployment server, for example, a user selects a deployment scenario on an interactive interface of the deployment server and inputs the ID of the target deployment server, and the target deployment server determines the target execution path of the target deployment server according to the ID.
S102: and searching a deployment strategy corresponding to the deployment scene, wherein the deployment strategy comprises a file package identifier for deploying a file package.
Specifically, the deployment policy includes a deployment package identifier corresponding to the deployment scenario, and further includes an execution sequence of the deployment package. And arranging the deployment file packet identifications corresponding to the deployment strategy according to the execution sequence. The deployment file package identification is used for uniquely identifying a deployment file package which is used for deploying files, codes and compression packages of the system environment.
Multiple deployment scenes are preset in the deployment server, and different deployment scenes correspond to default deployment strategies, namely the deployment scenes correspond to the deployment strategies one by one. In the embodiment of the invention, a scene strategy comparison table is established, and the scene strategy comparison table comprises the corresponding relation between the scene identifier of the deployment scene and the strategy identifier of the deployment strategy. The only corresponding policy identifier can be found according to the scene identifier, and the scene identifiers corresponding to the policy identifier may be more than one, that is, the deployment scene only corresponds to one deployment policy, and the deployment policies corresponding to different deployment scenes may be the same or different. Optionally, because the performance of the target deployment server is different and the operable system environments are also different, in this embodiment, the same deployment scenario may correspond to more than one deployment policy, and at this time, after the deployment scenario selected by the user is obtained, a plurality of deployment policies are displayed for the user to select, a deployment policy selection instruction of the user is detected, and the deployment policy corresponding to the deployment scenario on the target deployment server is determined according to the deployment policy selection instruction.
Optionally, in the embodiment of the present invention, the corresponding relationship between the deployment scenario and the deployment policy may be user-defined, for example, a user interaction interface is provided on the deployment server, a plurality of deployment package components are displayed on the user interaction interface, a user defines the deployment scenario on the user interaction interface, and places the selected deployment package into the user-defined deployment scenario frame in a dragging manner.
Optionally, in the embodiment of the present invention, the deployment package includes a plurality of types of files, such as an installation package, a configuration package, and a parameter package. Acquiring historical system environment deployment information, counting the use frequency of each type of deployment file package used in a deployment scene according to the historical environment deployment information, determining the deployment file package with the highest use frequency of each type as the deployment file package corresponding to the deployment scene, and determining the execution sequence of the determined deployment file package as the execution sequence corresponding to the deployment scene, thereby generating a deployment strategy corresponding to the deployment scene. The deployment strategy corresponding to the deployment scene is automatically determined through big data statistical analysis, so that the user habit is considered, the human body is saved, and the user experience is enhanced.
S103: and if an environment deployment instruction is detected, searching a file storage path for deploying the file package in a preset identification path comparison table according to the file package identification.
Specifically, the environment deploys an instruction, also known as a one-key deployment instruction. And the environment deployment instruction is used for confirming a deployment strategy corresponding to the current deployment scene by a user. In this embodiment, the deployment file package is stored in the database server, and the file storage path of the deployment file package is searched in the identification path table according to the file package identification. The file storage path is used for indicating the storage position of the deployment file package.
S104: and uploading the deployment file package to the target deployment server to execute system environment deployment according to the deployment strategy, the file storage path and the target execution path of the target deployment server.
In the embodiment of the present invention, the deployment file package in the deployment policy is searched according to the file storage path, and the deployment file package is uploaded to the position of the target execution path in the target deployment server.
As an embodiment of the present invention, as shown in fig. 2, the S104 specifically includes:
a1: determining the type of the deployment file package according to the deployment file package identification, and acquiring historical execution information of the deployment file package. The types of the deployment file package comprise a configuration class, an installation class and a parameter class.
A2: and determining the importance of the deployment file package according to the type of the deployment file package and the historical execution information. Specifically, an initial importance corresponding to the type of the deployment file package is preset, and the historical execution information includes historical execution time, historical execution times and the like.
A3: and sequencing the deployment file packages according to the importance degree from high to low.
A4: and sequentially searching the deployment file packages in a database server according to the file storage path and the sequencing result of the deployment file packages. Specifically, according to the file storage path and the sorting result, the deployment file package is searched for in a forward-sequence traversal manner. Namely, the deployment file package with high importance is searched preferentially.
A5: and sequentially uploading the found deployment file packages to the target deployment server to execute system environment deployment according to the sequencing result according to the target execution path.
In the embodiment of the invention, the importance of the deployment file package is determined according to the type and the historical execution information of the deployment file package, and then the deployment file package is sequentially searched and uploaded to the target deployment server according to the sequencing result of the importance to execute the environmental deployment of the system, thereby improving the efficiency of the environmental deployment.
Optionally, the historical execution information includes historical execution time, and when a dependency relationship exists between multiple deployment file packages corresponding to the deployment policy, a specific implementation flow of the step a2 is as follows:
a21: determining an initial weight PRI of the deployment file package according to the type of the file package and a preset type weight comparison tablei
A22: determining the importance ImpDeg of the deployment file package according to the following formulal
Figure BDA0001831550660000061
Wherein M represents the historical execution times of the deployment file package l, i is more than or equal to 1 and less than or equal to M, l is more than or equal to 1, M, l is an integer, TiFor the historical execution time of the ith execution of the deployment file package l, the execution of the deployment file package l depends on the execution of N other deployment file packages, N is an integer and is more than or equal to 1 and less than or equal to N, and T _ replyjRepresenting the historical execution time of the jth other deployment package, Func is a monotonically increasing function of any implementation of the mapping from [0, + ∞) to [0, 1).For example, Func may take any one of the following functions:
Figure BDA0001831550660000062
Figure BDA0001831550660000063
optionally, in the embodiment of the present invention, the historical execution times of the deployment file package is positively correlated with the importance degree of the deployment file package.
As an embodiment of the present invention, as shown in fig. 3, in order to perform environment deployment efficiently and improve efficiency of environment deployment, before the above S104, the method further includes:
b1: and determining the minimum execution space of the deployment file package of the deployment strategy according to the deployment file package identification. Specifically, the minimum execution space refers to a minimum operating space of the deployment package on the target deployment server, and the operating space of the deployment package is determined according to the size of the deployment package.
B2: and acquiring the residual space of the execution path of the target deployment server.
B3: and if the residual space is not smaller than the minimum execution space, uploading the deployment file package to the target deployment server to execute the system environment deployment.
Further, if the remaining space is smaller than the minimum execution space, prompting a user to clear the storage space of the target deployment server, and failing to deploy the system environment.
Optionally, before B1, system version detection is further included, and the specific steps include: and B1 is executed if the system version meets the requirement of the deployment version, the system is not matched and the system environment deployment cannot be executed on the deployment server.
In the embodiment of the invention, whether the system environment deployment can be executed in the target deployment server is judged by carrying out space detection and system version detection on the target deployment server, so that the efficiency of environment deployment is improved, and the user experience is enhanced.
In the embodiment of the invention, a deployment strategy corresponding to a deployment scene is searched by acquiring the deployment scene and a target execution path of a target deployment server, the deployment strategy comprises a file package identifier of a deployment file package, if an environment deployment instruction is detected, a file storage path of the deployment file package is searched in a preset identifier path comparison table according to the file package identifier, then the deployment file package is uploaded to the target deployment server to execute system environment deployment according to the deployment strategy, the file storage path and the target execution path of the target deployment server automatically, the scheme establishes a corresponding relation between the deployment scene and the deployment strategy, and a user only needs to select the deployment scene and the target execution path to be deployed, so that one-key deployment can be realized, manpower can be saved, and a plurality of system environments can be deployed in batches rapidly, and the efficiency of system environment deployment is improved.
Fig. 4 shows, as an embodiment of the present invention, a system environment deployment method including an update deployment policy provided by an embodiment of the present invention, which is detailed as follows:
s401: and acquiring a deployment scene and a target execution path of the target deployment server.
S402: and searching a deployment strategy corresponding to the deployment scene, wherein the deployment strategy comprises a file package identifier for deploying a file package.
In this embodiment, the specific steps from step S401 to step S402 refer to step S101 to step S102 in the above embodiment, which is not described herein again.
S403: and detecting a deployment strategy updating instruction.
Specifically, the deployment policy update instruction includes one or more of adding a deployment package, deleting the deployment package, and modifying an execution order of the deployment package.
S404: and if the deployment strategy updating instruction is detected, updating the deployment strategy according to the deployment strategy updating instruction.
Specifically, the updating of the deployment policy includes adjusting a deployment file package corresponding to the deployment scenario and/or an execution sequence of the deployment file package. In this embodiment, in consideration of the situation that the deployment file package has version update, the file package identifier corresponding to the deployment policy is updated through the deployment policy update instruction, and the file package identifier of the deployment file package of the old version is replaced with the file package identifier of the deployment file package of the new version, so that the effectiveness of environment deployment can be improved.
S405: and if an environment deployment instruction is detected, searching a file storage path for deploying the file package in a preset identification path comparison table according to the file package identification in the updated deployment strategy.
S406: and uploading the deployment file package to the target deployment server to execute system environment deployment according to the deployment strategy, the file storage path and the target execution path of the target deployment server.
In this embodiment, the specific steps from step S405 to step S406 refer to step S103 to step S104 in the above embodiment, and are not described herein again.
In the embodiment of the invention, the deployment strategy corresponding to the deployment scene is updated by detecting the deployment strategy updating instruction input by the user, and the system environment deployment is executed according to the updated deployment strategy, so that the requirements of the user are considered in a humanized manner, and the user experience is enhanced.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Corresponding to the system environment deployment method described in the foregoing embodiment, fig. 5 shows a structural block diagram of the system environment deployment apparatus provided in the embodiment of the present application, and for convenience of explanation, only the parts related to the embodiment of the present application are shown.
Referring to fig. 5, the system environment deployment apparatus includes: a deployment information obtaining unit 51, a deployment policy searching unit 52, a storage path searching unit 53, and a first system environment deployment unit 54, where:
a deployment information obtaining unit 51, configured to obtain a deployment scenario and a target execution path of a target deployment server;
a deployment policy searching unit 52, configured to search a deployment policy corresponding to the deployment scenario, where the deployment policy includes a package identifier of a deployment package;
a storage path searching unit 53, configured to search, if an environment deployment instruction is detected, a file storage path for deploying the file package in a preset identification path comparison table according to the file package identification;
a first system environment deployment unit 54, configured to upload the deployment package to the target deployment server to execute system environment deployment according to the deployment policy, the file storage path, and the target execution path of the target deployment server.
Optionally, as shown in fig. 6, the system environment deployment apparatus further includes:
an update instruction detection unit 61, configured to detect a deployment policy update instruction;
a deployment policy updating unit 62, configured to update the deployment policy according to the deployment policy updating instruction if the deployment policy updating instruction is detected.
At this time, the storage path searching unit 53 is further configured to, if an environment deployment instruction is detected, search a file storage path for deploying the file package in a preset identification path comparison table according to the file package identification in the updated deployment policy.
Optionally, the first system environment deployment unit 54 includes:
the deployment information determining module is used for determining the type of the deployment file package according to the deployment file package identification and acquiring historical execution information of the deployment file package;
the importance calculation module is used for determining the importance of the deployment file package according to the type of the deployment file package and the historical execution information;
the file package ordering module is used for ordering the deployment file packages from high to low according to the importance;
the file package searching module is used for sequentially searching the deployment file packages in the database server according to the file storage path and the sequencing result of the deployment file packages;
and the system environment deployment module is used for sequentially uploading the found deployment file packages to the target deployment server to execute system environment deployment according to the sequencing result and the target execution path.
Optionally, the historical execution information includes historical execution time, and the importance calculation module specifically includes:
an initial weight determination submodule for determining an initial weight PRI of the deployment file package according to the type of the file package and a preset type weight comparison tablei
An importance degree calculation operator module used for determining the importance degree ImpDeg of the deployment file package according to the following formulal
Figure BDA0001831550660000101
Wherein M represents the historical execution times of the deployment file package l, i is more than or equal to 1 and less than or equal to M, l is more than or equal to 1, M, l is an integer, TiThe historical execution time of the ith execution of the deployment file package l is the historical execution time of the ith execution of the deployment file package l, the execution of the deployment file package l depends on the execution of N other deployment file packages, N is an integer, i is more than or equal to 1 and less than or equal to N, and T _ replyjRepresenting the historical execution time of the jth other deployment package, Func is a monotonically increasing function of any implementation of the mapping from [0, + ∞) to [0, 1). For example, Func may take any of the following functions:
Figure BDA0001831550660000111
Figure BDA0001831550660000112
optionally, the system environment deployment apparatus further includes:
an execution space determining unit, configured to determine, according to the deployment package identifier, a minimum execution space of the deployment package of the deployment policy;
a residual space determining unit, configured to obtain a residual space of an execution path of the target deployment server;
and the second system environment deployment unit is used for uploading the deployment file package to the target deployment server to execute system environment deployment if the residual space is not smaller than the minimum execution space. And if the residual space is smaller than the minimum execution space, prompting a user to clear the storage space of the target deployment server, and failing to deploy the system environment.
Optionally, the system environment deployment apparatus further includes:
the version detection unit is used for acquiring the server identifier of the target deployment server, determining the system version of the target deployment server according to the server identifier, judging whether the system version meets the deployment version requirement, if not, prompting that the system is not matched, and the system environment deployment cannot be executed on the deployment server, and if so, executing and calling the execution space determination unit.
In the embodiment of the invention, a deployment strategy corresponding to a deployment scene is searched by acquiring the deployment scene and a target execution path of a target deployment server, wherein the deployment strategy comprises a file package identifier of a deployment file package, if an environment deployment instruction is detected, a file storage path of the deployment file package is searched in a preset identifier path comparison table according to the file package identifier, and then the deployment file package is automatically uploaded to the target deployment server to execute system environment deployment according to the deployment strategy, the file storage path and the target execution path of the target deployment server, the scheme establishes the corresponding relation between the deployment scene and the deployment strategy, and a user can realize one-key deployment only by selecting the deployment scene and the target execution path to be deployed, so that the labor can be saved, and a plurality of system environments can be rapidly deployed in batch, and the efficiency of system environment deployment is improved.
Fig. 7 is a schematic diagram of a server according to an embodiment of the present invention. As shown in fig. 7, the server 7 of this embodiment includes: a processor 70, a memory 71, and a computer program 72, such as a system environment deployment program, stored in the memory 71 and executable on the processor 70. The processor 70, when executing the computer program 72, implements the steps in the various system environment deployment method embodiments described above, such as steps 101-104 shown in fig. 1. Alternatively, the processor 70, when executing the computer program 72, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the units 51 to 54 shown in fig. 5.
Illustratively, the computer program 72 may be partitioned into one or more modules/units that are stored in the memory 71 and executed by the processor 70 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 72 in the server 7.
The server 7 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The server may include, but is not limited to, a processor 70, a memory 71. Those skilled in the art will appreciate that fig. 7 is merely an example of a server 7 and does not constitute a limitation of the server 7 and may include more or fewer components than shown, or some components in combination, or different components, e.g., the server may also include input output devices, network access devices, buses, etc.
The Processor 70 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 71 may be an internal storage unit of the server 7, such as a hard disk or a memory of the server 7. The memory 71 may also be an external storage device of the server 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the server 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the server 7. The memory 71 is used for storing the computer program and other programs and data required by the server. The memory 71 may also be used to temporarily store data that has been output or is to be output.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated module/unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (8)

1. A system environment deployment method, comprising:
acquiring a deployment scene and a target execution path of a target deployment server; wherein the deployment scenario refers to an application scenario of a system environment;
searching a deployment strategy corresponding to the deployment scene, wherein the deployment strategy comprises a file package identifier for deploying a file package; wherein, the deployment file package is used for deploying files, codes and compression packages of the system environment;
if an environment deployment instruction is detected, searching a file storage path for deploying the file package in a preset identification path comparison table according to the file package identification; the environment deployment instruction is used for confirming a deployment strategy corresponding to the current deployment scene by a user;
uploading the deployment file package to the target deployment server to execute system environment deployment according to the deployment policy, the file storage path and the target execution path of the target deployment server, including: determining the type of the deployment file package according to the deployment file package identification, and acquiring historical execution information of the deployment file package; determining the importance of the deployment file package according to the type of the deployment file package and the historical execution information; sorting the deployment file packages according to the importance degree from high to low; sequentially searching the deployment file packages in a database server according to the file storage path and the sequencing result of the deployment file packages; and sequentially uploading the found deployment file packages to the target deployment server to execute system environment deployment according to the sequencing result according to the target execution path.
2. The system environment deployment method according to claim 1, wherein the deployment policy includes an execution sequence for deploying a package of files, and before searching for a file storage path for deploying the package of files in the deployment policy according to the package of files identifier if the environment deployment instruction is detected, the method includes:
detecting a deployment strategy updating instruction;
and if the deployment strategy updating instruction is detected, updating the deployment strategy according to the deployment strategy updating instruction.
3. The system environment deployment method according to claim 1, wherein the historical execution information includes historical execution time, and the determining the importance of the deployment package according to the type of the deployment package and the historical execution information includes:
determining an initial weight PRI of the deployment file package according to the type of the file package and a preset type weight comparison tablei
Determining the importance ImpDeg of the deployment file package according to the following formulal
Figure FDA0003572120150000021
Wherein M represents the historical execution times of the deployment file package l, i is more than or equal to 1 and less than or equal to M, l is more than or equal to 1, M, l is an integer, TiFor the deployment fileThe historical execution time of the ith execution of the package l, the execution of the deployment file package l depends on the execution of N other deployment file packages, N is an integer, i is more than or equal to 1 and less than or equal to N, and T _ replyjRepresenting the historical execution time of the jth other deployment package, Func is a monotonically increasing function of any one that implements the mapping from [0, + ∞) to [0, 1).
4. The system environment deployment method according to any one of claims 1 to 3, wherein before the uploading the deployment package to the target deployment server according to the deployment policy, the file storage path, and the target execution path of the target deployment server to execute the system environment deployment, the method further comprises:
determining the minimum execution space of the deployment file package of the deployment strategy according to the deployment file package identification;
acquiring the residual space of the execution path of the target deployment server;
and if the residual space is not smaller than the minimum execution space, uploading the deployment file package to the target deployment server to execute the system environment deployment.
5. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the system environment deployment method according to any one of claims 1 to 4.
6. A server comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of:
acquiring a deployment scene and a target execution path of a target deployment server; wherein the deployment scenario refers to an application scenario of a system environment;
searching a deployment strategy corresponding to the deployment scene, wherein the deployment strategy comprises a file package identifier for deploying a file package; wherein, the deployment file package is used for deploying files, codes and compression packages of the system environment;
if an environment deployment instruction is detected, searching a file storage path for deploying the file package in a preset identification path comparison table according to the file package identification; the environment deployment instruction is used for confirming a deployment strategy corresponding to the current deployment scene by a user;
uploading the deployment file package to the target deployment server to execute system environment deployment according to the deployment policy, the file storage path and the target execution path of the target deployment server, including: determining the type of the deployment file package according to the deployment file package identification, and acquiring historical execution information of the deployment file package; determining the importance of the deployment file package according to the type of the deployment file package and the historical execution information; sorting the deployment file packages according to the importance degree from high to low; sequentially searching the deployment file packages in a database server according to the file storage path and the sequencing result of the deployment file packages; and sequentially uploading the found deployment file packages to the target deployment server to execute system environment deployment according to the sequencing result according to the target execution path.
7. The server according to claim 6, wherein the deployment policy includes an execution sequence for deploying a package of files, and before the step of finding a file storage path for the package of files in the deployment policy according to the package of files identifier if an environmental deployment instruction is detected includes:
detecting a deployment strategy updating instruction;
and if the deployment strategy updating instruction is detected, updating the deployment strategy according to the deployment strategy updating instruction.
8. The server according to claim 6 or 7, wherein before the uploading the deployment package to the target deployment server according to the deployment policy, the file storage path, and the target execution path of the target deployment server to execute the system environment deployment, the method further comprises:
determining the minimum execution space of the deployment file package of the deployment strategy according to the deployment file package identification;
acquiring the residual space of the execution path of the target deployment server;
and if the residual space is not smaller than the minimum execution space, uploading the deployment file package to the target deployment server to execute the system environment deployment.
CN201811207381.5A 2018-10-17 2018-10-17 System environment deployment method, storage medium and server Active CN109542462B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811207381.5A CN109542462B (en) 2018-10-17 2018-10-17 System environment deployment method, storage medium and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811207381.5A CN109542462B (en) 2018-10-17 2018-10-17 System environment deployment method, storage medium and server

Publications (2)

Publication Number Publication Date
CN109542462A CN109542462A (en) 2019-03-29
CN109542462B true CN109542462B (en) 2022-05-06

Family

ID=65844265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811207381.5A Active CN109542462B (en) 2018-10-17 2018-10-17 System environment deployment method, storage medium and server

Country Status (1)

Country Link
CN (1) CN109542462B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597520A (en) * 2019-08-27 2019-12-20 深圳证券交易所 Server, deployment method thereof and computer-readable storage medium
CN110825391B (en) * 2019-10-31 2023-10-13 北京金山云网络技术有限公司 Service management method, device, electronic equipment and storage medium
CN112698839B (en) * 2020-12-30 2024-04-12 深圳前海微众银行股份有限公司 Data center node deployment method, device and system and computer storage medium
CN117785228B (en) * 2024-02-22 2024-05-28 恒生电子股份有限公司 Application deployment method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015070435A1 (en) * 2013-11-15 2015-05-21 华为技术有限公司 Service deployment method, apparatus and network device
CN105843670A (en) * 2016-03-22 2016-08-10 浙江大学 Cloud platform based virtual cluster deployment and integration method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9692818B2 (en) * 2014-04-11 2017-06-27 Bank Of America Corporation Automated application deployment based on server utilization
US10241775B2 (en) * 2016-01-14 2019-03-26 Ca, Inc. Dynamic release baselines in a continuous delivery environment
US10338912B2 (en) * 2017-01-12 2019-07-02 Metrological Media Innovations B.V. Updating software based on function usage statistics
CN108399083B (en) * 2017-02-07 2021-04-30 北京京东尚科信息技术有限公司 System deployment method, device, electronic equipment and storage medium
CN107193616A (en) * 2017-06-30 2017-09-22 广州云移信息科技有限公司 Application program upgrading method and terminal
CN108549542A (en) * 2018-04-11 2018-09-18 泰康保险集团股份有限公司 A kind of file dispositions method, device and equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015070435A1 (en) * 2013-11-15 2015-05-21 华为技术有限公司 Service deployment method, apparatus and network device
CN105843670A (en) * 2016-03-22 2016-08-10 浙江大学 Cloud platform based virtual cluster deployment and integration method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
云环境下基于多属性层次分析的虚拟机部署与调度策略;庄威等;《西安交通大学学报》;20121102(第02期);第34-38+136页 *

Also Published As

Publication number Publication date
CN109542462A (en) 2019-03-29

Similar Documents

Publication Publication Date Title
CN109542462B (en) System environment deployment method, storage medium and server
CN109542935B (en) Execution method of rule engine, storage medium and server
CN108459964B (en) Test case selection method, device, equipment and computer readable storage medium
CN110099112B (en) Data storage method, device, medium and terminal equipment based on point-to-point network
US10198576B2 (en) Identification of mislabeled samples via phantom nodes in label propagation
CN108388509B (en) Software testing method, computer readable storage medium and terminal equipment
CN108540509B (en) Processing method and device of terminal browser, server and intelligent terminal
CN111338958B (en) Parameter generation method and device for test cases and terminal equipment
CN106709336A (en) Method and apparatus for identifying malware
KR20150083627A (en) Method for detecting malignant code of android by activity string analysis
CN110765394A (en) So file loading method and device, storage medium and terminal equipment
CN110192178A (en) Method, apparatus, micro-control unit and the terminal device of program patch installing
CN114139161A (en) Method, device, electronic equipment and medium for batch vulnerability detection
CN111177703A (en) Method and device for determining data integrity of operating system
US20220318129A1 (en) Automated code checking
CN111819559A (en) Using machine learning models with quantized step sizes for malware detection
US20170132413A1 (en) File clustering using filters working over file attributes
CN111274204A (en) Terminal identification method, method and device for generating mobile equipment identification combination code, terminal, network side equipment and storage medium
CN114168275B (en) Task scheduling method, system, terminal device and storage medium
CN115004667B (en) Information pushing method, device, electronic equipment and computer readable medium
CN112667313B (en) Process starting method, device and system
CN112543104A (en) Application program packaging method and device, electronic equipment and storage medium
CN107066247B (en) Patch query method and device
CN111258899A (en) Use case generation method and device, electronic equipment and computer readable storage medium
CN107122164B (en) Method, device, equipment and storage medium for acquiring function address and applying function address

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant