A program installation method, device, equipment, storage medium and program product

CN122195453APending Publication Date: 2026-06-12SUNGROW POWER SUPPLY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SUNGROW POWER SUPPLY CO LTD
Filing Date
2024-12-10
Publication Date
2026-06-12

AI Technical Summary

Technical Problem

Traditional manual application installation methods are inefficient, error-prone, and technically demanding, making them unsuitable for the rapidly growing demand for application installation.

Method used

By parsing the received program installation description information, the system obtains the target server's environment configuration information and the version information of the program to be installed, generates a program installation script, and controls the target server to execute the script to automatically install the program.

Benefits of technology

It improves the efficiency of server installation programs, meets the rapidly growing demand for application installations, and lowers the technical barrier for installation users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122195453A_ABST
    Figure CN122195453A_ABST
Patent Text Reader

Abstract

The application discloses a program installation method and device, equipment, a storage medium and a program product, and relates to the technical field of computers. The method comprises the following steps: analyzing received program installation description information to obtain program installation content information; obtaining environment configuration information and to-be-installed program version information of a target server according to the program installation content information; generating a program installation script according to the program installation description information, the environment configuration information and the to-be-installed program version information; and controlling the target server to execute the program installation script to install the program. The program installation script is automatically generated based on the program installation description information, and the server is controlled to execute the program installation script, so that the efficiency of installing the program on the server is improved, and the rapidly increasing application program installation demand can be met. Meanwhile, the installation user does not need to intervene in the program installation process, and the technical threshold is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a program installation method, apparatus, device, storage medium, and program product. Background Technology

[0002] In modern computing environments, application installation and environment configuration are complex and time-consuming processes. With the proliferation of cloud computing and distributed systems, enterprises need to quickly deploy and manage applications across multiple servers. However, different server environments and operating systems require different installation steps and configuration parameters, which increases the complexity of installation and management.

[0003] Traditional manual installation methods involve downloading software packages, unzipping and installing them, configuring environment variables, and resolving dependency issues. These methods are inefficient, error-prone, and technically demanding, making them unsuitable for the rapidly growing demand for application installations. Summary of the Invention

[0004] This application provides a program installation method, apparatus, device, storage medium, and program product to solve the problems of low efficiency, error-proneness, and high technical threshold of traditional manual installation methods.

[0005] In a first aspect, embodiments of this application provide a program installation method, including:

[0006] The received program installation description information is parsed to obtain the program installation content information;

[0007] Based on the program installation content information, obtain the target server's environment configuration information and the version information of the program to be installed;

[0008] Generate a program installation script based on the program installation description information, the environment configuration information, and the version information of the program to be installed.

[0009] Control the target server to execute the program installation script to install the program.

[0010] Secondly, embodiments of this application provide a program installation apparatus, including:

[0011] The parsing module is used to parse the received program installation description information to obtain the program installation content information;

[0012] The information acquisition module is used to acquire the target server's environment configuration information and the version information of the program to be installed based on the program installation content information;

[0013] The script generation module is used to generate a program installation script based on the program installation description information, the environment configuration information, and the version information of the program to be installed.

[0014] The script execution module is used to control the target server to execute the program installation script to install the program.

[0015] Thirdly, embodiments of this application provide an electronic device, the electronic device comprising:

[0016] At least one processor; and

[0017] A memory communicatively connected to the at least one processor; wherein,

[0018] The memory stores a computer program that can be executed by the at least one processor, which is then executed by the at least one processor to enable the at least one processor to perform the program installation method described in any embodiment of this application.

[0019] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer instructions that are used to cause a processor to execute and implement the program installation method described in any embodiment of this application.

[0020] Fifthly, embodiments of this application provide a computer program product including a computer program, which, when executed by a processor, implements the program installation method described in any embodiment of this application.

[0021] The technical solution of this application embodiment obtains program installation content information by parsing the received program installation description information; obtains the target server's environment configuration information and the version information of the program to be installed based on the program installation content information; generates a program installation script based on the program installation description information, environment configuration information, and the version information of the program to be installed; and controls the target server to execute the program installation script to install the program. Automatically generating the program installation script based on the program installation description information and controlling the server to execute the program installation script solves the problems of low efficiency, error-proneness, and high technical threshold of traditional manual installation methods. It has the beneficial effect of improving the efficiency of server installation programs and meeting the rapidly growing demand for application installation. At the same time, it also has the beneficial effect of reducing the technical threshold for program installation by eliminating the need for user intervention in the program installation process.

[0022] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this application, nor is it intended to limit the scope of this application. Other features of this application will become readily apparent from the following description. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 A flowchart illustrating a program installation method provided in Embodiment 1 of this application;

[0025] Figure 2 This is a schematic diagram illustrating the construction process of the program version information database;

[0026] Figure 3 A diagram illustrating the repair process of installing scripts for the program;

[0027] Figure 4 This is a schematic diagram of the structure of a program installation device provided in Embodiment 2 of this application;

[0028] Figure 5 A schematic diagram of the structure of an electronic device for implementing the program installation method of this application embodiment. Detailed Implementation

[0029] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0030] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0031] In computer science, an application program (or "App") is a computer program designed to help users accomplish one or more specific tasks. These tasks can range from mundane, such as word processing, calculations, and photo editing, to more complex tasks like designing 3D models and performing statistical analysis.

[0032] With the development of computer technology, a wide variety of applications have emerged, greatly facilitating users' work and lives. However, configuring the application installation environment and installing the application is a complex and time-consuming process. With the widespread adoption of cloud computing and distributed systems, enterprises need to quickly deploy and manage applications across multiple servers. Different server environments and operating systems require different installation steps and configuration parameters, which increases the complexity of installation and management.

[0033] In related technologies, installing applications on a server typically includes the following steps:

[0034] 1. Choose a suitable operating system and hardware platform: Before installing the application, you need to determine the server's operating system and hardware platform. Common server operating systems include Windows, Linux, and UNIX. Choose the appropriate operating system and hardware platform based on the application's requirements.

[0035] 2. Prepare the necessary software and tools: Before installing the application, you need to prepare the necessary software and tools. These may include operating system installation media, application installation packages, database software, development tools, and related drivers. 3. Install the operating system: You need to install the server's operating system, which can be done via a bootable CD, USB drive, or network boot. During the installation process, you need to select appropriate options according to the prompts and configure the necessary network settings.

[0036] 4. Configure the server: After installing the operating system, basic server configuration is required. This includes setting the hostname, domain name, IP address, DNS server, default gateway, and network firewall. 5. Install applications: Before installing applications, the application installation package needs to be transferred to the server. This can be done by uploading files, using network transfer tools, or using a CD. In practice, the above steps may be adjusted according to the specific requirements of the application and the server configuration. It is evident that traditional manual installation methods involve downloading software packages, decompressing and installing them, configuring environment variables, and resolving dependency issues. This is inefficient, error-prone, and technically demanding, making it unsuitable for the rapidly growing demand for application installations.

[0037] Example 1

[0038] Figure 1 This is a flowchart illustrating a program installation method provided in Embodiment 1 of this application. This embodiment is applicable to the automatic installation of server applications. The method can be executed by a program installation device, which can be implemented in hardware and / or software and can be configured in an electronic device. Figure 1 As shown, the method includes:

[0039] S110. Parse the received program installation description information to obtain the program installation content information.

[0040] The program installation description information can be understood as information describing the content of the program installation task. For example, the program installation description information could be a task requirement described in natural language by the user. The program installation content information can be understood as information related to the program installation, such as the name of the program to be installed, the address or serial number of the target server, and dependencies.

[0041] Specifically, the received program installation description information is parsed to obtain the parsing result, and the program installation content information in the parsing result is obtained.

[0042] For example, the program installation description information can be obtained by receiving user input of the program installation description information through a command-line interface, a web interface, or other interfaces. The methods for parsing the received program installation description information can include: methods based on manually written rules, methods based on text parsing and matching, methods based on machine learning, methods based on deep learning, and methods based on large models, etc., and this application embodiment does not impose any limitations on these methods.

[0043] This step parses the program installation description information to obtain information about the program's installation contents, providing important information for program installation. It can be extended to support new applications and installation requirements, adapting to the ever-changing technological environment.

[0044] S120. Obtain the target server's environment configuration information and the version information of the program to be installed based on the program installation content information.

[0045] The target server can be understood as the server on which the installation program needs to be installed. Environment configuration information refers to information related to the server's configuration, deployment, and management, such as server hardware configuration, operating system version, installed software, and network configuration. The version information of the installation program can include version date, version description, download link, and compatibility attributes. Compatibility attributes can include: operating system compatibility, hardware compatibility, dependency compatibility, 64-bit / 32-bit compatibility, network compatibility, scalability requirements, and driver support.

[0046] Specifically, based on the target server information and environment configuration information of the target server included in the parsed program installation content information, the version information of the program to be installed that is compatible with the environment configuration information is obtained based on the information of the program to be installed.

[0047] In one optional embodiment, the environment configuration information of the target server can be obtained by constructing an environment configuration information database and searching for the environment configuration information from the database based on the target server information contained in the program installation content information. Alternatively, the environment configuration information can be obtained from the target server based on the target server information contained in the program installation content information.

[0048] In another alternative embodiment, the version information of the program to be installed can be obtained by constructing a program version information database and searching for matching version information of the program to be installed from the database based on the program installation content information and environment configuration information. Alternatively, the version information of the program to be installed can be obtained from other sources based on the program installation content information and environment configuration information using methods such as large-scale modeling, web crawling algorithms, or web retrieval tools.

[0049] S130. Generate the program installation script based on the program installation description information, environment configuration information, and version information of the program to be installed.

[0050] The installation script can be understood as a piece of code that automates the installation task. It can be a batch script, a shell script, or other types of scripts, depending on the target operating system and installation requirements.

[0051] Specifically, the program installation script type is determined based on the program installation description information, environment configuration information, and version information of the program to be installed, and the corresponding program installation script is generated.

[0052] For example, the program installation script can be generated by using a script generation tool, a script generation template, or a large script generation model, based on the program installation description information, environment configuration information, and the version information of the program to be installed.

[0053] S140: Control the target server to execute the program installation script to install the program.

[0054] Specifically, the system controls the target server to execute the program installation script, downloads the program from the download link of the program installation script, and installs the program.

[0055] The technical solution of this application embodiment obtains program installation content information by parsing the received program installation description information; obtains the target server's environment configuration information and the version information of the program to be installed based on the program installation content information; generates a program installation script based on the program installation description information, environment configuration information, and the version information of the program to be installed; and controls the target server to execute the program installation script to install the program. Automatically generating the program installation script based on the program installation description information and controlling the server to execute the program installation script improves the efficiency of server-side program installation and can meet the rapidly growing demand for application installation. At the same time, users do not need to intervene in the program installation process, lowering the technical threshold.

[0056] As an optional embodiment of this application, S120, obtaining the environment configuration information of the target server and the version information of the program to be installed based on the program installation content information includes:

[0057] S121. Determine the target server based on the program installation content information, and obtain the environment configuration information of the target server.

[0058] Specifically, the target server for which the program needs to be installed is determined based on the parsed program installation content information, and the current environment configuration information of the server is obtained using specific commands or tools.

[0059] S122. Obtain the appropriate version information of the installation program based on the environment configuration information and the program installation content information.

[0060] Specifically, based on the information of the installation program to be installed in the program installation content information, all version information of the installation program to be installed is traversed, and the environment configuration information is matched with the compatibility attributes in the version information of the installation program to obtain the version information of the installation program that is compatible with the environment configuration of the target server.

[0061] This embodiment obtains the target server's environment configuration information through the program installation content information and determines the version information of the installation program that is compatible with the environment configuration information. It can automatically obtain the version information of the installation program that is compatible with the target server based on the environment configuration information, which solves the problem that different server environments and operating systems require different installation steps and configuration parameters, and improves the success rate and stability of the installation process.

[0062] In an optional embodiment, obtaining the appropriate installer version information based on the environment configuration information and the program installation content information includes:

[0063] Using a large retrieval model, the appropriate installation program version information is retrieved from the program version information database based on the environment configuration information and the program installation content information; wherein, the program version information database is built or updated based on program versions collected and processed through multiple methods.

[0064] The program version information database can be understood as a database consisting of multiple versions of the program. The large retrieval model can be understood as a large model with retrieval capabilities, which can be obtained by fine-tuning a pre-trained large model using a retrieval dataset.

[0065] Specifically, a search prompt is generated based on the environment configuration information and the program installation content information. This prompt is then input into the large search model, which, guided by the prompt, retrieves the version information of the program to be installed from a pre-built program version information database, which is compatible with the environment configuration information and the program installation content information.

[0066] For example, if the large retrieval model retrieves multiple compatible installer version information, the retrieved installer version information is sorted and filtered according to the selection strategy, such as returning the latest and most stable installer version information.

[0067] In a specific example Figure 2 This is a diagram illustrating the process of building a program version information repository. Figure 2 The version information database mentioned above is equivalent to the program version information database described in the embodiments of this application, and the version information mentioned above is equivalent to the program version information described in the embodiments of this application. For example... Figure 2 As shown, the process of building the program version information repository is as follows:

[0068] (1) Initialize the program version information database. Create the database structure and define table fields including program name, version time, compatibility attributes, and download link, etc.

[0069] (2) Obtain program version information through multiple channels. For example, access the official API of the program, call web search tools, or obtain program version information from multiple data sources or mirror sites through web crawling tools; program version information can also be obtained based on the retrieval capabilities of large model technology.

[0070] (3) Set up a version update strategy to update program version information regularly. For example, you can obtain updated program version information by subscribing to version information, or obtain the latest program version information periodically according to a scheduled task, or you can obtain manually updated program version information.

[0071] (4) Process program version information. Remove duplicate and erroneous data through data cleaning to ensure data quality. Merge duplicate data to retain the latest and most complete information. Ensure consistent data format across all fields through data standardization. Correct obvious spelling or formatting errors by correcting erroneous data. Fill in missing data based on information from other fields. Correct conflicting data from different sources to ensure data consistency.

[0072] (5) To ensure the correctness and integrity of the data in the program version information database, the obtained program version information is validated for content and format. For example, field integrity is validated by checking that the program name, version number, release date, and download link are not empty. Data type validation ensures that the data type of each field is correct, such as the version number being a string and the release date being a date format. Data range validation ensures that field values ​​are within a reasonable range, such as the version number conforming to the format (v1.0.0) and the release date not being earlier than the current date. Uniqueness validation ensures that the version numbers of different versions of the same program are unique. Consistency validation ensures that data remains consistent across different sources.

[0073] (6) Store the verified program version information into the program version information database.

[0074] As an optional embodiment of this application, S130, the step of generating a program installation script based on the program installation description information, the environment configuration information, and the version information of the program to be installed includes:

[0075] S131. Determine the program installation script type based on the environment configuration information.

[0076] The program installation script type can be any type of script used for program installation, such as batch scripts, shell scripts, Dockerfile execution scripts, JavaScript scripts, and Bash scripts.

[0077] Specifically, select the matching script type based on the target server's environment configuration information.

[0078] For example, Windows operating systems may require PowerShell scripts or batch scripts, Linux / Unix operating systems may require Bash scripts, and macOS operating systems typically use Bash scripts.

[0079] S132. Extract installation parameters from the version information of the program to be installed.

[0080] The installation parameters can be understood as the parameters required when installing the program, such as: download link DOWNLOAD_URL, installation path INSTALL_PATH, program name PROGRAM_NAME, and version VERSION.

[0081] S133. Input the environment configuration information, the program installation script type, the installation parameters and the program installation description information into the script to generate a large model and obtain the program installation script.

[0082] Among them, the script generation large model can be understood as a large model with the ability to generate scripts, which can be obtained by fine-tuning the pre-trained large model from the script dataset.

[0083] For example, script generation prompts are generated based on environment configuration information, program installation script type, installation parameters, and program installation description information. These prompts are then input into the large script generation model, causing the large model to generate the program installation script in response to the prompts.

[0084] In an optional embodiment, after generating the program installation script, a verification tool or algorithm can be used to verify the program installation script to check whether its syntax and logic are correct. The verified program installation script is then saved to a preset path and awaits execution.

[0085] This embodiment utilizes large model technology to generate a program installation script based on program installation description information, environment configuration information, and the version information of the program to be installed. This ensures the quality of the program installation script and improves the efficiency and accuracy of program installation.

[0086] As an optional embodiment of this application, S140, controlling the target server to execute the program installation script to install the program includes:

[0087] S141. Send the program installation script to the target server.

[0088] Specifically, the generated program installation script is sent to the target server that needs the program installed, and the target server waits for the program installation script to install the program.

[0089] For example, an electronic device that performs the program installation method, such as a client device, connects to a target server based on a preset transmission protocol and sends the program installation script to the target server via the preset transmission protocol.

[0090] S142. Remotely control the target server to execute the program installation script to download and install the program to be installed.

[0091] Specifically, the client device remotely commands the target server to execute the program installation script, downloads the appropriate version of the installation program according to the download link in the program installation script, and installs the installation program according to the installation process in the program installation script.

[0092] For example, you can use scp (Secure Copy Protocol) to securely copy the program installation script to a remote target server, log in to the target server, and remotely execute the program installation script from a local client using SSH commands.

[0093] As an optional embodiment of this application, it also includes:

[0094] Monitor the installation log files of the target server;

[0095] If the installation log file indicates that an error occurred during the execution of the program installation script, then find the solution corresponding to the error type.

[0096] The program installation script is repaired according to the solution to obtain a repair script, and the repair script is executed.

[0097] Specifically, during the installation script installation process on the target server, the installation log files on the target server are collected in real time. If the installation log files indicate that an error occurred during the execution of the installation script, the error type is detected, and a solution is found based on the error type. The installation script is then repaired according to the solution to obtain a repair script, which is then re-executed to continue the installation process. Additionally, the installation results can be displayed to the user in natural language, and user feedback can be obtained.

[0098] For example, one way to determine whether an error occurred during the execution of the program installation script is:

[0099] The collected installation log files are input into the exception capture model to determine whether any exceptions occurred during the installation process.

[0100] For example, Figure 3 A diagram illustrating the repair process of installing scripts for the program, as shown below. Figure 3 As shown, the method for finding solutions corresponding to error types can be to search for solutions corresponding to the error types in log files from a pre-built knowledge base used to store solutions. If no solution is found in the knowledge base, the retrieval capabilities of the large model are used to find the solution corresponding to the error type, and the solution is saved to the knowledge base. The solutions and user feedback information contained in the knowledge base can be used to optimize the script to generate the large model and improve the program installation script.

[0101] This embodiment ensures good fault tolerance and improves the reliability of the program installation process through automatic detection and error repair. Furthermore, it can continuously optimize and improve the installation process based on installation results and user feedback, increasing the success rate and adapting to different server environments and installation requirements.

[0102] Example 2

[0103] Figure 4 This is a schematic diagram of a program installation device provided in Embodiment 2 of this application. Figure 4 As shown, the device includes: a parsing module 210, an information acquisition module 220, a script generation module 230, and a script execution module 240; wherein,

[0104] The parsing module 210 is used to parse the received program installation description information to obtain program installation content information;

[0105] Information acquisition module 220 is used to acquire the target server's environment configuration information and the version information of the program to be installed based on the program installation content information;

[0106] Script generation module 230 is used to generate a program installation script based on the program installation description information, the environment configuration information, and the version information of the program to be installed.

[0107] The script execution module 240 is used to control the target server to execute the program installation script to install the program.

[0108] The technical solution of this application embodiment obtains program installation content information by parsing the received program installation description information; obtains the target server's environment configuration information and the version information of the program to be installed based on the program installation content information; generates a program installation script based on the program installation description information, environment configuration information, and the version information of the program to be installed; and controls the target server to execute the program installation script to install the program. Automatically generating the program installation script based on the program installation description information and controlling the server to execute the program installation script improves the efficiency of server-side program installation and can meet the rapidly growing demand for application installation. At the same time, users do not need to intervene in the program installation process, lowering the technical threshold.

[0109] Optionally, the information acquisition module 220 includes:

[0110] An environment configuration information acquisition unit is used to acquire the environment configuration information from the target server based on the program installation content information;

[0111] The program version information acquisition unit is used to acquire the appropriate version information of the installation program based on the environment configuration information and the program installation content information.

[0112] Optionally, the program version information acquisition unit is specifically used for:

[0113] Using a large retrieval model, the appropriate version information of the installation program is retrieved from the program version information database based on the environment configuration information and the program installation content information;

[0114] The program version information database is constructed or updated based on program version information collected and processed through various means.

[0115] Optionally, the script generation module 230 is specifically used for:

[0116] The program installation script type is determined based on the environment configuration information;

[0117] Extract installation parameters from the version information of the program to be installed;

[0118] The environment configuration information, the program installation script type, the installation parameters, and the program installation description information are input into the script to generate a large model, thereby obtaining the program installation script.

[0119] Optionally, the script execution module 240 is specifically used for:

[0120] Send the program installation script to the target server;

[0121] The target server is remotely controlled to execute the program installation script to download and install the program to be installed.

[0122] Optional, also includes:

[0123] The log monitoring module is used to monitor the installation log files of the target server;

[0124] The solution lookup module is used to find the solution corresponding to the error type if it is determined from the installation log file that an error occurred during the execution of the program installation script.

[0125] The script repair module is used to repair the program installation script according to the solution to obtain a repair script, and then execute the repair script.

[0126] The program installation apparatus provided in this application embodiment can execute the program installation method provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects of the execution method.

[0127] Example 3

[0128] Figure 5A schematic diagram of an electronic device that can be used to implement embodiments of this application is shown. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the application described and / or claimed herein.

[0129] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0130] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0131] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as program installation methods.

[0132] In some embodiments, the program installation method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the program installation method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to execute the program installation method by any other suitable means (e.g., by means of firmware).

[0133] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0134] In some embodiments, the program installation method may be implemented as a computer program, which is implicitly included in a computer program product. When executed by a processor, the computer program implements the program installation method of this application. The computer program product can be understood as a software product that primarily implements its solution through a computer program. The computer program used to implement the method of this application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on a machine, partially on a machine, partially on a remote machine as a standalone software package, or entirely on a remote machine or server.

[0135] In the context of this application, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0136] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0137] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0138] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0139] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this application can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this application can be achieved, and this is not limited herein.

[0140] The specific embodiments described above do not constitute a limitation on the scope of protection of this application. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A program installation method, characterized in that, include: The received program installation description information is parsed to obtain the program installation content information; Based on the program installation content information, obtain the target server's environment configuration information and the version information of the program to be installed; Generate a program installation script based on the program installation description information, the environment configuration information, and the version information of the program to be installed. Control the target server to execute the program installation script to install the program.

2. The method according to claim 1, characterized in that, The step of obtaining the target server's environment configuration information and the version information of the program to be installed based on the program installation content information includes: The environment configuration information is obtained from the target server based on the program installation content information; Based on the environment configuration information and the program installation content information, obtain the appropriate version information of the installation program to be installed.

3. The method according to claim 2, characterized in that, The step of obtaining the appropriate installer version information based on the environment configuration information and the program installation content information includes: Using a large retrieval model, the appropriate version information of the installation program is retrieved from the program version information database based on the environment configuration information and the program installation content information; The program version information database is constructed or updated based on program version information collected and processed through various means.

4. The method according to claim 1, characterized in that, The step of generating the program installation script based on the program installation description information, the environment configuration information, and the version information of the program to be installed includes: The program installation script type is determined based on the environment configuration information; Extract installation parameters from the version information of the program to be installed; The environment configuration information, the program installation script type, the installation parameters, and the program installation description information are input into the script to generate a large model, thereby obtaining the program installation script.

5. The method according to claim 1, characterized in that, The step of controlling the target server to execute the program installation script to install the program includes: Send the program installation script to the target server; The target server is remotely controlled to execute the program installation script to download and install the program to be installed.

6. The method according to claim 1 or 5, characterized in that, Also includes: Monitor the installation log files of the target server; If the installation log file indicates that an error occurred during the execution of the program installation script, then find the solution corresponding to the error type. The program installation script is repaired according to the solution to obtain a repair script, and the repair script is executed.

7. A program installation device, characterized in that, include: The parsing module is used to parse the received program installation description information to obtain the program installation content information; The information acquisition module is used to acquire the target server's environment configuration information and the version information of the program to be installed based on the program installation content information; The script generation module is used to generate a program installation script based on the program installation description information, the environment configuration information, and the version information of the program to be installed. The script execution module is used to control the target server to execute the program installation script to install the program.

8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the program installation method according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that are used to cause a processor to execute the program installation method according to any one of claims 1-6.

10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the program installation method according to any one of claims 1-6.