Server deployment method and device, equipment and storage medium

By obtaining the image configuration update package and updating the image configuration table, automatically downloading and storing the operating system image files, and combining the website server and preset scripts, the server is fully automatic deployment, solving the problem of low server deployment efficiency in the existing technology and improving deployment efficiency.

CN119806558APending Publication Date: 2025-04-11CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411785105.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-05
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The existing server deployment method is inefficient and requires a separate operating system image mount for each server, which is very laborious and inefficient.

Method used

By obtaining the image configuration update package, updating the image configuration table, determining the image download path, downloading and storing the operating system image files, and combining the website server and preset scripts, the image files are automatically installed.

Benefits of technology

It realizes fully automatic deployment of servers, improves deployment efficiency and reduces manual operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119806558A_ABST
    Figure CN119806558A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of server automatic deployment, and discloses a server deployment method and device, equipment and a storage medium, and the method comprises the steps: obtaining a mirror image configuration update package, and updating a mirror image configuration table based on the mirror image configuration update package; determining a mirror image downloading path based on the mirror image configuration table, determining a mirror image file of the operating system from the mirror image downloading path, and storing the mirror image file in a mirror image mounting directory; determining a target service corresponding to the mirror image mounting directory in the website server; and reading the mirror image file based on the preset script and the target service, and installing based on the mirror image file. The method is a centralized mirror image mounting mode, the system can automatically download the mirror image file, automatically store the decompressed file in the mirror image mounting directory, expose the decompressed file through the website server, and deploy the decompressed file in combination with the preset script, so that the server installation operation is completed, the full-automatic deployment of the server is realized, and the deployment efficiency of the server is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of server automated deployment, and in particular to a server deployment method, device, equipment and storage medium. Background Art

[0002] Server deployment is the process of installing and configuring applications, services, or databases on a server to ensure that they run stably in a network environment so that users can access and use them through the Internet or other networks. Currently, server automation deployment is done by calling the server's motherboard management controller management interface to mount the operating system image as a virtual disk. When there are multiple devices, each server needs to be mounted repeatedly, which is a large workload and inefficient. Summary of the invention

[0003] In view of this, the present invention provides a server deployment method, apparatus, device and storage medium to solve the problem of low server deployment efficiency.

[0004] In a first aspect, the present invention provides a server deployment method, the method comprising:

[0005] Obtain an image configuration update package, and update the image configuration table based on the image configuration update package;

[0006] Determine the image download path based on the image configuration table, determine the image file of the operating system from the image download path, and store the image file in the image mount directory;

[0007] Determine the target service corresponding to the image mounting directory in the website server;

[0008] The image file is read based on a preset script and the target service to perform installation based on the image file.

[0009] In an optional implementation, the obtaining of the image configuration update package and updating the image configuration table based on the image configuration update package includes:

[0010] In response to a configuration update operation, obtaining the mirror configuration update package;

[0011] The mirror configuration table is updated based on the configuration updater and the mirror configuration update package.

[0012] In an optional implementation, determining the image file of the operating system from the image download path and storing the image file in the image mount directory includes:

[0013] Downloading the compressed image file of the operating system from the image download path, and decompressing the compressed image file to determine the image file;

[0014] The image file is stored in the image mount directory.

[0015] In an optional implementation, the path of the image mounting directory includes at least an operating system name, an operating system version, and an operating system architecture.

[0016] In an optional implementation, determining the target service corresponding to the image mounting directory in the website server includes:

[0017] The configuration of the target service corresponding to the image mounting directory is added to the configuration of the website server to determine the target service corresponding to the image mounting directory.

[0018] In an optional implementation, the reading the image file based on a preset script and the target service to perform installation based on the image file includes:

[0019] Extract the target path in the preset script;

[0020] Reading the image file from the target service based on the target path;

[0021] The installation operation is performed based on the image file.

[0022] In an optional embodiment, the method further includes:

[0023] In response to the first configuration operation, determining a path of the image mounting directory;

[0024] In response to the second configuration operation, the preset script is determined.

[0025] The server deployment method provided by the present invention obtains an image configuration update package, and updates the image configuration table based on the image configuration update package; determines the image download path based on the image configuration table, and determines the image file of the operating system from the image download path, and stores the image file in the image mount directory; determines the target service corresponding to the image mount directory in the website server; reads the image file based on the preset script and the target service, so as to install the system based on the image file. This method is a centralized image mounting method, and the system can automatically download the image file and automatically store the decompressed file in the image mount directory, and expose it through the website server, and deploy it in combination with the preset script, so as to complete the server installation operation, realize the full automatic deployment of the server, and improve the efficiency of server deployment.

[0026] In a second aspect, the present invention provides a server deployment device, the device comprising:

[0027] An update package acquisition module is used to acquire an image configuration update package and update the image configuration table based on the image configuration update package;

[0028] A file acquisition module, used to determine the image download path based on the image configuration table, determine the image file of the operating system from the image download path, and store the image file in the image mounting directory;

[0029] A service determination module, used to determine the target service corresponding to the image mounting directory in the website server;

[0030] The installation module is used to read the image file based on a preset script and the target service to perform installation based on the image file.

[0031] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0032] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to cause a computer to execute the method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0034] Figure 1 is a flow chart of a server deployment method according to an embodiment of the present invention;

[0035] Figure 2 is a schematic diagram of a server deployment architecture according to an embodiment of the present invention;

[0036] Figure 3 is a structural block diagram of a server deployment device according to an embodiment of the present invention;

[0037] Figure 4 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0039] In the existing server deployment, it is first necessary to prepare the operating system image file to be deployed, and the administrator connects to the management interface of the motherboard management controller of the server through the network. In the management interface of the motherboard management controller, the administrator selects the virtual CD mount function and mounts the operating system image file as a virtual CD. This method requires a separate mounting operation for each server, so when deploying a large number of servers, the workload is large and the efficiency is low. Based on this, the present invention provides a server deployment method, including obtaining an image configuration update package, and updating the image configuration table based on the image configuration update package; determining the image download path based on the image configuration table, and determining the image file of the operating system from the image download path, and storing the image file in the image mount directory; determining the target service corresponding to the image mount directory in the website server; reading the image file based on the preset script and the target service to install based on the image file. The server deployment method provided by the present invention can be applied to a server automated deployment management middle platform.

[0040] According to an embodiment of the present invention, a server deployment method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0041] In this embodiment, a server deployment method is provided. Figure 1 is a flow chart of a server deployment method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0042] Step S101: Obtain an image configuration update package, and update the image configuration table based on the image configuration update package.

[0043] An image configuration update package is a software package that contains new image configuration information or modified configuration information. The configuration information includes at least key information such as the storage location, version, and architecture of the operating system image. With the continuous development of technology and the release of new versions of operating systems, image configuration information needs to be continuously updated to ensure that the automated deployment system can correctly identify and deploy the latest operating system image. Image configuration update packages can be obtained in a variety of ways, including but not limited to manual download, automatic update, and third-party tools or services. The following is a detailed description of the above methods.

[0044] Manual download means that relevant technicians can visit a specific software repository or official website to manually download the latest image configuration update package.

[0045] Automatic update refers to the support of some automated deployment systems to automatically detect and download the latest image configuration update package. This automatic update mechanism usually relies on regular synchronization with the software repository or update checks based on specific trigger conditions.

[0046] Third-party tools or services refer to some third-party tools or services that may provide subscription and automatic update functions for image configuration update packages, which can simplify the update process.

[0047] After obtaining the image configuration update package, the image configuration table of the server automatic deployment tool is updated based on the image configuration update package. First, the image configuration update package is parsed to extract configuration information, and the configuration information is updated to the image configuration table, which can be a database table.

[0048] In some optional implementations, in the process of updating the mirror configuration table, old configuration information that conflicts with the new configuration information may be encountered. The system can enable a conflict handling mechanism, such as prompting the user to manually resolve the conflict, automatically overwriting the old configuration, or retaining the old configuration as a backup.

[0049] In some optional implementations, in order to ensure traceability and facilitate troubleshooting, an update log is recorded after the mirror configuration table is updated. The update log includes information such as update time and update content.

[0050] Step S102, determining the image download path based on the image configuration table, determining the image file of the operating system from the image download path, and storing the image file in the image mounting directory.

[0051] The image configuration table stores detailed information about the operating system image, such as the image name, image version, image download path, etc. The image configuration table ensures that the correct image file is downloaded and decompressed to the correct location. The server's automated deployment tool reads the image configuration table, obtains detailed information about the image to be downloaded, and obtains the download path.

[0052] The image file of the operating system is obtained according to the image download path. Specifically, a request can be sent to the image download path to receive the returned image file. The image file specifically refers to the ISO image file (Isolation image file, CD image file), which contains the complete installation image of the operating system. After the image file is obtained locally, it needs to be stored in a specific directory, which is the image mount directory. The image mount directory is a designated location for storing image files, which can be determined based on the information in the image configuration table.

[0053] Step S103, determining the target service corresponding to the mirror mounting directory in the website server.

[0054] The website server is a Web server. In order to allow other systems or clients to access the image file, the image needs to be mounted in a directory and exposed through the Web server. Through the Nginx (engine x) server, the image mounting directory is exposed as a Web service. Nginx is a high-performance HTTP (Hypertext Transfer Protocol) and reverse proxy Web server, which is used here to provide the image mounting directory (including the decompressed operating system image file) as a Web service. In this way, any client that can access the Nginx server can download the image resource through the HTTP protocol.

[0055] Step S104, reading the image file based on the preset script and the target service, so as to perform installation based on the image file.

[0056] The preset script is an automated deployment script that enables remote access to image files so that the operating system can be automatically installed when needed to complete server installation.

[0057] The target service is a Web service, which executes the preset script to download the image file from the Web server for automatic installation.

[0058] In some optional implementations, in a preset script, the reading path of the image file follows a preset path specification, illustratively, the path is "{operating system name} / {operating system version} / os / {operating system architecture}".

[0059] The server deployment method provided in this embodiment obtains an image configuration update package, and updates the image configuration table based on the image configuration update package; determines the image download path based on the image configuration table, and determines the image file of the operating system from the image download path, and stores the image file in the image mount directory; determines the target service corresponding to the image mount directory in the website server; reads the image file based on the preset script and the target service, so as to install the system based on the image file. This method is a centralized image mounting method, and the system can automatically download the image file and automatically store the decompressed file in the image mount directory, and expose it through the website server, and deploy it in combination with the preset script, so as to complete the server installation operation, realize the full automatic deployment of the server, and improve the efficiency of server deployment.

[0060] In this embodiment, a server deployment method is provided, which includes the following steps:

[0061] Step S201: Obtain an image configuration update package, and update the image configuration table based on the image configuration update package.

[0062] Specifically, the above step S201 includes: in response to a configuration update operation, obtaining the mirror configuration update package; and updating the mirror configuration table based on a configuration updater and the mirror configuration update package.

[0063] The server automated deployment management center can configure the operating system and generate image configuration files, such as image configuration update packages. In this embodiment, since the server automated deployment tool uses an offline system, in order to synchronize the online image configuration with the management center, the image configuration update package is first exported from the management center, and the image configuration update package is uploaded by relevant technical personnel. The upload operation of the relevant personnel is the configuration update operation, in which the relevant technical personnel will upload the image configuration update package, so that the server automated deployment tool can obtain the image configuration update package. Exemplarily, the relevant technical personnel can load the image configuration update package into the database of the server automated deployment tool through the configuration updater.

[0064] After obtaining the image configuration update package, the configuration updater is enabled, and the configuration updater provides the image configuration update function. First, the image configuration update package needs to be parsed, the configuration information therein needs to be extracted, and the configuration information needs to be written into the image configuration table, which can be a database table. The process of updating the image configuration table may involve operations such as adding new records, modifying existing records, and deleting records in the database table.

[0065] In some optional implementations, before updating the image configuration table, the system may verify the configuration information extracted from the image configuration update package, including verifying the integrity, format correctness, and compatibility with other system components of the configuration information.

[0066] Step S202: determine the image download path based on the image configuration table, determine the image file of the operating system from the image download path, and store the image file in the image mounting directory.

[0067] For details, please see Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.

[0068] Step S203, determining the target service corresponding to the image mounting directory in the website server.

[0069] For details, please see Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.

[0070] Step S204: reading the image file based on a preset script and the target service to perform installation based on the image file.

[0071] For details, please see Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.

[0072] In this embodiment, a server deployment method is provided, which includes the following steps:

[0073] Step S301: Obtain an image configuration update package, and update the image configuration table based on the image configuration update package.

[0074] For details, please see Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0075] Step S302: determine the image download path based on the image configuration table, determine the image file of the operating system from the image download path, and store the image file in the image mounting directory.

[0076] Specifically, in the above step S302, determining the image file of the operating system from the image download path and storing the image file in the image mount directory includes:

[0077] Step S3021, downloading a compressed image file of the operating system from the image download path, and decompressing the compressed image file to determine the image file;

[0078] Step S3022, storing the image file in the image mounting directory.

[0079] The image download path can be a URL (Uniform Resource Locator) pointing to a database storing operating system image files, and the specific image file can be located through the image download path. In this embodiment, the server automation deployment tool automatically downloads the compressed image file of the operating system from the image download path, and what is stored in the database is the compressed image file, so the compressed image file is downloaded through the image download path.

[0080] The compressed image file is decompressed by a decompression tool. For example, the bsdtar tool can be used to decompress the image file. Specifically, when decompressing, the server automation deployment tool can call the bsdtar command, specify the image file as input, and specify the image mount directory as output. Bsdtar reads the contents of the image file and decompresses it into the specified image mount directory.

[0081] In some optional implementations, the path of the image mount directory includes at least the operating system name, the operating system version, and the operating system architecture.

[0082] The path specification of the image mounting directory may be set in advance. In this embodiment, the image mounting directory follows the path specification "{operating system name} / {operating system version} / os / {operating system architecture}".

[0083] Step S303, determining the target service corresponding to the mirror mounting directory in the website server.

[0084] For details, please see Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.

[0085] Step S304: reading the image file based on a preset script and the target service to perform installation based on the image file.

[0086] For details, please see Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.

[0087] In this embodiment, a server deployment method is provided, which includes the following steps:

[0088] Step S401: Obtain an image configuration update package, and update the image configuration table based on the image configuration update package.

[0089] For details, please see Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0090] Step S402: determine the image download path based on the image configuration table, determine the image file of the operating system from the image download path, and store the image file in the image mounting directory.

[0091] For details, please see Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0092] Step S403, determining the target service corresponding to the image mounting directory in the website server.

[0093] Specifically, the above step S403 includes: adding the configuration of the target service corresponding to the image mounting directory to the configuration of the website server to determine the target service corresponding to the image mounting directory.

[0094] The website server is a Web server. Accordingly, the configuration of the target service corresponding to the mirror mounting directory is the Web service configuration. In this implementation, the Web service configuration of the mirror mounting directory is added to the Web server configuration.

[0095] Step S404: reading the image file based on a preset script and the target service to perform installation based on the image file.

[0096] Specifically, the above step S404 includes:

[0097] Step S4041, extracting the target path in the preset script;

[0098] Step S4042, reading the image file from the target service based on the target path;

[0099] Step S4043, performing installation operation based on the image file.

[0100] The preset script can use KS (Kickstart, a scripting language) script. The KS script follows the same path specification as the image mount directory to remotely read the image resource. The target path represents the reading path for reading the image file. The target path follows the preset path specification "{operating system name} / {operating system version} / os / {operating system architecture}". The target service refers to the Web service, which reads the image file from the Web server according to the target path. After reading the image file, the preset script can continue to execute the automated installation process based on the image file until the installation is completed, thereby realizing automated server deployment.

[0101] The server deployment method provided by the embodiment of the present invention provides a centralized image mounting method. The system automatically analyzes the type and version of the operating system to be installed, automatically downloads the operating system image, automatically decompresses the image to the standard path of the virtual machine or seed machine, exposes it through the Web server, and combines the automatic deployment of the KS script to realize remote image reading and installation. The centralized image mounting and the automatic pulling of the server automatic installation script architecture have higher deployment efficiency.

[0102] In some optional implementations, the server deployment method further includes: determining a path of the image mounting directory in response to the first configuration operation; and determining a preset script in response to the second configuration operation.

[0103] The server automated deployment management center provides image configuration management functions. Specifically, the server automated deployment management center module manages the image configuration dictionary, including the operating system name, image file name, operating system architecture, operating system version, download address, and mount path, exports the image configuration, and manages the image loading location in the automated installation script. The first configuration operation is used to represent the path configuration operation, and the second configuration operation is used to represent the script configuration operation, which is used to configure the preset script. Relevant technicians can maintain the image configuration as needed and configure the path of the image mount directory and the preset script.

[0104] As a specific application example of the present invention, the server deployment method is described. The method is applied to Figure 2 In the architecture shown in the figure, in this embodiment, the operation audit processing process is applied to the integrated delivery business of various cloud data centers of Company A. The specific steps are as follows:

[0105] Step S1, the operator configures the image download address and mount address information in the image dictionary module of the server automated deployment management platform, configures the image reading address in the KS script, and follows the path specification "{operating system name} / {operating system version} / os / {operating system architecture}";

[0106] Step S2, the integrator downloads the software update package containing the image configuration through the function of generating an offline toolkit in the server automated deployment management center;

[0107] Step S3, loading the software update package through the configuration update module of the server automatic deployment tool, and updating the image configuration table of the automatic deployment tool;

[0108] Step S4, the image loading module of the server automatic deployment tool downloads the operating system image ISO file from the specified image download path according to the image configuration table;

[0109] Step S5, the image loading module of the server automated deployment tool decompresses the image ISO file to the image mounting directory specified by the image configuration through the bsdtar tool, and the image mounting directory follows the path specification "{operating system name} / {operating system version} / os / {operating system architecture}";

[0110] Step S6, adding the Web service configuration of the mirror mount directory in the Web server configuration;

[0111] Step S7, execute the business logic and execute the specific business requested;

[0112] Step S8, when the server is automatically deployed, the automatic deployment KS script follows the path specification "{operating system name} / {operating system version} / os / {operating system architecture}" to download the image resource from the Web server for automatic installation.

[0113] This method establishes the specifications for image storage, mounting, and reading, realizes automatic downloading, automatic decompression and mounting, and automatic reading of image mounting, and realizes fully automatic deployment of servers. It can flexibly handle the mounting and deployment of various operating systems. For operating systems that appear in the future, it is only necessary to configure and add them according to the architecture designed by this method. The automated deployment system itself does not need to be modified, and the system has good scalability.

[0114] In this embodiment, a server deployment device is also provided, which is used to implement the above embodiments and implementation methods, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0115] This embodiment provides a server deployment device, such as Figure 3 As shown, including:

[0116] An update package acquisition module is used to acquire an image configuration update package and update the image configuration table based on the image configuration update package;

[0117] A file acquisition module, used to determine the image download path based on the image configuration table, determine the image file of the operating system from the image download path, and store the image file in the image mounting directory;

[0118] A service determination module, used to determine the target service corresponding to the image mounting directory in the website server;

[0119] The installation module is used to read the image file based on a preset script and the target service to perform installation based on the image file.

[0120] In some optional implementations, the update package acquisition module includes:

[0121] An update package acquisition unit, configured to acquire the mirror configuration update package in response to a configuration update operation;

[0122] The configuration table updating unit is used to update the mirror configuration table based on the configuration updater and the mirror configuration update package.

[0123] In some optional implementations, the file acquisition module includes:

[0124] A file downloading unit, used for downloading the compressed image file of the operating system from the image download path, and decompressing the compressed image file to determine the image file;

[0125] The file storage unit is used to store the image file in the image mounting directory.

[0126] In some optional implementations, the path of the image mounting directory includes at least the operating system name, the operating system version, and the operating system architecture.

[0127] In some optional implementations, the service determination module includes:

[0128] The service determination unit is used to add the configuration of the target service corresponding to the image mounting directory to the configuration of the website server to determine the target service corresponding to the image mounting directory.

[0129] In some optional implementations, the installation module includes:

[0130] A path extraction unit, used to extract the target path in the preset script;

[0131] A file reading unit, configured to read the image file from the target service based on the target path;

[0132] The installation execution unit is used to execute the installation operation based on the image file.

[0133] In some optional embodiments, the device further comprises:

[0134] A first configuration module, configured to determine a path of the image mounting directory in response to a first configuration operation;

[0135] The second configuration module is used to determine the preset script in response to the second configuration operation.

[0136] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0137] The server deployment device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0138] The embodiment of the present invention also provides a computer device having the above Figure 3 The server deployment device is shown.

[0139] See also Figure 4 , Figure 4 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 4 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 4 A processor 10 is taken as an example.

[0140] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0141] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0142] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0143] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0144] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0145] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0146] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0147] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention. Such modifications and variations are all within the scope defined by the present invention.

Claims

1. A server deployment method, characterized in that: The method comprises: Obtain an image configuration update package, and update the image configuration table based on the image configuration update package; Determine the image download path based on the image configuration table, determine the image file of the operating system from the image download path, and store the image file in the image mount directory; Determine the target service corresponding to the image mounting directory in the website server; The image file is read based on a preset script and the target service to perform installation based on the image file.

2. The method according to claim 1, characterized in that: The obtaining of the image configuration update package and updating the image configuration table based on the image configuration update package includes: In response to a configuration update operation, obtaining the mirror configuration update package; The mirror configuration table is updated based on the configuration updater and the mirror configuration update package.

3. The method according to claim 1, characterized in that The step of determining the image file of the operating system from the image download path and storing the image file in the image mounting directory includes: Downloading the compressed image file of the operating system from the image download path, and decompressing the compressed image file to determine the image file; The image file is stored in the image mount directory.

4. The method according to claim 3, characterized in that The path of the image mounting directory includes at least the operating system name, operating system version and operating system architecture.

5. The method according to claim 1, characterized in that Determining the target service corresponding to the image mounting directory in the website server includes: The configuration of the target service corresponding to the image mounting directory is added to the configuration of the website server to determine the target service corresponding to the image mounting directory.

6. The method according to claim 1, characterized in that The reading of the image file based on the preset script and the target service to perform installation based on the image file includes: Extract the target path in the preset script; Reading the image file from the target service based on the target path; The installation operation is performed based on the image file.

7. The method according to claim 4, characterized in that The method further comprises: In response to the first configuration operation, determining a path of the image mounting directory; In response to the second configuration operation, the preset script is determined.

8. A server deployment device, characterized in that: The device comprises: An update package acquisition module is used to acquire an image configuration update package and update the image configuration table based on the image configuration update package; A file acquisition module, used to determine the image download path based on the image configuration table, determine the image file of the operating system from the image download path, and store the image file in the image mounting directory; A service determination module, used to determine the target service corresponding to the image mounting directory in the website server; The installation module is used to read the image file based on a preset script and the target service to perform installation based on the image file.

9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the server deployment method according to any one of claims 1 to 7 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the server deployment method according to any one of claims 1 to 7.

Citation Information

Cited By

  • UKEY firmware updating method and device, computer equipment and storage medium

    CN120762708A