Software environment deployment method and computer readable storage medium
By generating and sending system environment configuration commands and application software configuration commands, multiple computers can automatically complete software environment deployment, solving the problem of time-consuming and labor-consuming manual deployment and improving efficiency and reliability.
Patent Information
- Application Number
- CN202311014200.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-10
- Publication Date
- 2025-02-18
AI Technical Summary
When there are more software to deploy or the number of test PCs is large, deploying one by one through manual operations will consume more manpower and time, resulting in higher costs.
Provide a software environment deployment method, by receiving configuration information, generating system environment configuration commands and application software configuration commands, and sending these commands to multiple computers, so that multiple computers can realize software environment deployment under the control of instructions.
This method can improve the deployment efficiency of software environment, reduce costs, avoid differences in software environments of multiple computers, and reduce differences in the test results due to different software operating environments, thereby improving the reliability of test results.
Smart Images

Figure CN119473312A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular to a software environment deployment method and a computer-readable storage medium. Background Art
[0002] To implement batch testing of engineering samples, the usual practice is to manually deploy the software environment on multiple test personal computers (PCs), then install multiple engineering samples on the multiple test PCs and run the test scripts for testing.
[0003] However, when there are many softwares to be deployed or the number of test PCs is large, if each test PC is deployed one by one manually, it will consume a lot of manpower and time, resulting in high costs. Summary of the invention
[0004] The embodiments of the present disclosure provide a software environment deployment method and a computer-readable storage medium, which solve the problem that when there are many software to be deployed or a large number of test PCs, more manpower and time will be consumed, resulting in high costs.
[0005] To achieve the above objectives, the embodiments of the present disclosure adopt the following technical solutions:
[0006] On the one hand, a software environment deployment method is provided, the method comprising: first, receiving configuration information, the configuration information comprising configuration information of an operating system environment and configuration information of application software. Then, generating a system environment configuration command according to the configuration information of the operating system environment, the system environment configuration command being used to instruct multiple computers to configure the operating system environment according to the configuration information of the operating system environment. Generating an application software configuration command according to the configuration information of the application software, the application software configuration command being used to instruct multiple computers to configure the application software according to the configuration information of the application software. Finally, sending the system environment configuration command and the application software configuration command to multiple computers.
[0007] The software environment deployment method provided by the embodiment of the present disclosure first receives configuration information, which includes configuration information of the operating system environment and configuration information of the application software. Then, a system environment configuration command is generated according to the configuration information of the operating system environment, and an application software configuration command is generated according to the configuration information of the application software. Finally, the system environment configuration command and the application software configuration command are sent to multiple computers, and the multiple computers implement software environment deployment under the control of the two commands. Compared with deploying each test PC one by one through manual operation, the software environment deployment efficiency can be improved and the cost can be reduced. Moreover, the software environment deployment method provided by the embodiment of the present disclosure can avoid differences in the software environments of multiple computers, reduce the differences in the test results caused by the different software operating environments, and improve the reliability of the test results.
[0008] In some embodiments, the configuration information also includes network protocol IP address information of multiple computers, and sending system environment configuration commands and application software configuration commands to multiple computers includes: sending system environment configuration commands and application software configuration commands to multiple computers based on the IP address information of multiple computers.
[0009] The software environment deployment method provided by the embodiment of the present disclosure can improve the efficiency of software environment deployment and reduce costs by sending system environment configuration commands and application software configuration commands to multiple computers according to the IP address information of multiple computers. It can also avoid differences in the software environments of multiple computers, reduce differences in test results caused by different software running environments, and improve the reliability of test results.
[0010] In some embodiments, sending system environment configuration commands and application software configuration commands to multiple computers includes: starting multiple threads, and in each thread, sending system environment configuration commands and application software configuration commands to at least one computer among the multiple computers.
[0011] The software environment deployment method provided by the embodiment of the present disclosure can improve the efficiency of software environment deployment and improve resource utilization by starting multiple threads and sending system environment configuration commands and application software configuration commands to at least one computer among multiple computers.
[0012] In some embodiments, the configuration information further includes a first value, the first value is used to indicate the number of multiple computers to which IP addresses need to be assigned, and before sending system environment configuration commands and application software configuration commands to the multiple computers based on the IP address information of the multiple computers, the method further includes: determining a second value based on the IP address information, the second value is used to indicate the number of IP addresses assigned to the multiple computers. Determine whether the configuration information is wrong based on the first value and the second value.
[0013] The software environment deployment method provided by the embodiment of the present disclosure can determine whether an error occurs in the configuration information based on the first value and the second value, thereby determining whether a computer to which the software environment is to be deployed is omitted.
[0014] In some embodiments, the configuration information of the application software includes storage address information of the application software, and the storage address information is used to indicate the address where the installation package of the application software is stored in the remote server. The application software configuration command includes a mount command, and the mount command is used to instruct multiple computers to mount the address indicated by the storage address information. The above-mentioned generating the application software configuration command according to the configuration information of the application software includes: generating the mount command according to the storage address information.
[0015] The software environment deployment method provided by the embodiment of the present disclosure can more conveniently implement the copying of the application software installation package by storing the application software installation package in the remote server.
[0016] In some embodiments, the configuration information of the application software also includes software identification information of the application software. The application software configuration command also includes a software copy command, and the software copy command is used to instruct multiple computers: according to the storage address information, copy the installation package of the application software corresponding to the software identification information to the local computer. The above-mentioned generating the application software configuration command according to the configuration information of the application software also includes: generating the software copy command according to the storage address information and the software identification information.
[0017] In some embodiments, before generating a software copy command based on the storage address information and the software identification information, the method further includes: storing an installation package of the application software corresponding to the software identification information at an address indicated by the storage address information in a remote server.
[0018] In some embodiments, the application software configuration command also includes a software installation command, and the software installation command is used to instruct multiple computers to install the application software corresponding to the software identification information. The above-mentioned generating the application software configuration command according to the configuration information of the application software also includes: generating the software installation command according to the software identification information.
[0019] In some embodiments, the configuration information further includes a preset number of times, and the method further includes: receiving an execution result of a target command from a target computer, the target computer being one of a plurality of computers, the target command being a system environment configuration command or an application software configuration command, and the execution result being used to indicate whether the result of the target computer executing the target command is success or failure. When the execution result indicates that the result of the target computer executing the target command is failure, and the total number of times the result of the target computer executing the target command is failure is less than or equal to the preset number of times, the target command is sent to the target computer again.
[0020] The software environment deployment method provided by the embodiment of the present disclosure sets a preset number of times in the configuration information, and when it is determined according to the execution result that the result of the target computer executing the target command is a failure, and the total number of times the result of the target computer executing the target command is less than or equal to the preset number of times, the target command is sent to the target computer again, so that the target computer executes the target command again. Thus, in a scenario where the computer can successfully execute the target command by repeatedly executing the target command, for example, in a scenario where the target command fails to execute due to network instability, the target command can be successfully executed without manual operation, and the deployment efficiency of the software environment can be improved.
[0021] In some embodiments, the method further includes: when the execution result indicates that the target computer successfully executes the target command, sending a verification command to the target computer, the verification command is used to instruct the target computer to send verification information. The verification information includes: the storage address of the application software mounted on the target computer, the version information of the installed application software, and the information of the operating system environment of the target computer.
[0022] Determine whether the software environment of the target computer is successfully deployed based on the configuration information of the operating system environment, the configuration information of the application software and the verification information. Whether the software environment of the target computer is successfully deployed includes: whether the storage address of the application software mounted on the target computer is consistent with the storage address information, whether the version information of the application software installed on the target computer is consistent with the version information of the application software corresponding to the software identification information, and whether the information of the operating system environment of the target computer is consistent with the configuration information of the operating system environment.
[0023] If it is determined that the software environment of the target computer is deployed successfully, the next target command is sent to the target computer.
[0024] The software environment deployment method provided by the embodiment of the present disclosure first sends a verification command to the target computer when the execution result indicates that the target computer executes the target command successfully, and the verification command is used to instruct the target computer to send verification information. Then, according to the configuration information of the operating system environment, the configuration information of the application software and the verification information, it is determined whether the software environment of the target computer is successfully deployed. Finally, when it is determined that the software environment of the target computer is successfully deployed, the next target command is sent to the target computer. By verifying twice whether the target computer successfully executes the target command during the process of software environment deployment on the target computer, the reliability of software environment deployment can be improved.
[0025] In some embodiments, the method further includes: generating a deployment result report, the deployment result report including a target command, an execution result, a verification command, and verification information.
[0026] The software environment deployment method provided by the embodiment of the present disclosure generates a deployment result report, which includes a target command, an execution result, a verification command, and verification information, so as to facilitate subsequent manual processing or program script correction of errors.
[0027] In some embodiments, the configuration information of the operating system environment includes the configuration information of the firewall, the preset time and the preset host name. The configuration information of the firewall is used to instruct to shut down the firewall. The system environment configuration command includes at least one of the following: a command to shut down the firewall, a command to set the system time and a command to modify the host name. The command to shut down the firewall is used to instruct multiple computers to shut down the firewall. The command to set the system time is used to instruct multiple computers to set the system time according to the preset time. The command to modify the host name is used to instruct multiple computers to modify the host name according to the preset host name.
[0028] On the other hand, a software environment deployment method is also provided, the method comprising: receiving a system environment configuration command, the system environment configuration command is a command generated according to the configuration information of the operating system environment in the configuration information, the system environment configuration command is used to instruct multiple computers to configure the operating system environment according to the configuration information of the operating system environment. Under the control of the system environment configuration command, the operating system environment is configured according to the configuration information of the operating system environment. Receive an application software configuration command, the application software configuration command is a command generated according to the configuration information of the application software in the configuration information, the application software configuration command is used to instruct multiple computers to configure the application software according to the configuration information of the application software. Under the control of the application software configuration command, the application software is configured according to the configuration information of the application software.
[0029] In some embodiments, the configuration information of the application software includes storage address information of the application software, and the storage address information is used to indicate the address where the installation package of the application software is stored in the remote server. The application software configuration command includes a mount command, and the mount command is used to instruct multiple computers to mount the address indicated by the storage address information. The above-mentioned configuring the application software according to the configuration information of the application software under the control of the application software configuration command includes: under the control of the mount command, mounting the address indicated by the storage address information.
[0030] In some embodiments, the configuration information of the application software also includes software identification information of the application software; the application software configuration command also includes a software copy command, and the software copy command is used to instruct multiple computers: according to the storage address information, copy the installation package of the application software corresponding to the software identification information to the local computer. Under the control of the application software configuration command, configuring the application software according to the configuration information of the application software also includes: under the control of the software copy command, according to the storage address information, copying the installation package of the application software corresponding to the software identification information to the local computer.
[0031] In some embodiments, the application software configuration command also includes a software installation command, and the software installation command is used to instruct multiple computers to install the application software corresponding to the software identification information. Under the control of the application software configuration command, the application software is configured according to the configuration information of the application software, and further includes: under the control of the software installation command, the application software corresponding to the software identification information is installed.
[0032] In some embodiments, the configuration information further includes a preset number of times, and the method further includes: sending an execution result of a target command, the target command being a system environment configuration command or an application software configuration command, and the execution result is used to indicate whether the result of executing the target command is success or failure. When the execution result indicates that the result of executing the target command is failure, and the total number of times the result of executing the target command is failure is less than or equal to the preset number of times, the target command is received and executed again.
[0033] In some embodiments, the method further includes: receiving a verification command, and under the control of the verification command, sending verification information, the verification information including: the storage address of the mounted application software, version information of the installed application software installation package, and information of the operating system environment.
[0034] In some embodiments, the configuration information of the operating system environment includes the configuration information of the firewall, the preset time and the preset host name. The configuration information of the firewall is used to instruct to shut down the firewall. The system environment configuration command includes at least one of the following: a command to shut down the firewall, a command to set the system time and a command to modify the host name. The command to shut down the firewall is used to instruct multiple computers to shut down the firewall. The command to set the system time is used to instruct multiple computers to set the system time according to the preset time. The command to modify the host name is used to instruct multiple computers to modify the host name according to the preset host name.
[0035] On the other hand, a computer-readable storage medium is provided, which stores a computer program. When the computer program runs on a processor, the processor executes the software environment deployment method provided in the aforementioned aspect, or executes the software environment deployment method provided in the other aspect.
[0036] It can be understood that the beneficial effects that can be achieved by the software environment deployment method provided on the other hand and the computer-readable storage medium provided on the other hand in the above-mentioned embodiments of the present disclosure can be referred to the beneficial effects of the software environment deployment method provided on the one hand above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A software architecture diagram of a software environment deployment method according to some embodiments;
[0038] Figure 2 A software architecture diagram of another software environment deployment method according to some embodiments;
[0039] Figure 3 A flowchart of a software environment deployment method according to some embodiments;
[0040] Figure 4 A flowchart of another software environment deployment method according to some embodiments;
[0041] Figure 5 A flowchart of another software environment deployment method according to some embodiments;
[0042] Figure 6 A flowchart of yet another software environment deployment method according to some embodiments;
[0043] Figure 7 A schematic diagram of the structure of a software environment deployment device according to some embodiments;
[0044] Figure 8 A schematic diagram of the structure of another software environment deployment device according to some embodiments;
[0045] Fig. 9 is a schematic structural diagram of an electronic device according to some embodiments. DETAILED DESCRIPTION
[0046] The following will be combined with the accompanying drawings to clearly and completely describe the technical solutions in some embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments provided by the present disclosure, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present disclosure.
[0047] Unless the context requires otherwise, throughout the specification and claims, the term "including" is to be interpreted as an open, inclusive meaning, that is, "including, but not limited to". In the description of the specification, the terms "one embodiment", "some embodiments", "exemplary embodiments", "exemplarily" or "some examples" and the like are intended to indicate that specific features, structures, materials or characteristics associated with the embodiment or example are included in at least one embodiment or example of the present disclosure. The schematic representation of the above terms does not necessarily refer to the same embodiment or example. In addition, the specific features, structures, materials or characteristics may be included in any one or more embodiments or examples in any appropriate manner.
[0048] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "plurality" means two or more.
[0049] When describing some embodiments, the expressions "coupled" and "connected" and their derivatives may be used. For example, when describing some embodiments, the term "connected" may be used to indicate that two or more components are in direct physical or electrical contact with each other. For another example, when describing some embodiments, the term "coupled" may be used to indicate that two or more components are in direct physical or electrical contact. However, the term "coupled" may also refer to two or more components that are not in direct contact with each other, but still cooperate or interact with each other. The embodiments disclosed herein are not necessarily limited to the contents of this document.
[0050] “At least one of A, B, and C” has the same meaning as “at least one of A, B, or C” and both include the following combinations of A, B, and C: A only, B only, C only, the combination of A and B, the combination of A and C, the combination of B and C, and the combination of A, B, and C.
[0051] “A and / or B” includes the following three combinations: A only, B only, and a combination of A and B.
[0052] The use of "adapted to" or "configured to" herein is meant to be open and inclusive language that does not exclude devices adapted or configured to perform additional tasks or steps.
[0053] Additionally, the use of “based on” is meant to be open and inclusive, as a process, step, calculation, or other action “based on” one or more stated conditions or values may, in practice, be based on additional conditions or values beyond those stated.
[0054] Before introducing the embodiments of the present disclosure, the technical terms and background technologies involved in the present disclosure are first introduced.
[0055] Jenkins: It is an open source continuous integration (CI) tool that provides a user-friendly interface. It is mainly used for continuous and automatic building / testing of software projects and monitoring the operation of external tasks.
[0056] Client program (also called Client) refers to the program that corresponds to the server and provides local services to customers.
[0057] Workstation program (also called Worker): is a background thread or process running on the server, used to perform central processing unit (CPU) intensive tasks to avoid blocking the main thread.
[0058] World Wide Web server program (also called Sever): is a program that provides network (Web) services, used to receive client requests and return responses.
[0059] Paramiko: is a Python-based SSH (secure shell) library that can be used to implement remote command execution, file transfer, intermediate SSH proxy and other functions.
[0060] Secure Shell (SSH): is a network security protocol used to securely log in and execute commands on a remote computer. It prevents eavesdropping and denial of service attacks by encrypting communication data, providing high security and confidentiality.
[0061] Secure shell client (SSH Client): is an application used to connect to an SSH server, usually used to remotely log in to a remote computer, execute commands, and transfer files.
[0062] Secure file transfer protocol (SFTP): is a file transfer protocol based on the SSH protocol, which provides a secure method to transfer files between computers and is more secure than traditional file transfer protocols.
[0063] Secure file transfer protocol client (SFTPClient): is a client library for implementing file transfer on the SSH protocol. It provides functions such as secure file transfer and remote file management and can be used on different operating systems and platforms.
[0064] JavaScript object notation (JSON): is a lightweight data exchange format commonly used for data transmission and storage in Web development.
[0065] Numerical Python (Numpy) is a mathematical library for Python that provides multidimensional array objects, various derived objects (such as masked arrays and matrices), and various routines for fast array operations, including mathematics, logic, shape operations, sorting, selection, input / output (I / O), discrete Fourier transform, basic linear algebra, basic statistical operations, random simulation, etc.
[0066] Mount command: It is used to connect a file system (such as a hard disk, storage device, or remote file system) to the current system in a Linux system so that the file system can be accessed and used in the operating system.
[0067] In order to quickly and timely discover potential problems in the early production stage of products (for example, NAND flash memory), test PCs are generally placed in standard racks, the products to be tested are inserted into the test PCs, and tools such as Jenkins are used to call scripts for batch testing. When performing batch testing, ensuring the uniformity of the software environment between each test PC and the synchronization of the software operating environment of each test PC with the local development environment of the developer can reduce the differences in the test results caused by different software operating environments and improve the reliability of the test results.
[0068] To achieve batch testing of engineering samples, the usual practice is: first, deploy the software environment on multiple test PCs through manual operation to ensure the uniformity of the software environment between each test PC and the synchronization of the software running environment of each test PC with the local development environment of the developer. Then, multiple engineering samples are installed on multiple test PCs and the test scripts are run for testing.
[0069] However, when there are many softwares to be deployed or the number of test PCs is large, manually deploying each test PC one by one will consume much manpower and time, resulting in high costs.
[0070] In order to solve the problem that a large amount of software needs to be deployed, or a large number of test PCs will consume a lot of manpower and time, resulting in high costs, the embodiment of the present disclosure provides a software environment deployment method, by generating and sending system environment configuration commands and application software configuration commands to multiple computers according to configuration information, multiple computers implement software environment deployment under the control of the two commands, which can improve software environment deployment efficiency and reduce costs.
[0071] like Figure 1As shown, it is a software architecture diagram of the software environment deployment method provided by the embodiment of the present disclosure. The client in the software architecture diagram can be a test PC, and the server is used to deploy the software environment to the client. Specifically, the client can execute the user-side program, and the server can execute the workstation program and the World Wide Web server program to execute the software environment deployment method. The workstation program and the World Wide Web server program can run on the same server, or can run on different server, which is not limited by the embodiment of the present disclosure. The embodiment of the present disclosure takes the example of the server specifically executing the crawler program, the client's operating system is the Linux system, and the client executes the shell command.
[0072] As shown in the basic service layer, the crawler's third-party library paramiko can be used to remotely connect to the secure shell client through the SSH protocol and to remotely connect to the secure file transfer protocol client through the SFTP protocol, so as to upload and download files, confirm whether the file exists, etc. The test results can be saved in the JSON lightweight data exchange format. The digital crawler can also be used to interactively verify the client's output results and the parameters in the server-side configuration file to determine whether the target keyword exists in the output results, and make further corresponding processing based on the judgment results.
[0073] As shown in the application layer, the server side can start multiple threads, and each thread can communicate with each other, thereby improving the performance and resource utilization of the workstation program and the World Wide Web server program, for example, starting thread 1 to thread n, where n is a positive integer greater than 1. The workstation program on the server side can send a command to a client-side program on the client side in each thread, and the client-side program can execute the command and return the execution result of the command to the workstation program. The workstation program can perform data analysis based on the execution result of the command to determine whether the command achieves the expected result, thereby realizing the deployment of the software environment.
[0074] Specifically, Figure 2 First, the workstation program can generate a host pool based on relevant parameters in the server-side configuration file, the host pool including multiple target Internet Protocol (IP) addresses, and check the total number of target IP addresses in the host pool and the total number of target execution IP addresses set in the configuration file to avoid missing some target execution IP addresses in the generated host pool.
[0075] Secondly, the workstation program can generate an action pool based on relevant parameters in the configuration file. The action pool includes relevant parameters of the actions to be completed, such as system setting related parameters, remote path mounting to local and required software related parameters.
[0076] Then, the workstation program can start multiple threads, and in each thread, send relevant commands to the client program based on the parameters in the operation pool to complete system settings, mount remote servers, and install application software. Among them, the system setting operation includes closing the firewall, modifying the host name, and setting the system time. The remote server mounting operation includes mounting the remote server program path to the client program and copying files. The workstation program can also use the mount command to determine whether the path of the World Wide Web server program is successfully mounted to the client program. The application software installation operation includes a shell command to check the installation operation, specifically using the shell command to check whether the installation is completed. If the installation is successful, continue to execute the next operation. If the installation fails, uninstall and reinstall. The workstation program can also use Numpy to perform data analysis on the output results after the client program executes the command to determine whether the command achieves the expected result. If the expected result is achieved, the process is terminated. If the expected result is not achieved, the script program is exited with an abnormal status code, which is convenient for subsequent manual processing.
[0077] Finally, if Figure 1 As shown, the workstation program on the server side can output the results: test report and script execution log. The test report is used to indicate the test results of the engineering sample. For example, the json format can be used to record the results of each test PC testing the engineering sample in the form of a dictionary. The script execution log is used to indicate the exceptions in the process of each test PC executing the command. For example, the IP address of each test PC and the success or failure of each command execution and the relevant detailed information of the failed steps can be recorded in the form of a dictionary according to the expected sequence of steps in the configuration file and written into the json file to facilitate subsequent manual processing or program script correction (debugging).
[0078] Optionally, the software environment deployment method provided in the embodiments of the present disclosure can be applied to a workstation server and multiple computers to which software environments are to be deployed, where the workstation server generates and sends system environment configuration commands and application software configuration commands to multiple computers based on configuration information, and multiple computers implement software environment deployment under the control of the two commands. Alternatively, it can be applied to multiple computers to which software environments are to be deployed, where any one of the multiple computers generates and sends system environment configuration commands and application software configuration commands to the remaining computers based on configuration information, and the multiple computers implement software environment deployment under the control of the two commands. The embodiments of the present disclosure take the application of the method to a workstation server and multiple computers to which software environments are to be deployed as an example for exemplary description.
[0079] Figure 3 A software environment deployment method is provided in an embodiment of the present disclosure, and the method includes the following steps S301-S304.
[0080] S301. A workstation server receives configuration information, where the configuration information includes configuration information of an operating system environment and configuration information of application software.
[0081] The configuration information can be determined by the developer based on the local development environment and the software environment of the computer to be deployed. The configuration information of the operating system environment is used to deploy the operating system parameters of the computer to be deployed, and the configuration information of the application software is used to deploy the software of the computer to be deployed. In the software environment deployment method provided by the embodiment of the present disclosure, the developer can modify the parameters in the software environment deployment process by modifying the configuration information, which makes the modification more convenient.
[0082] In a possible embodiment, Figure 4 As shown, the workstation program is run on the workstation server and the web server program is run on the remote server. The configuration file can be stored in the remote server, and the workstation server can receive the configuration information sent by the remote server.
[0083] S302: The workstation server generates a system environment configuration command according to the configuration information of the operating system environment, where the system environment configuration command is used to instruct multiple computers to configure the operating system environment according to the configuration information of the operating system environment.
[0084] In a possible embodiment, the configuration information of the operating system environment includes configuration information of the firewall, a preset time, and a preset host name. The configuration information of the firewall is used to instruct to close the firewall. The system environment configuration command includes at least one of the following: a command to close the firewall, a command to set the system time, and a command to modify the host name. The command to close the firewall is used to instruct multiple computers to close the firewall, the command to set the system time is used to instruct multiple computers to set the system time according to the preset time, and the command to modify the host name is used to instruct multiple computers to modify the host name according to the preset host name.
[0085] S303: The workstation server generates an application software configuration command according to the configuration information of the application software, where the application software configuration command is used to instruct multiple computers to configure the application software according to the configuration information of the application software.
[0086] In a possible embodiment, the configuration information of the application software includes storage address information of the application software, and the storage address information is used to indicate the address where the installation package of the application software is stored in the remote server. The application software configuration command includes a mount command, and the mount command is used to instruct multiple computers to mount the address indicated by the storage address information. The above-mentioned workstation server generates an application software configuration command based on the configuration information of the application software, including: the workstation server generates a mount command based on the storage address information. The software environment deployment method provided in the embodiment of the present disclosure can more conveniently implement the copying of the application software installation package by storing the installation package of the application software in the remote server.
[0087] In a possible embodiment, the configuration information of the application software also includes software identification information of the application software. The application software configuration command also includes a software copy command, and the software copy command is used to instruct multiple computers: according to the storage address information, copy the installation package of the application software corresponding to the software identification information to the local computer. The above-mentioned workstation server generates the application software configuration command according to the configuration information of the application software, and also includes: the workstation server generates the software copy command according to the storage address information and the software identification information.
[0088] In a possible embodiment, before the workstation server generates a software copy command based on the storage address information and the software identification information, the method further includes: the workstation server stores the installation package of the application software corresponding to the software identification information at the address indicated by the storage address information in the remote server.
[0089] In a possible embodiment, the application software configuration command also includes a software installation command, and the software installation command is used to instruct multiple computers to install the application software corresponding to the software identification information. The above-mentioned workstation server generates the application software configuration command according to the configuration information of the application software, and also includes: the workstation server generates the software installation command according to the software identification information.
[0090] S304. The workstation server sends system environment configuration commands and application software configuration commands to multiple computers.
[0091] In a possible embodiment, the configuration information also includes IP address information of multiple computers, and the above-mentioned workstation server sends system environment configuration commands and application software configuration commands to multiple computers, including: the workstation server sends system environment configuration commands and application software configuration commands to multiple computers according to the IP address information of multiple computers.
[0092] Optionally, the IP address information of the above-mentioned multiple computers may include the IP network segments of the multiple computers, or may include the host IP ranges of the multiple computers, which is not limited in the embodiments of the present disclosure.
[0093] In a possible embodiment, the workstation server sends the system environment configuration command and the application software configuration command to the multiple computers, including: the workstation server starts multiple threads, and in each thread, sends the system environment configuration command and the application software configuration command to at least one computer among the multiple computers. The embodiment of the present disclosure does not limit the specific number of the multiple threads and the specific number of the at least one computer.
[0094] For example, Figure 4 As shown, the workstation server can start n threads, and in the n threads, send target commands to n computers, where the target commands are system environment configuration commands or application software configuration commands, and n is a positive integer greater than 1. The software environment deployment method provided by the embodiment of the present disclosure can improve the efficiency of software environment deployment and resource utilization by starting multiple threads and sending system environment configuration commands and application software configuration commands to at least one computer among multiple computers.
[0095] In a possible embodiment, the configuration information also includes a first numerical value, which is used to indicate the number of multiple computers that need to be assigned IP addresses. Before the workstation server sends system environment configuration commands and application software configuration commands to the multiple computers based on the IP address information of the multiple computers, the method also includes: the workstation server determines a second numerical value based on the IP address information, and the second numerical value is used to indicate the number of IP addresses assigned to the multiple computers. Based on the first numerical value and the second numerical value, it is determined whether an error occurs in the configuration information.
[0096] For example, the number of computers in the software environment to be configured is 10, and the 10 computers need to be assigned 10 IP addresses, and the first value is 10. When the workstation server determines 6 IP addresses based on the IP address information, it can be understood that the number of IP addresses assigned to the 10 computers is 6, and the second value is 6. The workstation server can determine that the IP address information in the configuration information is wrong based on the first value 10 and the second value 6. Further, the workstation server can prompt the developer or tester to check whether the IP address information in the configuration information is wrong, and determine whether the 10 computers in the software environment to be configured are missing.
[0097] The software environment deployment method provided by the embodiment of the present disclosure is as follows: first, the workstation server receives configuration information, and the configuration information includes configuration information of the operating system environment and configuration information of the application software. Then, the workstation server generates a system environment configuration command according to the configuration information of the operating system environment, and generates an application software configuration command according to the configuration information of the application software. Finally, the workstation server sends the system environment configuration command and the application software configuration command to multiple computers, and the multiple computers implement software environment deployment under the control of the two commands. Compared with deploying each test PC one by one through manual operation, the software environment deployment efficiency can be improved and the cost can be reduced. Moreover, the software environment deployment method provided by the embodiment of the present disclosure can avoid differences in the software environments of multiple computers, reduce the differences in the test results caused by the different software operating environments, and improve the reliability of the test results.
[0098] In a possible embodiment, Figure 5 As shown, the software environment deployment method provided by the embodiment of the present disclosure further includes steps S305-S308 after the above step S304.
[0099] S305: The computer receives a system environment configuration command. The system environment configuration command is a command generated according to the configuration information of the operating system environment in the configuration information, and the system environment configuration command is used to instruct multiple computers to configure the operating system environment according to the configuration information of the operating system environment.
[0100] For example, Figure 4 As shown, any one of the computers 1 to n can receive the system environment configuration command.
[0101] S306. Under the control of the system environment configuration command, the computer configures the operating system environment according to the configuration information of the operating system environment.
[0102] For example, Figure 4 As shown, computer 1 to computer n can turn off the firewall under the control of the firewall turn off command, set the system time under the control of the system time set command, and modify the host name under the control of the host name modify command, and the embodiments of the present disclosure will not be repeated here.
[0103] S307: The computer receives an application software configuration command. The application software configuration command is a command generated according to the configuration information of the application software in the configuration information, and the application software configuration command is used to instruct multiple computers to configure the application software according to the configuration information of the application software.
[0104] S308. Under the control of the application software configuration command, the computer configures the application software according to the configuration information of the application software.
[0105] In a possible embodiment, the configuration information of the application software includes storage address information of the application software, and the storage address information is used to indicate the address where the installation package of the application software is stored in the remote server. The application software configuration command includes a mount command, and the mount command is used to instruct multiple computers to mount the address indicated by the storage address information. The above-mentioned computer configures the application software according to the configuration information of the application software under the control of the application software configuration command, including: the computer mounts the address indicated by the storage address information under the control of the mount command.
[0106] In a possible embodiment, the configuration information of the application software also includes software identification information of the application software. The application software configuration command also includes a software copy command, and the software copy command is used to instruct multiple computers: according to the storage address information, copy the installation package of the application software corresponding to the software identification information to the local computer. The above-mentioned computer configures the application software according to the configuration information of the application software under the control of the application software configuration command, and also includes: the computer, under the control of the software copy command, copies the installation package of the application software corresponding to the software identification information to the local computer according to the storage address information.
[0107] In a possible embodiment, the application software configuration command also includes a software installation command, and the software installation command is used to instruct multiple computers to install the application software corresponding to the software identification information. The above-mentioned computer configures the application software according to the configuration information of the application software under the control of the application software configuration command, and further includes: the computer installs the application software corresponding to the software identification information under the control of the software installation command.
[0108] For example, Figure 4 As shown, computer 1 to computer n can mount the address indicated by the storage address information under the control of the mount command, can also copy the installation package of the application software corresponding to the software identification information to the local according to the storage address information under the control of the software copy command, and can also install the application software corresponding to the software identification information under the control of the software installation command. Specifically, the A application software corresponding to the software identification information can be installed under the control of the A software installation command, and the B application software corresponding to the software identification information can be installed under the control of the B software installation command.
[0109] The software environment deployment method provided by the embodiment of the present disclosure can receive a system environment configuration command from each of the multiple computers, and configure the operating system environment according to the configuration information of the operating system environment under the control of the system environment configuration command. Each computer can also receive an application software configuration command, and configure the application software according to the configuration information of the application software under the control of the application software configuration command, thereby realizing the software environment deployment of the multiple computers. Compared with deploying each test PC one by one through manual operation, the software environment deployment efficiency can be improved and the cost can be reduced.
[0110] In a possible embodiment, Figure 5 As shown, the configuration information also includes a preset number of times. The embodiment of the present disclosure does not limit the specific value of the preset number of times. The software environment deployment method provided by the embodiment of the present disclosure further includes steps S309-S312 after the above step S308.
[0111] S309, the computer sends the execution result of the target command, the target command is a system environment configuration command or an application software configuration command, and the execution result is used to indicate whether the result of executing the target command is success or failure. The embodiment of the disclosure does not limit the target command to be a system environment configuration command or an application software configuration command.
[0112] For example, Figure 4 As shown, each computer from computer 1 to computer n can send the execution result of the system environment configuration command to the workstation server.
[0113] S310, the workstation server receives an execution result of a target command from a target computer, where the target computer is one of a plurality of computers, and the target command is a system environment configuration command or an application software configuration command. The execution result is used to indicate whether the result of the target computer executing the target command is success or failure.
[0114] Optionally, the target computer may be any one of a plurality of computers, which is not limited in the embodiments of the present disclosure.
[0115] For example, take the target computer as computer 1 and the target command as the system environment configuration command. Figure 4 As shown, the workstation server can receive the execution result sent by the computer 1, and the execution result can be used to indicate whether the result of the computer 1 executing the system environment configuration command is success or failure.
[0116] S311. When the execution result indicates that the target computer fails to execute the target command, and the total number of times the target computer fails to execute the target command is less than or equal to a preset number, the workstation server sends the target command to the target computer again.
[0117] For example, taking the preset number of times as 2, when the execution result indicates that the result of computer 1 executing the system environment setting command is a failure, and the total number of times that computer 1 fails to execute the system environment setting command is 1, and 1 is less than the preset number of times 2, the workstation server sends the system environment setting command to computer 1 again.
[0118] In a possible embodiment, when the execution result indicates that the target computer fails to execute the target command, and the total number of times the target computer fails to execute the target command is greater than a preset number, the workstation server stops sending the target command to the target computer.
[0119] S312: When the execution result indicates that the result of executing the target command is a failure, and the total number of times that the result of executing the target command is a failure is less than or equal to a preset number, the computer receives and executes the target command again.
[0120] For example, taking the preset number of times as 2, when the execution result indicates that the result of computer 1 executing the system environment setting command is failure, and the total number of failures is 1, which is less than the preset number of times 2, computer 1 can receive the system environment setting command again and execute it.
[0121] The software environment deployment method provided by the embodiment of the present disclosure sets a preset number of times in the configuration information. When the workstation server determines that the result of the target computer executing the target command is a failure according to the execution result, and the total number of times the result of the target computer executing the target command is less than or equal to the preset number of times, the target command is sent to the target computer again, so that the target computer executes the target command again. Thus, in the scenario where the computer can successfully execute the target command by repeatedly executing the target command, for example, in the scenario where the target command fails to execute due to network instability, the target instruction can be successfully executed without manual operation, which can improve the deployment efficiency of the software environment.
[0122] In a possible embodiment, Figure 6 As shown, the software environment deployment method provided by the embodiment of the present disclosure further includes steps S313-S316 after the above step S310.
[0123] S313: When the execution result indicates that the target computer successfully executes the target command, the workstation server sends a verification command to the target computer. The verification command is used to instruct the target computer to send verification information, which includes: the storage address of the application software mounted on the target computer, the version information of the installed application software, and the information of the operating system environment of the target computer.
[0124] For example, Figure 4As shown, when the execution result indicates that computer 1 executes the mount command successfully, the workstation server can send a verification command to computer 1, which can be a mount command, and the verification command is used to instruct computer 1 to send verification information, which can include the storage address of the application software mounted by computer 1.
[0125] For example, Figure 4 As shown, when the execution result indicates that computer 1 executes the software installation command successfully, the workstation server can send a verification command to computer 1, and the verification command can be "pip list|grep cryptogaphy". The verification command is used to instruct computer 1 to send verification information, and the verification information may include version information of the installed application software, such as "cryptography 2.5", where "cryptography" is the identifier of the application software and "2.5" is the version information of the application software.
[0126] S314. The computer receives the verification command and sends verification information under the control of the verification command.
[0127] For example, Figure 4 As shown, computer 1 can receive a verification command and, under the control of the verification command, send verification information to the workstation server.
[0128] S315. The workstation server determines whether the software environment of the target computer is deployed successfully based on the configuration information of the operating system environment, the configuration information of the application software, and the verification information.
[0129] Among them, whether the software environment of the target computer is deployed successfully includes: whether the storage address of the application software mounted on the target computer is consistent with the storage address information, whether the version information of the application software installed on the target computer is consistent with the version information of the application software corresponding to the software identification information, and whether the information of the operating system environment of the target computer is consistent with the configuration information of the operating system environment.
[0130] Specifically, the workstation server determines whether the software environment of the target computer is successfully deployed based on the configuration information of the operating system environment, the configuration information of the application software and the verification information, including multiple possible embodiments. The embodiment of the present disclosure takes the example of a workstation server determining whether the software environment of the target computer is successfully deployed based on whether the version information of the application software installed on the target computer is consistent with the version information of the application software corresponding to the software identification information.
[0131] For example, Figure 4As shown, taking computer 1 sending verification information, which includes version information of installed application software as an example, when the workstation server determines, based on the configuration information and verification information of the application software, that the version information of the application software installed on computer 1 is consistent with the version information of the application software corresponding to the software identification information, the workstation server can determine that the software environment of computer 1 is successfully deployed.
[0132] In a possible embodiment, the workstation server may determine whether the software environment of the target computer is successfully deployed through numpy.
[0133] For example, Figure 4 As shown, the verification information sent by computer 1 includes the version information of the installed application software, such as "cryptography 2.5". The workstation server can convert "cryptography 2.5" into an array type ['cryptography', '2.5'], and determine whether the software environment of computer 1 is successfully deployed by confirming whether the version information of the application software corresponding to the array and the software identification information is consistent.
[0134] S316: If it is determined that the software environment of the target computer is deployed successfully, the workstation server sends the next target command to the target computer.
[0135] Specifically, if the workstation server determines that the software environment of the target computer is deployed successfully, the next target command is sent to the target computer. If the workstation server determines that the software environment of the target computer is deployed unsuccessfully, the target command is stopped from being sent to the target computer.
[0136] The software environment deployment method provided by the embodiment of the present disclosure first sends a verification command to the target computer when the execution result indicates that the target computer has successfully executed the target command. The verification command is used to instruct the target computer to send verification information. Then, the workstation server determines whether the software environment of the target computer is successfully deployed based on the configuration information of the operating system environment, the configuration information of the application software, and the verification information. Finally, after determining that the software environment of the target computer is successfully deployed, the workstation server sends the next target command to the target computer. By verifying twice whether the target computer has successfully executed the target command during the process of software environment deployment on the target computer, the reliability of software environment deployment can be improved.
[0137] In a possible embodiment, Figure 6 As shown, the software environment deployment method provided in the embodiment of the present disclosure further includes step S317. The embodiment of the present disclosure is illustratively described by taking the example of including step S317 after the above step S316.
[0138] S317. The workstation server generates a deployment result report, which includes a target command, an execution result, a verification command, and verification information.
[0139] For example, Figure 4 As shown, the workstation server can generate a deployment result report, which can include the IP address information of computer 1 to computer n, the target command sent to each computer, the execution result of each computer executing the target command, the verification command sent to each computer, and the verification information returned by each computer executing the verification command. Therefore, when any computer fails to be deployed, the computer where the deployment failed can be quickly determined through the IP address information in the deployment result report, and according to the target command, execution result, verification command and verification information in the deployment result, it can be convenient to perform manual processing or program script correction of errors in the future.
[0140] The software environment deployment method provided by the embodiment of the present disclosure generates a deployment result report, which includes a target command, an execution result, a verification command, and verification information, so as to facilitate subsequent manual processing or program script correction of errors.
[0141] like Figure 7 As shown, the embodiment of the present disclosure further provides a software environment deployment device 700, which may be the workstation server in the above embodiment. The software environment deployment device 700 may be used to implement the software environment deployment method in any of the above embodiments.
[0142] The software environment deployment device 700 includes: a processing module 701 and a transceiver module 702. Exemplarily, the processing module 701 is used to control and manage the actions of the software environment deployment device 700, and to execute the processing performed by the software environment deployment device 700 in the above-mentioned embodiment. The transceiver module 702 is used to support the software environment deployment device to receive configuration information, and to send system environment configuration commands and application software configuration commands. Optionally, if the software environment deployment device 700 includes a storage unit, the processing module 701 can also execute a program or instruction stored in the memory, so that the software environment deployment device 700 implements the method and function involved in any of the above-mentioned embodiments.
[0143] Exemplarily, the processing module 701 may be used to execute, for example Figure 3 Steps S302-S303 in the embodiment of the present invention, and / or other processes for the technology described herein. The transceiver module 702 may be used to perform, for example, Figure 3 Steps S301 and S304 in the embodiment, and / or other processes for the technology described herein. All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here.
[0144] Exemplarily, in hardware implementation, the functions of the processing module 701 can be implemented by a processor, and the functions of the transceiver module 702 can be implemented by a transceiver (transmitter / receiver) and / or a communication interface, wherein the processing module 701 can be embedded in or independent of the processor of the software environment deployment device 700 in the form of hardware, or can be stored in the memory of the software environment deployment device 700 in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned functional units.
[0145] Figure 8 A schematic structural diagram of a software environment deployment device 800 is shown. The software environment deployment device 800 may be the computer in the above-mentioned embodiment. The software environment deployment device 800 may be used to implement the software environment deployment method in any of the above-mentioned embodiments.
[0146] The software environment deployment device 800 includes: a processing module 801 and a transceiver module 802. Exemplarily, the transceiver module 802 is used to support the software environment deployment device 800 to receive system environment configuration commands and application software configuration commands. The processing module 801 is used to control and manage the actions of the software environment deployment device 800, and to execute the processing performed by the software environment deployment device 800 in the above embodiment. Optionally, if the software environment deployment device 800 includes a storage unit, the processing module 801 can also execute the program or instruction stored in the memory, so that the software environment deployment device 800 implements the method and function involved in any of the above embodiments.
[0147] Exemplarily, the processing module 801 may be used to execute, for example Figure 5 Steps S306, S308 in, and / or other processes for the technology described herein. The transceiver module 802 may be used to perform, for example Figure 5 Steps S305, S307, S309, S312, and / or other processes for the technology described herein. Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here.
[0148] Exemplarily, in hardware implementation, the functions of the transceiver module 802 may be performed by a transceiver (transmitter / receiver) and / or a communication interface, and the functions of the processing module 801 may be performed by a processor, wherein the processing module 801 may be embedded in or independent of the processor of the software environment deployment device 800 in the form of hardware, or may be stored in the memory of the software environment deployment device 800 in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned functional units.
[0149] like Fig. 9As shown, the embodiment of the present disclosure further provides an electronic device 900, which includes a processor 910 and a memory 920 coupled to the processor 910. The electronic device 900 may be the above-mentioned workstation server, or may be the above-mentioned computer, which is not limited in the embodiment of the present application.
[0150] In a possible embodiment, the processor 910 may be a central processing unit.
[0151] In a possible embodiment, when the electronic device 900 is the above-mentioned workstation server, the memory 920 may store instructions, and the processor 910 may execute the instructions, so that the electronic device 900 performs the following operations: Figure 3 , Figure 5 or Figure 6 The steps corresponding to the workstation server in the system call method shown.
[0152] In a possible embodiment, when the electronic device 900 is the above-mentioned computer, the memory 920 may store instructions, and the processor 910 may execute the instructions, so that the electronic device 900 performs the following operations: Figure 3 , Figure 5 or Figure 6 The steps corresponding to the computer in the system call method shown.
[0153] The present disclosure also provides a computer-readable storage medium storing a computer program. When the computer program is executed on a processor, the processor is caused to execute the following Figure 3 , Figure 5 or Figure 6 The steps corresponding to the workstation server in the system call method shown in FIG. 10 , or, executing the ... Figure 3 , Figure 5 or Figure 6 The steps corresponding to the computer in the system call method shown.
[0154] The above detailed description of the software environment deployment method and the analysis of beneficial effects can be correspondingly referred to the software environment deployment device 700, the software environment deployment device 800 and the computer-readable storage medium, and the embodiments of the present application will not be repeated here.
[0155] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A software environment deployment method, characterized in that: The method comprises: Receiving configuration information, the configuration information including configuration information of the operating system environment and configuration information of the application software; Generate a system environment configuration command according to the configuration information of the operating system environment, wherein the system environment configuration command is used to instruct multiple computers to configure the operating system environment according to the configuration information of the operating system environment; generating an application software configuration command according to the configuration information of the application software, wherein the application software configuration command is used to instruct the multiple computers to configure the application software according to the configuration information of the application software; The system environment configuration command and the application software configuration command are sent to the plurality of computers.
2. The method according to claim 1, characterized in that The configuration information also includes network protocol IP address information of the multiple computers, and the sending of the system environment configuration command and the application software configuration command to the multiple computers includes: The system environment configuration command and the application software configuration command are sent to the multiple computers according to the IP address information of the multiple computers.
3. The method according to claim 1, characterized in that The sending the system environment configuration command and the application software configuration command to the multiple computers includes: A plurality of threads are started, and in each of the threads, the system environment configuration command and the application software configuration command are sent to at least one computer among the plurality of computers.
4. The method according to claim 2, characterized in that: The configuration information further includes a first value, and the first value is used to indicate the number of the plurality of computers to which the IP addresses need to be allocated. Before sending the system environment configuration command and the application software configuration command to the plurality of computers according to the IP address information of the plurality of computers, the method further includes: Determining a second value according to the IP address information, wherein the second value is used to indicate the number of IP addresses allocated to the plurality of computers; It is determined whether an error occurs in the configuration information according to the first value and the second value.
5. The method according to any one of claims 1 to 4, characterized in that The configuration information of the application software includes storage address information of the application software, and the storage address information is used to indicate the address where the installation package of the application software is stored in the remote server; the application software configuration command includes a mount command, and the mount command is used to instruct the multiple computers to mount the address indicated by the storage address information; Generating an application software configuration command according to the configuration information of the application software includes: Generate the mount command according to the storage address information.
6. The method according to claim 5, characterized in that The configuration information of the application software also includes software identification information of the application software; the application software configuration command also includes a software copy command, and the software copy command is used to instruct the multiple computers to: copy the installation package of the application software corresponding to the software identification information to the local according to the storage address information; The step of generating an application software configuration command according to the configuration information of the application software further includes: The software copy command is generated according to the storage address information and the software identification information.
7. The method according to claim 6, characterized in that Before generating the software copy command according to the storage address information and the software identification information, the method further includes: The installation package of the application software corresponding to the software identification information is stored in the address indicated by the storage address information in the remote server.
8. The method according to claim 6, characterized in that The application software configuration command also includes a software installation command, and the software installation command is used to instruct the multiple computers to install the application software corresponding to the software identification information; The step of generating an application software configuration command according to the configuration information of the application software further includes: The software installation command is generated according to the software identification information.
9. The method according to claim 8, characterized in that The configuration information also includes a preset number of times, and the method further includes: receiving an execution result of a target command from a target computer, the target computer being one of the multiple computers, the target command being the system environment configuration command or the application software configuration command, the execution result being used to indicate whether the result of the target computer executing the target command is success or failure; When the execution result indicates that the target computer fails to execute the target command, and the total number of times that the target computer fails to execute the target command is less than or equal to the preset number, the target command is sent to the target computer again.
10. The method according to claim 9, characterized in that The method further comprises: When the execution result indicates that the target computer executes the target command successfully, sending a verification command to the target computer, the verification command is used to instruct the target computer to send verification information, the verification information including: the storage address of the application software mounted by the target computer, the version information of the installed application software and the information of the operating system environment of the target computer; Determining whether the software environment of the target computer is successfully deployed according to the configuration information of the operating system environment, the configuration information of the application software and the verification information, wherein whether the software environment of the target computer is successfully deployed includes: whether the storage address of the application software mounted by the target computer is consistent with the storage address information, whether the version information of the application software installed by the target computer is consistent with the version information of the application software corresponding to the software identification information, and whether the information of the operating system environment of the target computer is consistent with the configuration information of the operating system environment; If it is determined that the software environment of the target computer is deployed successfully, the next target command is sent to the target computer.
11. The method according to claim 10, characterized in that The method further comprises: A deployment result report is generated, wherein the deployment result report includes the target command, the execution result, the verification command, and the verification information.
12. The method according to claim 1, characterized in that The configuration information of the operating system environment includes configuration information of the firewall, a preset time and a preset host name. The configuration information of the firewall is used to instruct to close the firewall. The system environment configuration command includes at least one of the following: a command to close the firewall, a command to set the system time and a command to modify the host name. The command to close the firewall is used to instruct the multiple computers to close the firewall. The command to set the system time is used to instruct the multiple computers to set the system time according to the preset time. The command to modify the host name is used to instruct the multiple computers to modify the host name according to the preset host name.
13. A software environment deployment method, characterized in that: The method comprises: receiving a system environment configuration command, wherein the system environment configuration command is a command generated according to configuration information of the operating system environment in the configuration information, and the system environment configuration command is used to instruct multiple computers to configure the operating system environment according to the configuration information of the operating system environment; Under the control of the system environment configuration command, configuring the operating system environment according to the configuration information of the operating system environment; receiving an application software configuration command, wherein the application software configuration command is a command generated according to the configuration information of the application software in the configuration information, and the application software configuration command is used to instruct the multiple computers to configure the application software according to the configuration information of the application software; Under the control of the application software configuration command, the application software is configured according to the configuration information of the application software.
14. The method according to claim 13, characterized in that The configuration information of the application software includes storage address information of the application software, and the storage address information is used to indicate the address where the installation package of the application software is stored in the remote server; the application software configuration command includes a mount command, and the mount command is used to instruct the multiple computers to mount the address indicated by the storage address information; The configuring of the application software according to the configuration information of the application software under the control of the application software configuration command includes: Under the control of the mount command, the address indicated by the storage address information is mounted.
15. The method according to claim 14, characterized in that The configuration information of the application software also includes software identification information of the application software; the application software configuration command also includes a software copy command, and the software copy command is used to instruct the multiple computers to: copy the installation package of the application software corresponding to the software identification information to the local according to the storage address information; The step of configuring the application software according to the configuration information of the application software under the control of the application software configuration command further includes: Under the control of the software copy command, the installation package of the application software corresponding to the software identification information is copied to the local computer according to the storage address information.
16. The method according to claim 15, characterized in that The application software configuration command also includes a software installation command, and the software installation command is used to instruct the multiple computers to install the application software corresponding to the software identification information; The step of configuring the application software according to the configuration information of the application software under the control of the application software configuration command further includes: Under the control of the software installation command, the application software corresponding to the software identification information is installed.
17. The method according to claim 16, characterized in that The configuration information also includes a preset number of times, and the method further includes: Sending an execution result of a target command, where the target command is the system environment configuration command or the application software configuration command, and the execution result is used to indicate whether the result of executing the target command is success or failure; When the execution result indicates that the result of executing the target command is failure, and the total number of times that the result of executing the target command is failure is less than or equal to the preset number, the target command is received and executed again.
18. The method according to claim 17, characterized in that The method further comprises: A verification command is received, and under the control of the verification command, verification information is sent, wherein the verification information includes: the storage address of the mounted application software, the version information of the installed application software installation package, and the information of the operating system environment.
19. The method according to claim 18, characterized in that The configuration information of the operating system environment includes configuration information of the firewall, a preset time and a preset host name. The configuration information of the firewall is used to instruct to close the firewall. The system environment configuration command includes at least one of the following: a command to close the firewall, a command to set the system time and a command to modify the host name. The command to close the firewall is used to instruct the multiple computers to close the firewall. The command to set the system time is used to instruct the multiple computers to set the system time according to the preset time. The command to modify the host name is used to instruct the multiple computers to modify the host name according to the preset host name.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed on a processor, enables the processor to execute the software environment deployment method as described in any one of claims 1 to 12, or enables the processor to execute the software environment deployment method as described in any one of claims 13 to 19.