Automatic environment configuration synchronous execution method

An automated environment configuration method ensures consistent and efficient server setup across multiple environments by using JSON-formatted data matching and reporting, addressing inefficiencies and technical barriers in manual configuration.

CN120255943APending Publication Date: 2025-07-04SHANGHAI JIKE INTELLIGENT TECH GRP CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510299875.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-14
Publication Date
2025-07-04

AI Technical Summary

Technical Problem

Existing manual environment configuration for servers is inefficient, lacks consistency, and requires high technical expertise, making it difficult to maintain and update.

Method used

An automated method for synchronized environment configuration that includes inputting configuration identifiers, determining associated information, formatting data into JSON format, matching configuration types, and generating execution reports to ensure consistency and accuracy across multiple environments.

Benefits of technology

Enhances efficiency, accuracy, and ease of maintenance by ensuring consistent configuration across multiple environments, reducing human error and enabling rapid deployment with detailed reports.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120255943A_ABST
    Figure CN120255943A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic environment configuration synchronous execution method, which belongs to the technical field of server environment configuration, and comprises the following steps: S1, inputting a pre-configuration number, an environment ip and a configuration type; s2, determining associated configuration information through a pre-configuration number, an environment ip and a configuration type; s3, performing data formatting on the configuration information according to the same type, and converting the configuration information into a json format; step S4, acquiring demand environment configuration information; s5, performing consistency matching on the json format data and the environment configuration information item by item; and S6, generating an execution report after matching is finished. According to the method, a plurality of environments can be configured at the same time, a plurality of configuration types can be supported, the consistency of the environment configuration and the new configuration can be judged, execution is carried out if the configuration is inconsistent, a report is generated after execution is completed, the efficiency and accuracy of environment configuration are improved, and a visual result report is provided.
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 environment configuration, and particularly relates to a method for synchronously executing automated environment configuration. Background Art

[0002] Server environment configuration directly affects the performance, stability, and security of the services provided by the server. A good server environment configuration can ensure the efficient operation of the services, reduce the probability of failures, and also better protect the security of the server and user data. Install corresponding server software according to the type of service, such as web servers (Apache, Nginx, etc.), database servers (MySQL, PostgreSQL, etc.). Ensure that the version of the server software matches the requirements of the service and perform correct installation and configuration.

[0003] Environment configuration ensures that the software can operate efficiently and stably under a specific combination of hardware and operating system. Different software may have different environment requirements, such as web servers. Improper configuration of database servers may cause the software to fail to install, start, run slowly, or encounter errors.

[0004] Existing environment deployment requires manual operations. For example, in the case of configuring multiple sets of environments, the disadvantages are: low efficiency, difficulty in ensuring accuracy, difficulty in maintaining consistency, requiring technical expertise, and being difficult to maintain. Therefore, a method for automated environment configuration is needed to improve efficiency, accuracy, consistency, maintainability, and ease of operation.

[0005] Based on this, the present invention designs a method for synchronously executing automated environment configuration to solve the above problems. Summary of the Invention

[0006] In view of the above-mentioned disadvantages of the prior art, the present invention provides a method for synchronously executing automated environment configuration.

[0007] To achieve the above objectives, the present invention is realized through the following technical solutions:

[0008] A method for synchronously executing automated environment configuration:

[0009] It includes the following steps:

[0010] Step S1: Input the pre-configured number, environment IP, and configuration type;

[0011] Step S2: Determine the associated configuration information based on the pre-configured number, environment IP, and configuration type;

[0012] Step S3: Format the configuration information according to the same type and convert it into JSON format;

[0013] Step S4: Obtain requirement environment configuration information;

[0014] Step S5: Match the json - formatted data with the environment configuration information item by item for consistency;

[0015] Step S6: Generate an execution report after the matching ends.

[0016] Furthermore, the specific operation of Step S3 is as follows:

[0017] Step S31: Obtain the configuration information of the requirement configuration;

[0018] Step S32: Determine whether there is a matching type in the configuration information in the database. If the judgment is yes, execute Step S33; if the judgment is no, generate an execution report and store the configuration data in the database to become a new matching type;

[0019] Step S33: Format the configuration data and convert it into json format.

[0020] Furthermore, the database arranges the matching types in descending order of usage frequency according to the usage frequency of the matching types.

[0021] Furthermore, the specific operation of determining whether there is a matching type for the configuration information is carried out from the matching type with high frequency to the matching type with low frequency.

[0022] Furthermore, the specific operation of formatting the configuration data and converting it into json format: Traverse the matching types until the corresponding matching type is found, then format the configuration information and recombine it into a recognizable string, and convert it into json format.

[0023] Furthermore, the specific steps of Step S5 are as follows:

[0024] Step S51: Determine whether the json - formatted data is consistent with the environment configuration information. If the judgment is inconsistent, execute Step S52; if the judgment is consistent, execute Step S53;

[0025] Step S52: In the specified environment configuration information, perform addition, deletion, and modification of the requirement configuration data according to the configuration type and data, and then execute Step S53;

[0026] Step S53: Determine whether there is still unconfigured data in the environment configuration information. If the judgment is yes, return to Step 51; if the judgment is no, execute Step S6.

[0027] Furthermore, the execution report: includes configuration number, environment, configuration type, service, configuration information, result, error reason.

[0028] The present invention has the following technical effects: The present invention can configure multiple environments simultaneously, support multiple configuration types, determine the consistency between the environment configuration and the new configuration, and only execute if they are inconsistent. After the execution is completed, a report is generated, which improves the efficiency and accuracy of environment configuration and provides an intuitive result report. Description of the Drawings

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts.

[0030] Figure 1 It is a block diagram of a method for synchronous execution of automated environment configuration of the present invention;

[0031] Figure 2 It is a block diagram for monitoring the uniformity of the aging state temperature of the present invention;

[0032] Figure 3 It is a control system diagram of a method for synchronous execution of automated environment configuration of the present invention. Detailed Embodiments

[0033] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art without creative efforts based on the embodiments of the present invention belong to the scope of protection of the present invention.

[0034] The following further describes the present invention with reference to the embodiments.

[0035] Embodiment 1: Please refer to Figures 1 - 3 , a method for synchronous execution of automated environment configuration:

[0036] It includes the following steps:

[0037] Step S1: Input the pre-configured number, environment IP, and configuration type;

[0038] Step S2: Determine the associated configuration information based on the pre-configured number, environment IP, and configuration type;

[0039] Step S3: Format the configuration information according to the same type and convert it into the json format;

[0040] Step S31: Obtain the configuration information of the requirement configuration;

[0041] Step S32: Determine whether there is a matching type for the configuration information in the database. If the determination is yes, execute Step S33. If the determination is no, generate an execution report and store the configuration data in the database as a new matching type;

[0042] Step S33: Format the configuration data and convert it into JSON format.

[0043] The database arranges the matching types in descending order of usage frequency according to the usage frequency of the matching types.

[0044] The specific operation of determining whether there is a matching type for the configuration information is carried out from the matching type with high frequency to the matching type with low frequency.

[0045] Adapt to the matching type with high frequency for priority matching and use, reducing the matching workload;

[0046] The specific operation of formatting the configuration data and converting it into JSON format: traverse the matching types until the corresponding matching type is found, then format the configuration information and recombine it into a recognizable string, and convert it into JSON format;

[0047] Step S4: Obtain the requirement environment configuration information;

[0048] Step S5: Match the JSON format data with the environment configuration information item by item for consistency;

[0049] Step S51: Determine whether the JSON format data is consistent with the environment configuration information. If the determination is inconsistent, execute Step S52. If the determination is consistent, execute Step S53;

[0050] Step S52: In the specified environment configuration information, add, delete, and modify the requirement configuration data according to the configuration type and data, and then execute Step S53;

[0051] Step S53: Determine whether there is still unconfigured data in the environment configuration information. If the determination is yes, return to Step 51. If the determination is no, execute S6;

[0052] Step S6: Generate an execution report after the matching is completed.

[0053] Execution report: Includes configuration number, environment, configuration type, service, configuration information, result, error reason.

[0054] The present invention has the following priority advantages:

[0055] 1. Improve efficiency. The automated configuration tool can quickly complete the environment setup, greatly reducing the time required for manual configuration. For multiple environments of the same type, automated configuration can easily achieve batch processing, ensuring the consistency of each environment and significantly improving the deployment efficiency.

[0056] 2. Enhance accuracy and reduce human errors. Automated configuration ensures that each environment is set up in the same way, avoiding problems caused by differences in environment configuration by different personnel.

[0057] 3. Easy to maintain and update. When software or environment requirements change, the automated configuration tool can be easily updated and adjusted. Simply modify the corresponding scripts or configuration files, and they can be quickly applied to all relevant environments without manually modifying each environment one by one.

[0058] 4. Improve repeatability. Automated configuration makes it easy to create exactly the same environment. Whether in the development, testing, or production stage, corresponding environments can be configured at any time for troubleshooting, performance testing, or new feature verification, etc.

[0059] 5. Lower the technical threshold, enabling non - professional personnel to operate.

[0060] In summary, this application can configure multiple environments simultaneously, support multiple configuration types, judge the consistency between the environment configuration and the new configuration, execute only if they are inconsistent, generate a report after execution, improve the efficiency and accuracy of environment configuration, and provide an intuitive result report.

[0061] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements will not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for synchronously executing automated environment configuration, characterized in that: It includes the following steps: Step S1: Input the pre-configured number, environment IP, and configuration type; Step S2: Determine the associated configuration information based on the pre-configured number, environment IP, and configuration type; Step S3: Format the configuration information by the same type and convert it into JSON format; Step S4: Obtain the required environment configuration information; Step S5: Match the JSON format data with the environment configuration information item by item for consistency; Step S6: Generate an execution report after the matching ends.

2. The method for synchronously executing automated environment configuration according to claim 1, wherein, The specific operation of Step S3 is as follows: Step S31, obtain the configuration information of the required configuration; Step S32, determine whether there is a matching type in the configuration information in the database. If the judgment is yes, execute Step S33. If the judgment is no, generate an execution report and store the configuration data in the database to become a new matching type; Step S33, format the configuration data and convert it into JSON format.

3. The method for synchronously executing automated environment configuration according to claim 2, wherein The database arranges the matching types from high to low according to the usage frequency of the matching types.

4. The method for synchronously executing automated environment configuration according to claim 3, wherein The specific operation of determining whether there is a matching type in the configuration information is from the matching type with the highest frequency to the matching type with the lowest frequency.

5. The method for synchronously executing automated environment configuration according to claim 3, wherein The specific operation of formatting the configuration data and converting it into JSON format: traverse the matching types until the corresponding matching type is found, then format the configuration information and reorganize it into a recognizable string, and convert it into JSON format.

6. The method for synchronously executing automated environment configuration according to claim 5, characterized in that, The specific steps of Step S5 are as follows: Step S51, determine whether the JSON format data is consistent with the environment configuration information. If the judgment is inconsistent, execute Step S52. If the judgment is consistent, execute Step S53; Step S52, in the specified environment configuration information, add, delete, and modify the required configuration data according to the configuration type and data, and then execute Step S53; Step S53, determine whether there is still unconfigured data in the environment configuration information. If the judgment is yes, return to Step 51. If the judgment is no, execute Step S6.

7. The method for synchronously executing automated environment configuration according to claim 6, wherein Execution report: It includes the configuration number, environment, configuration type, service, configuration information, result, and error reason.

Citation Information

Patent Citations

  • Automatic update method and apparatus for system environment configuration

    CN106020877A

  • Environment configuration file generation method and device, computer device and storage medium

    CN109766121A

  • DevOps-based multi-environment configuration system and method

    CN110377294A

  • Software preloading information automatic management method

    CN114610411A

  • Method for adapting running environment configuration file, computer equipment and storage medium

    CN116382808A