A method and device for installing script deployment

By storing deployment packages and scripts for multiple execution environments in the server, detecting and creating threads to execute installation scripts, it solves the problem of low deployment efficiency caused by different execution environments of multiple servers, achieves efficient automated test environment deployment, and saves labor costs. , improving the efficiency of automated testing.

CN111722853BActive Publication Date: 2024-08-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010536510.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-12
Publication Date
2024-08-27
Estimated Expiration
2040-06-12

AI Technical Summary

Technical Problem

In automated testing, the execution environments of multiple servers are different, resulting in manual deployment of the execution environment requiring a lot of labor costs, which affects the efficiency of automated testing. Especially in the scenario of multiple execution machines, repetitive work consumes a lot of manpower and affects efficiency.

Method used

By storing deployment packages and installation scripts for different execution environments in the server, the execution machine environment is detected, deployment preparation is made based on the detected environment, threads are created to execute the installation scripts, and exit status codes are parsed to achieve multi-threaded deployment and reduce manual intervention.

Benefits of technology

It achieves flexible scalability, quickly locates problems, saves labor costs, greatly improves the execution efficiency of test scripts, and thereby improves the efficiency of automated testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111722853B
    Figure CN111722853B
Patent Text Reader

Abstract

The present invention provides a method and device for deploying an installation script, the method comprising the following steps: storing multiple deployment packages of different execution environments and installation scripts corresponding to the multiple deployment packages in a server; in response to receiving a command to deploy the installation script on an execution machine, detecting the execution environment on the execution machine and performing deployment preparation based on the deployment package and installation script corresponding to the detected execution environment; creating a thread for each execution machine and executing the installation script received in the deployment preparation; in response to the installation being completed, detecting the exit status code of each installation script and parsing it, and sending the parsed information to a display device. By using the solution of the present invention, the entire deployment function can be made flexible and extensible, which facilitates the rapid location of problems that arise, saves labor costs, greatly improves the execution efficiency of test scripts, and thus improves the efficiency of automated testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and more particularly to a method and device for deploying an installation script. Background Art

[0002] As server automated testing becomes more and more widely used and test scenarios become more and more complex, automated test scripts in various languages ​​are introduced into testing, such as python, java, and shell. The execution environments of various languages ​​are often different. Faced with such a rich variety of scripts, how to build a good test environment is very critical. The following will take java and python scripts as examples to explain how to automatically deploy the script execution environment.

[0003] Currently deployed execution environments, such as JDK or Python, generally use the same language to develop scripts, and only one execution environment needs to be deployed. However, deploying the execution environment also requires testers to copy the toolkit to the execution machine and manually deploy and install it. When there are a large number of execution machines, repetitive work will consume a lot of manpower costs and will also greatly affect the efficiency of automated testing. Therefore, reducing repetitive manual deployment work and adapting to the scenario of deploying batch execution machines at the same time is very necessary to improve testing efficiency. Summary of the invention

[0004] In view of this, the purpose of an embodiment of the present invention is to propose a method and device for installation script deployment. By using the method of the present invention, the entire deployment function can be made flexible and scalable, which is convenient for quickly locating problems that arise, saving labor costs, greatly improving the execution efficiency of test scripts, and thereby improving the efficiency of automated testing.

[0005] Based on the above purpose, an aspect of an embodiment of the present invention provides a method for installing a script deployment, comprising the following steps:

[0006] Store multiple deployment packages of different execution environments and installation scripts corresponding to the multiple deployment packages in the server;

[0007] In response to receiving a command to deploy an installation script on an execution machine, detecting an execution environment on the execution machine and performing deployment preparation based on a deployment package and an installation script corresponding to the detected execution environment;

[0008] Create a thread for each executor and execute the installation script received during deployment preparation;

[0009] In response to the installation being completed, the exit status code of each installation script is detected and parsed, and the parsed information is sent to the display device.

[0010] According to one embodiment of the present invention, storing multiple deployment packages of different execution environments and installation scripts corresponding to the multiple deployment packages in a server includes:

[0011] Create database storage space in the server;

[0012] The corresponding relationship between the execution environment, the deployment package corresponding to the execution environment, and the installation script corresponding to the deployment package is saved in the storage space.

[0013] According to one embodiment of the present invention, in response to receiving a command to deploy an installation script on an execution machine, detecting an execution environment on the execution machine and performing deployment preparation based on a deployment package and an installation script corresponding to the detected execution environment includes:

[0014] Detect the execution environment of the installation script on the execution machine and detect whether the installation script has been installed on the execution machine;

[0015] In response to the fact that the installation script has not been installed on the execution machine, the deployment package and the installation script corresponding to the execution environment stored in the server are sent to the execution machine.

[0016] According to one embodiment of the present invention, creating a thread for each execution machine and executing the installation script received in the deployment preparation includes:

[0017] Determine whether the installation script has been installed on the execution machine;

[0018] In response to the installation script not being installed on the execution machine, creating a separate thread for each execution machine;

[0019] Each executor runs the installation script in its corresponding thread.

[0020] According to one embodiment of the present invention, threads are created through the Executors.newCacheThreadPool() function.

[0021] Another aspect of an embodiment of the present invention further provides a device for installing script deployment, the device comprising:

[0022] A storage module, the storage module is configured to store multiple deployment packages of different execution environments and installation scripts corresponding to the multiple deployment packages in a server;

[0023] A detection module, the detection module being configured to, in response to receiving a command to deploy an installation script on an execution machine, detect an execution environment on the execution machine and perform deployment preparation based on a deployment package and an installation script corresponding to the detected execution environment;

[0024] A creation module is configured to create a thread for each execution machine and execute the installation script received in the deployment preparation;

[0025] The parsing module is configured to detect and parse the exit status code of each installation script in response to the completion of the installation, and send the parsed information to the display device.

[0026] According to one embodiment of the present invention, the storage module is further configured as:

[0027] Create database storage space in the server;

[0028] The corresponding relationship between the execution environment, the deployment package corresponding to the execution environment, and the installation script corresponding to the deployment package is saved in the storage space.

[0029] According to one embodiment of the present invention, the detection module is further configured to:

[0030] Detect the execution environment of the installation script on the execution machine and detect whether the installation script has been installed on the execution machine;

[0031] In response to the fact that the installation script has not been installed on the execution machine, the deployment package and the installation script corresponding to the execution environment stored in the server are sent to the execution machine.

[0032] According to one embodiment of the present invention, the creation module is further configured to:

[0033] Determine whether the installation script has been installed on the execution machine;

[0034] In response to the installation script not being installed on the execution machine, creating a separate thread for each execution machine;

[0035] Each executor runs the installation script in its corresponding thread.

[0036] According to one embodiment of the present invention, threads are created through the Executors.newCacheThreadPool() function.

[0037] The present invention has the following beneficial technical effects: the method for deploying installation scripts provided by the embodiment of the present invention stores multiple deployment packages for different execution environments and the installation scripts corresponding to the multiple deployment packages in a server; in response to receiving a command to deploy the installation script on an execution machine, detects the execution environment on the execution machine and performs deployment preparation based on the deployment package and installation script corresponding to the detected execution environment; creates a thread for each execution machine and executes the installation script received during the deployment preparation; in response to the completion of the installation, detects the exit status code of each installation script and parses it, and sends the parsed information to a display device. The technical solution enables the entire deployment function to have flexible scalability, facilitates the rapid location of problems that arise, saves labor costs, greatly improves the execution efficiency of test scripts, and thereby improves the efficiency of automated testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.

[0039] Figure 1 A schematic flow chart of a method for deploying an installation script according to an embodiment of the present invention;

[0040] Figure 2 A schematic diagram of a device deployed by an installation script according to an embodiment of the present invention;

[0041] Figure 3 The present invention is a schematic flowchart of a method for deploying an installation script according to an embodiment of the present invention. DETAILED DESCRIPTION

[0042] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0043] Based on the above purpose, a first aspect of an embodiment of the present invention provides an embodiment of a method for deploying an installation script. Figure 1 Shown is a schematic flow chart of the method.

[0044] like Figure 1 As shown in , the method may include the following steps:

[0045] S1 stores multiple deployment packages of different execution environments and the installation scripts corresponding to the multiple deployment packages in the server. The environments required to run the scripts on the target execution machine are different, and the deployment packages and installation scripts will also be different. Therefore, the running scripts of the same function need to be developed in multiple versions according to different execution environments. The environments in various execution machines and the deployment packages and installation scripts corresponding to the environments are organized into a database and stored in the server, so that the deployment packages and installation scripts required by the execution machine can be quickly matched on the execution machine;

[0046] S2, in response to receiving a command to deploy the installation script on the execution machine, detects the execution environment on the execution machine and performs deployment preparation based on the deployment package and installation script corresponding to the detected execution environment. The environment detection mainly detects whether the execution machine has executed the installation script and detects the environment in which the installation script runs, such as Java or Python. The deployment preparation mainly requests the server for the deployment package and installation script required for the running ring according to the detected running environment.

[0047] S3 creates a thread for each execution machine and executes the installation script received during deployment preparation. Since there are many nodes in the deployment process and the deployment time is long, if multiple execution machines are deployed sequentially, not only the efficiency is low, but also a machine is prone to blockage after an abnormal deployment, affecting the deployment of other machines. Multi-threaded response can improve deployment efficiency, and the deployment processes of each machine do not affect each other, which is also convenient for locating problems.

[0048] In response to the installation completion, S4 detects the exit status code of each installation script and parses it, and sends the parsed information to the display device. The exit status code needs to be defined for different deployment nodes. The system main program distributes the deployment package and the corresponding shell script to the execution machine through SSH, and executes the script through the ChannelExec class of jsch. The getExitStatus() method is used to obtain the exit status code of its execution for parsing to obtain the corresponding node information.

[0049] Through the technical solution of the present invention, the entire deployment function can be made flexible and scalable, which facilitates the rapid location of problems that arise, saves labor costs, greatly improves the execution efficiency of test scripts, and further improves the efficiency of automated testing.

[0050] In order to obtain various status and exception information in the deployment process in a timely manner and avoid blocking problems when batch execution machines are deployed at the same time, we can start from the two aspects of unified system management and multi-threaded operation; in addition, in view of the increasing diversity of script development languages, we must have the ability to flexibly expand multiple script execution environments. First of all, we need to consider scalability. The specific implementation of the deployment function can be decomposed into two parts: deployment package maintenance and deployment script development. For example, the deployment operation of java scripts can be divided into jdk package maintenance and installjdk.sh development and execution. In this way, to expand support for python scripts, you only need to add python environment installation package and installpython.sh. The system needs to be managed uniformly. The system manages the execution machines uniformly, distributes the deployment package and install*.sh to each execution machine that needs to be deployed through SSH (secure transmission protocol), runs install*.sh remotely, and obtains its running status code and status information in real time, and can capture and process exception information in time. Multiple execution machines perform multi-threaded operations. Since there are many nodes in the deployment process and the deployment time is long, if multiple execution machines are deployed sequentially, it is not only inefficient, but also easy to be blocked after a machine is deployed abnormally, affecting the deployment of other machines later. Multi-threaded response can improve deployment efficiency, and the deployment process between machines does not affect each other, which is also convenient for problem location. The creation and maintenance of threads are handled by the thread pool. You can choose Executors.newCacheThreadPool() to cache the thread pool and effectively utilize idle threads.

[0051] In a preferred embodiment of the present invention, storing multiple deployment packages of different execution environments and installation scripts corresponding to the multiple deployment packages in a server includes:

[0052] Create database storage space in the server;

[0053] The corresponding relationship between the execution environment, the deployment package corresponding to the execution environment, and the installation script corresponding to the deployment package is saved in the storage space.

[0054] The execution environment that supports script running not only includes the basic runtime environment deployment package, but also the toolkits required for script development, in the form of jar packages, rpm packages, whl packages, etc. In order to facilitate maintenance and support expansion, the deployment packages are managed separately by dividing dependency pools, such as Java dependency pool and python dependency pool. Since the execution environment dependency pool serves the execution of automated scripts, it is scalable and can be maintained in a timely manner according to the needs of script development. The system reads and records the name, version, compatible operating system and version of each dependency file in the dependency pool and stores it in json format, and monitors the addition, deletion and changes of the dependency pool in real time and records logs, so that the deployment packages required by various runtime environments can be uniformly managed and maintained.

[0055] Due to the different types and versions of operating systems between execution machines, there are differences in the deployment packages of the script running environment deployed on the execution machine. For example, when deploying Python 3.6, the deployment packages deployed in Red Hat and Ubuntu are different. The install script, as a bridge between the execution environment dependency pool and the execution machine, follows the same verification and execution specifications: OS version check->deployment package check->deployment execution environment->return status code (with corresponding status information defined). The development of deployment scripts requires identifying common factors in the deployment process such as decompression, copying, installation instructions, common status codes, common status information, and encapsulated public functions, etc., and making the different instructions, dependency package names, access path parameters, feature status codes, feature status information, etc. compatible through configuration, parameter passing, and branch logic in the matching strategy. Extract and summarize the common parts of various installation scripts, and display the different parts in the form of configuration files. If you need to execute a new installation script, you only need to configure it in the configuration file.

[0056] In a preferred embodiment of the present invention, in response to receiving a command to deploy an installation script on an execution machine, detecting an execution environment on the execution machine and performing deployment preparation based on a deployment package and an installation script corresponding to the detected execution environment includes:

[0057] Detect the execution environment of the installation script on the execution machine and detect whether the installation script has been installed on the execution machine;

[0058] In response to the fact that the installation script has not been installed on the execution machine, the deployment package and the installation script corresponding to the execution environment stored in the server are sent to the execution machine.

[0059] After receiving a deployment request, the environment check and deployment preparation shall be performed on each execution machine where the environment needs to be deployed, including checking whether the execution environment has been installed, matching dependencies, distributing deployment packages and install*.sh files, cleaning up the deployment directory, and granting execution permissions to install*.sh, etc. By opening up an independent database space for the deployment function, the execution environment check strategy, the matching strategy between the operating system and the dependency pool, the dependency pool management information, the deployment directory cleanup strategy, the execution log information, etc. are recorded. When a user request arrives, the environment check and deployment preparation work are performed on the execution machine by reading the policy information in the database.

[0060] In a preferred embodiment of the present invention, creating a thread for each execution machine and executing the installation script received in the deployment preparation includes:

[0061] Determine whether the installation script has been installed on the execution machine;

[0062] In response to the installation script not being installed on the execution machine, creating a separate thread for each execution machine;

[0063] Each executor runs the installation script in its corresponding thread.

[0064] In a preferred embodiment of the present invention, threads are created by the Executors.newCacheThreadPool() function.

[0065] By creating a thread pool, an execution thread is created for each executor's deployment request, a cacheable thread pool execService is created through Executors.newCacheThreadPool(), and the destruction function of the thread pool is managed through the @PreDestroy annotation; the deployment thread class DeployEnvironment implements Callable <string>interface, because this can obtain the exit status code of the executed script, and create a public void setMachineAndPath(Machine machine,String installPackPath) function to receive the execution machine information and deployment package path information; the thread class is managed and executed through the submit function of the thread pool, such as Future <string>result = execService.submit(new DeployEnvironment()) function. The thread class implements Callable <string>The interface returns the status information of the deployment. The main method rewritten by the thread class is public String call(){}, which can realize the functions of SSH connection execution machine, deployment environment, collecting status codes, parsing status information and returning it.

[0066] The newCacheThreadPool thread pool is infinite. When executing deployment tasks, if there are idle threads, they will be reused instead of creating new threads each time. Select Callable <string>The interface is because it can have a return value, through Future <string>result = execService.submit() obtains the deployment status information returned by the Callable thread to facilitate the location and analysis of abnormal situations.

[0067] Figure 3 An embodiment of the method of the present invention is shown. A command for deploying an installation script on an execution machine AE is issued through a machine management interface. After receiving the command, the control layer needs to obtain information about the execution machine AE. The information mainly includes the environment in which the script runs on each execution machine and whether the script has been run before. The control layer sends information about the execution machines that have not run the script to the service layer. The service layer sends a request to the server for the corresponding deployment package and installation script based on the acquired running environment of the script on the execution machine. The server sends the corresponding deployment package and installation script to the service layer. The service layer creates separate threads 1-5 for the execution machines that need to run the installation script. Each execution machine uses an independent thread to run the installation script. Finally, the exit status code is obtained and parsed into output status prompt information to be sent to the staff.

[0068] Through the technical solution of the present invention, the entire deployment function can be made flexible and scalable, which facilitates the rapid location of problems that arise, saves labor costs, greatly improves the execution efficiency of test scripts, and further improves the efficiency of automated testing.

[0069] It should be noted that a person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiment can achieve the same or similar effect as any of the above-mentioned method embodiments corresponding thereto.

[0070] In addition, the method disclosed in the embodiment of the present invention can also be implemented as a computer program executed by a CPU, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the CPU, the above functions defined in the method disclosed in the embodiment of the present invention are performed.

[0071] Based on the above purpose, a second aspect of the embodiment of the present invention provides a device for installing script deployment, such as Figure 2 As shown, the device 200 includes:

[0072] A storage module, the storage module is configured to store multiple deployment packages of different execution environments and installation scripts corresponding to the multiple deployment packages in a server;

[0073] A detection module, the detection module being configured to, in response to receiving a command to deploy an installation script on an execution machine, detect an execution environment on the execution machine and perform deployment preparation based on a deployment package and an installation script corresponding to the detected execution environment;

[0074] A creation module is configured to create a thread for each execution machine and execute the installation script received in the deployment preparation;

[0075] The parsing module is configured to detect and parse the exit status code of each installation script in response to the completion of the installation, and send the parsed information to the display device.

[0076] In a preferred embodiment of the present invention, the storage module is further configured as:

[0077] Create database storage space in the server;

[0078] The corresponding relationship between the execution environment, the deployment package corresponding to the execution environment, and the installation script corresponding to the deployment package is saved in the storage space.

[0079] In a preferred embodiment of the present invention, the detection module is further configured as follows:

[0080] Detect the execution environment of the installation script on the execution machine and detect whether the installation script has been installed on the execution machine;

[0081] In response to the fact that the installation script has not been installed on the execution machine, the deployment package and the installation script corresponding to the execution environment stored in the server are sent to the execution machine.

[0082] In a preferred embodiment of the present invention, the creation module is further configured to:

[0083] Determine whether the installation script has been installed on the execution machine;

[0084] In response to the installation script not being installed on the execution machine, creating a separate thread for each execution machine;

[0085] Each executor runs the installation script in its corresponding thread.

[0086] In a preferred embodiment of the present invention, threads are created by the Executors.newCacheThreadPool() function.

[0087] It should be particularly pointed out that the embodiment of the above system uses the embodiment of the above method to specifically illustrate the working process of each module, and those skilled in the art can easily think of applying these modules to other embodiments of the above method.

[0088] In addition, the above method steps and system units or modules can also be implemented using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the above steps or unit or module functions.

[0089] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.

[0090] The above-described embodiments, particularly any "preferred" embodiments, are possible examples of implementation and are presented only for a clear understanding of the principles of the present invention. Many changes and modifications may be made to the above-described embodiments without departing from the spirit and principles of the technology described herein. All modifications are intended to be included within the scope of this disclosure and protected by the appended claims.< / string> < / string> < / string> < / string> < / string>

Claims

1. A method for installing script deployment, It is characterized in that The following steps are involved: Store multiple deployment packages of different execution environments and installation scripts corresponding to the multiple deployment packages in a server, wherein the deployment packages include environment deployment packages and tool packages, and manage the deployment packages separately by dividing dependency pools, wherein the dependency pools include a Java dependency pool and a Python dependency pool; In response to receiving a command to deploy an installation script on an execution machine, detecting an execution environment on the execution machine and performing deployment preparation based on a deployment package and an installation script corresponding to the detected execution environment, wherein the detection of the execution environment includes matching dependency detection, distribution of deployment packages and install*.sh file detection, deployment directory cleaning, and granting execution permissions to install*.sh files; Create a thread for each executor and execute the installation script received in the deployment preparation, wherein the thread creation includes creating a cacheable thread pool through Executors.newCacheThreadPool() and creating an execution thread for each executor, managing the destruction function of the thread pool through the @PreDestroy annotation, and deploying the thread class DeployEnvironment to implement Callable <string>Interface, through Future <string> result = execService.submit() function obtains the deployment status information returned by the thread;< / string> < / string> In response to the installation being completed, detecting and parsing the exit status code of each of the installation scripts, and sending the parsed information to a display device; The storing of multiple deployment packages of different execution environments and installation scripts corresponding to the multiple deployment packages in the server includes: creating a database storage space in the server; saving the corresponding relationship between the execution environment, the deployment package corresponding to the execution environment, and the installation script corresponding to the deployment package in the storage space; In response to receiving a command to deploy an installation script on an execution machine, detecting an execution environment on the execution machine and performing deployment preparation based on a deployment package and an installation script corresponding to the detected execution environment includes: detecting the execution environment of the installation script on the execution machine and detecting whether the installation script has been installed on the execution machine; in response to the installation script not being installed on the execution machine, sending the deployment package and the installation script corresponding to the execution environment stored in the server to the execution machine; Creating a thread for each of the execution machines and executing the installation script received during the deployment preparation includes: determining whether the installation script has been installed on the execution machine; in response to the installation script not being installed on the execution machine, creating a separate thread for each of the execution machines; and each of the execution machines running the installation script in the corresponding thread.

2. A device deployed by an installation script, It is characterized in that The device comprises: A storage module, wherein the storage module is configured to store multiple deployment packages of different execution environments and installation scripts corresponding to the multiple deployment packages in a server, wherein the deployment packages include environment deployment packages and toolkits, and the deployment packages are managed separately by dividing dependency pools, wherein the dependency pools include a Java dependency pool and a Python dependency pool; A detection module, wherein the detection module is configured to, in response to receiving a command to deploy an installation script on an execution machine, detect an execution environment on the execution machine and perform deployment preparation based on a deployment package and an installation script corresponding to the detected execution environment, wherein the detection of the execution environment includes matching dependency detection, distribution of deployment packages and install*.sh file detection, deployment directory cleaning, and granting execution permissions to install*.sh files; A creation module is configured to create a thread for each executor and execute the installation script received in the deployment preparation, wherein the thread creation includes creating a cacheable thread pool through Executors.newCacheThreadPool() and creating an execution thread for each executor, managing the destruction function of the thread pool through the @PreDestroy annotation, and deploying the thread class DeployEnvironment to implement Callable <string>Interface, through Future <string> result = execService.submit() function obtains the deployment status information returned by the thread;< / string> < / string> A parsing module, wherein the parsing module is configured to detect and parse the exit status code of each installation script in response to the completion of the installation, and send the parsed information to the display device; The storage module is further configured to: create a database storage space in the server; save the corresponding relationship between the execution environment, the deployment package corresponding to the execution environment, and the installation script corresponding to the deployment package into the storage space; The detection module is further configured to: detect the execution environment of the installation script on the execution machine and detect whether the installation script has been installed on the execution machine; in response to the installation script not being installed on the execution machine, send the deployment package corresponding to the execution environment and the installation script stored in the server to the execution machine; The creation module is also configured to: determine whether the installation script has been installed on the execution machine; in response to the installation script not being installed on the execution machine, create a separate thread for each execution machine; and each execution machine runs the installation script in the corresponding thread.