CN110716753A - Cloud host initialization method and device, storage medium and electronic equipment - Google Patents

Cloud host initialization method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110716753A
CN110716753A CN201910839180.5A CN201910839180A CN110716753A CN 110716753 A CN110716753 A CN 110716753A CN 201910839180 A CN201910839180 A CN 201910839180A CN 110716753 A CN110716753 A CN 110716753A
Authority
CN
China
Prior art keywords
initialization
target
cloud host
starting
acquiring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910839180.5A
Other languages
Chinese (zh)
Other versions
CN110716753B (en
Inventor
苏龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ping An Communication Technology Co Ltd
Original Assignee
Shenzhen Ping An Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ping An Communication Technology Co Ltd filed Critical Shenzhen Ping An Communication Technology Co Ltd
Priority to CN201910839180.5A priority Critical patent/CN110716753B/en
Publication of CN110716753A publication Critical patent/CN110716753A/en
Application granted granted Critical
Publication of CN110716753B publication Critical patent/CN110716753B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4403Processor initialisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4416Network booting; Remote initial program loading [RIPL]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure relates to a method and a device for initializing a cloud host, a storage medium and an electronic device, belonging to the technical field of host initialization, wherein the method comprises the following steps: when the initialization start of a target cloud host is monitored, acquiring a target preset start initialization strategy packet corresponding to the target cloud host; analyzing the target preset starting initialization strategy packet to obtain target starting initialization strategy information; acquiring a target starting initialization script according to the target starting initialization strategy information and the initialization environment category of the target cloud host; and executing the target starting initialization script according to the target starting initialization strategy information so as to complete the initialization of the target cloud host. According to the initialization environment, the initialization of the cloud host is controlled and started based on the predefined initialization strategy, and the success rate and the initialization efficiency of the initialization of the cloud host are effectively guaranteed.

Description

Cloud host initialization method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of host initialization technologies, and in particular, to a method and an apparatus for initializing a cloud host, a storage medium, and an electronic device.
Background
The cloud host is a virtualization technology similar to a host, a plurality of parts similar to independent hosts are virtualized on one host, single-machine multi-user can be realized, and each part can be used as an independent operating system. The cloud host initialization is a process of assigning various variables as default values, setting a control as a default state and preparing an unprepared control after the cloud host is created.
In the prior art, when a cloud host is initialized, the adaptability to different cloud host initialization environments is insufficient, and the change of the initialization environment can cause the calling of an initialization script to fail and the initialization to fail; and flexible definition of initialization cannot be made according to initialization requirements.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The invention aims to provide an initialization scheme of a cloud host, and further, the initialization of the cloud host is performed according to an initialization environment at least to a certain extent based on a predefined initialization strategy, so that the success rate and the initialization efficiency of the initialization of the cloud host are effectively ensured.
According to an aspect of the present disclosure, there is provided an initialization method of a cloud host, including:
when the initialization start of a target cloud host is monitored, acquiring a target preset start initialization strategy packet corresponding to the target cloud host;
analyzing the target preset starting initialization strategy packet to obtain target starting initialization strategy information;
acquiring a target starting initialization script according to the target starting initialization strategy information and the initialization environment category of the target cloud host;
and executing the target starting initialization script according to the target starting initialization strategy information so as to complete the initialization of the target cloud host.
In an exemplary embodiment of the present disclosure, the acquiring a target preset start initialization policy package corresponding to a target cloud host when it is monitored that the target cloud host is initialized and started includes:
when the target cloud host is monitored to be initialized and started, judging the starting type of the initialization and the starting of the target cloud host;
and acquiring a target preset starting initialization strategy packet corresponding to the target cloud host according to the starting type.
In an exemplary embodiment of the present disclosure, the obtaining, according to the start category, a target preset start initialization policy package corresponding to the target cloud host includes:
when the starting type is a type of incomplete first-time initialization starting, acquiring a preset first-time starting initialization strategy packet corresponding to the target cloud host;
and when the starting type is the type of which the first initialization starting is finished, acquiring a preset initialization strategy packet for each starting corresponding to the target cloud host.
In an exemplary embodiment of the present disclosure, after acquiring a preset first-time startup initialization policy package corresponding to the target cloud host when the startup category is a category in which the first-time initialization startup is not completed, the method further includes:
analyzing the preset first-time starting initialization strategy packet to obtain first-time starting initialization strategy information;
acquiring a target starting initialization script according to the first starting initialization strategy information and the initialization environment type of the target cloud host;
executing the target starting initialization script according to the first starting initialization strategy information so as to complete the first starting initialization of the target cloud host;
and when the initialization of the first time starting of the target cloud host is successful, modifying the initialization state of the target cloud host into the state of completing the first time initialization starting.
In an exemplary embodiment of the present disclosure, after obtaining, according to the start category, a target preset start initialization policy package corresponding to the target cloud host, the method further includes:
acquiring an initialization requirement of the target cloud host;
judging whether a target preset starting initialization strategy packet corresponding to the target cloud host can realize the initialization requirement or not according to the initialization requirement;
and if the initialization requirement cannot be realized, acquiring the target custom starting initialization strategy package from a custom starting initialization strategy library.
In an exemplary embodiment of the present disclosure, the obtaining a target start-up initialization script according to the target start-up initialization policy information and the initialization environment category of the target cloud host includes:
acquiring the initialization environment type of the target cloud host;
acquiring script names of scripts required for starting initialization corresponding to the initialization environment type of the target cloud host from the target starting initialization strategy information;
and crawling the target starting initialization script according to the script name of the script required by starting initialization.
In an exemplary embodiment of the present disclosure, the executing the target start-up initialization script according to the target start-up initialization policy information to complete initialization of the target cloud host includes:
acquiring an execution sequence of scripts required for starting initialization from the target starting initialization strategy information;
and executing the target starting initialization script according to the execution sequence of the scripts required by the starting initialization so as to complete the initialization of the target cloud host.
According to an aspect of the present disclosure, there is provided an initialization apparatus of a cloud host, including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a target preset starting initialization strategy packet corresponding to a target cloud host when the target cloud host is monitored to be started initially;
the analysis module is used for analyzing the target preset starting initialization strategy packet to obtain target starting initialization strategy information;
the second obtaining module is used for obtaining a target starting initialization script according to the target starting initialization strategy information and the initialization environment category of the target cloud host;
and the initialization module is used for executing the target starting initialization script according to the target starting initialization strategy information so as to complete the initialization of the target cloud host.
According to an aspect of the present disclosure, there is provided a computer-readable storage medium having an initialization program of a cloud host stored thereon, wherein the initialization program of the cloud host is executed by a processor to implement the method of any one of the above.
According to an aspect of the present disclosure, there is provided an electronic apparatus, comprising:
a processor; and
a memory for storing an initialization program of a cloud host of the processor; wherein the processor is configured to perform any of the methods described above via execution of an initialization program of the cloud host.
The invention discloses an initialization method and device of a cloud host, which comprises the steps of firstly, when the initialization start of a target cloud host is monitored, acquiring a target preset start initialization strategy packet corresponding to the target cloud host; therefore, when the cloud host is initialized, the corresponding target preset starting initialization strategy packet is automatically generated and can be used for efficiently and accurately initializing the cloud host in subsequent steps. Further, target starting initialization strategy information is obtained by analyzing the target preset starting initialization strategy packet; therefore, target information for finishing the initialization action can be acquired, and the process accuracy of initialization is ensured. Then, acquiring a target starting initialization script according to the target starting initialization strategy information and the initialization environment type of the target cloud host; therefore, the initialization script which is suitable for the current initialization environment can be obtained according to the initialization strategy information based on the current initialization environment, and further, when the cloud host is initialized, the adaptability to different cloud host initialization environments is effectively ensured, and the success of initialization is guaranteed. And finally, executing the target starting initialization script according to the target starting initialization strategy information so as to complete the initialization of the target cloud host. By the method, the initialization of the cloud host is controlled and started based on the predefined initialization strategy according to the initialization environment, and the success rate and the initialization efficiency of the initialization of the cloud host are effectively ensured.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 schematically shows a flowchart of an initialization method of a cloud host.
Fig. 2 schematically illustrates an application scenario example of an initialization method of a cloud host.
FIG. 3 schematically illustrates a flow chart of a method of obtaining a target startup initialization script.
Fig. 4 schematically shows a block diagram of an initialization apparatus of a cloud host.
Fig. 5 schematically illustrates an example block diagram of an electronic device for implementing the above initialization method of the cloud host.
Fig. 6 schematically illustrates a computer-readable storage medium for implementing the above-described initialization method of the cloud host.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
In this exemplary embodiment, an initialization method of a cloud host is first provided, and the initialization method of the cloud host may be executed on a server, or may also be executed on a server cluster or a cloud server, and the like. Referring to fig. 1, the initialization method of the cloud host may include the following steps:
step S110, when the initialization start of a target cloud host is monitored, acquiring a target preset start initialization strategy packet corresponding to the target cloud host;
step S120, analyzing the target preset starting initialization strategy packet to obtain target starting initialization strategy information;
step S130, acquiring a target starting initialization script according to the target starting initialization strategy information and the initialization environment category of the target cloud host;
step S140, according to the target start initialization policy information, executing the target start initialization script to complete initialization of the target cloud host.
In the initialization method of the cloud host, firstly, when the initialization start of the target cloud host is monitored, a target preset start initialization strategy packet corresponding to the target cloud host is obtained; therefore, when the cloud host is initialized, the corresponding target preset starting initialization strategy packet is automatically generated and can be used for efficiently and accurately initializing the cloud host in subsequent steps. Further, target starting initialization strategy information is obtained by analyzing the target preset starting initialization strategy packet; therefore, target information for finishing the initialization action can be acquired, and the process accuracy of initialization is ensured. Then, acquiring a target starting initialization script according to the target starting initialization strategy information and the initialization environment type of the target cloud host; therefore, the initialization script which is suitable for the current initialization environment can be obtained according to the initialization strategy information based on the current initialization environment, and further, when the cloud host is initialized, the adaptability to different cloud host initialization environments is effectively ensured, and the success of initialization is guaranteed. And finally, executing the target starting initialization script according to the target starting initialization strategy information so as to complete the initialization of the target cloud host. By the method, the initialization of the cloud host is controlled and started based on the predefined initialization strategy according to the initialization environment, and the success rate and the initialization efficiency of the initialization of the cloud host are effectively ensured.
Hereinafter, each step in the above-described initialization method of the cloud host in the present exemplary embodiment will be explained and explained in detail with reference to the drawings.
In step S110, when it is monitored that the target cloud host is initialized, a target preset startup initialization policy package corresponding to the target cloud host is obtained.
In the embodiment of the present example, referring to fig. 2, when monitoring that a target cloud host on a server 202 is initialized and started, a server 201 obtains a target preset startup initialization policy package corresponding to the target cloud host. This may be initialized by the server 201 in subsequent steps based on the initialization policy package. It can be understood that, according to a requirement, the server 202 may also directly obtain a target preset start initialization policy package corresponding to the target cloud host, and perform initialization based on the initialization policy package in subsequent steps. The server 201 and the server 202 may be any devices with processing capability, such as a computer, a microprocessor, etc., and are not limited herein.
When the cloud host is created, a default initialization policy corresponding to a default initialization condition is automatically generated, that is, a preset startup initialization policy, such as a first startup initialization policy and a startup initialization policy each time. The default initialization condition is that, for example, after one initialization is completed, the relevant code does not need to be executed, or some code needs to be executed each time initialization is performed. The default initialization policy package that is automatically generated, that is, the preset start initialization policy package, may be a string in, for example, an XML format. The preset startup initialization policy package defines the script name and the script execution sequence to be executed during initialization. Therefore, when the initialization start of the target cloud host is monitored, the target preset start initialization strategy packet corresponding to the target cloud host is automatically acquired, so that the corresponding default execution codes and execution sequence can be acquired in the subsequent steps according to specific conditions, and the accurate and efficient initialization of the cloud host is realized.
In an embodiment of the present example, when it is monitored that a target cloud host is initialized and started, acquiring a target preset start initialization policy package corresponding to the target cloud host includes:
when the target cloud host is monitored to be initialized and started, judging the starting type of the initialization and the starting of the target cloud host;
and acquiring a target preset starting initialization strategy packet corresponding to the target cloud host according to the starting type.
The cloud host typically includes a plurality of startup categories at the time of initial startup, for example, a category in which first initialization of permanent recording has been completed, or a category in which initialization is required at each startup, and the like. Then, the corresponding target preset starting initialization strategy packet is accurately acquired according to different starting types, so that the cloud host can be accurately started under different conditions, and meanwhile, the initialization starting efficiency is effectively guaranteed.
In an embodiment of this example, the obtaining, according to the start category, a target preset start initialization policy package corresponding to the target cloud host includes:
when the starting type is a type of incomplete first-time initialization starting, acquiring a preset first-time starting initialization strategy packet corresponding to the target cloud host;
and when the starting type is the type of which the first initialization starting is finished, acquiring a preset initialization strategy packet for each starting corresponding to the target cloud host.
The first initialization starting is an initialization part which needs to be completed when the cloud host is initialized and started for the first time after being created, and usually the first initialization is permanently recorded if the first initialization is completed, that is, the first initialization does not need to be performed later, and a code related to the first initialization starting does not need to be called. Besides the first initialization start-up, each start-up initialization is usually included, that is, the initialization part is needed to be performed when the cloud host is started up. Whether the cloud host finishes the first initialization starting or not is judged firstly, and then the corresponding starting initialization strategy packet is obtained according to specific conditions, so that the initialization efficiency can be effectively improved.
In step S120, the target preset start initialization policy package is analyzed to obtain target start initialization policy information.
In the embodiment of the present example, by automatically parsing the obtained target preset start-up initialization policy package, for example, parsing a character string in an XML format, target start-up initialization policy information may be obtained, for example, a script name of a script required for starting up the current initialization and an execution sequence of the corresponding script are obtained. Furthermore, in the subsequent steps, accurate acquisition and execution of the execution code under different initialization conditions of the target cloud host are effectively ensured.
In one embodiment, the target start-up initialization policy information includes:
starting a script name of the needed script to be initialized;
the execution sequence of the script required for initialization is started.
The initialized script is started to be executed according to a preset execution sequence, namely, the script is executed according to the preset execution sequence, so that related resources can be accurately called; meanwhile, each script is provided with a corresponding script name, so that the script can be accurately crawled through the script name of the preset script.
In step S130, a target startup initialization script is obtained according to the target startup initialization policy information and the initialization environment category of the target cloud host.
In this example embodiment, the script name of each script is composed of a script name and suffixes corresponding to different initialization environments, so that according to the target startup initialization policy information, for example, the script name included therein, in combination with the initialization environment category of the target cloud host, where the initialization environment category is, for example, linux or windows system, the script at the time of initialization of the target cloud host, for example, corresponding to the script name + ". sh" in linux, and corresponding to the script name + ". ps 1" in windows, can be accurately obtained. And furthermore, when the cloud host is initialized, the adaptability to different cloud host initialization environments is effectively ensured, and the success of initialization is effectively ensured.
In an implementation manner of this example, as described with reference to fig. 3, the obtaining a target startup initialization script according to the target startup initialization policy information and the initialization environment category of the target cloud host includes:
step 310, acquiring the initialization environment type of the target cloud host;
step 320, obtaining script names of scripts required for starting initialization corresponding to the initialization environment type of the target cloud host from the target starting initialization strategy information;
and step 330, crawling the target startup initialization script according to the script name of the script required by startup initialization.
The target starting initialization strategy information comprises a script name of a script required for starting initialization, and each initialization environment category of the target cloud host has a corresponding initialization code. By acquiring the script name of the script required for starting initialization corresponding to the initialization environment type of the target cloud host from the target starting initialization strategy information, the adaptability of the cloud host to each system during initialization can be effectively ensured.
In step S140, the target start-up initialization script is executed according to the target start-up initialization policy information, so as to complete initialization of the target cloud host.
In the embodiment of the example, according to the target start initialization policy information, that is, the preset start code execution policy, the initialization start of the target cloud host can be accurately controlled, and the success rate of the initialization of the target cloud host is effectively ensured.
In an implementation manner of this example, the executing, according to the target start-up initialization policy information, the target start-up initialization script to complete initialization of the target cloud host includes:
acquiring an execution sequence of scripts required for starting initialization from the target starting initialization strategy information;
and executing the target starting initialization script according to the execution sequence of the scripts required by the starting initialization so as to complete the initialization of the target cloud host.
The code which completes initialization is executed only according to a certain execution sequence, so that the success of initialization can be guaranteed, the execution efficiency of initialization can be guaranteed, and the initialization success rate and the initialization efficiency of the cloud host can be guaranteed by acquiring the execution sequence of the scripts required for starting initialization and then executing the target starting initialization script.
In an embodiment of this example, after acquiring the preset first-time startup initialization policy package corresponding to the target cloud host when the startup category is a category in which the first-time initialization startup is not completed, the method further includes:
analyzing the preset first-time starting initialization strategy packet to obtain first-time starting initialization strategy information;
acquiring a target starting initialization script according to the first starting initialization strategy information and the initialization environment type of the target cloud host;
executing the target starting initialization script according to the first starting initialization strategy information so as to complete the first starting initialization of the target cloud host;
and when the initialization of the first time starting of the target cloud host is successful, modifying the initialization state of the target cloud host into the state of completing the first time initialization starting.
When the cloud host finishes the first initialization starting, the initialization state of the target cloud host is modified to be the first initialization starting, namely the first initialization is permanently recorded if the first initialization is finished, so that the first initialization can be directly skipped when the cloud host is started later after the first initialization is finished, and the efficiency of starting the initialization is ensured.
In an embodiment of this example, after obtaining, according to the start category, a target preset start initialization policy package corresponding to the target cloud host, the method further includes:
acquiring an initialization requirement of the target cloud host;
judging whether a target preset starting initialization strategy packet corresponding to the target cloud host can realize the initialization requirement or not according to the initialization requirement;
and if the initialization requirement cannot be realized, acquiring the target custom starting initialization strategy package from a custom starting initialization strategy library.
The initialization requirement of the target cloud host is the requirement of which parts of the initialization of the cloud host need to be completed when the cloud host is started. By obtaining the initialization requirement of the target cloud host, whether the initialization requirement can be realized by a preset target preset starting initialization strategy packet can be judged. Whether the initialization requirement can be met by the preset target preset starting initialization strategy package is judged, and the judgment can be carried out by comparing the initialization task historically completed by the script in the preset target preset starting initialization strategy package with the initialization task in the initialization requirement of the target cloud host. And if the strategy in the preset target preset starting initialization strategy package can not completely meet the initialization requirement of the cloud host, automatically acquiring a custom starting initialization strategy package for supplementing and completing initialization from the starting initialization strategy library. This may enable personalized initialization of the cloud host.
The disclosure also provides an initialization device of the cloud host. Referring to fig. 4, the initialization apparatus of the cloud host may include a first obtaining module 410, a parsing module 420, a second obtaining module 430, and an initialization module 440. Wherein:
the first obtaining module 410 may be configured to, when it is monitored that a target cloud host is initialized and started, obtain a target preset start initialization policy package corresponding to the target cloud host;
the parsing module 420 may be configured to parse the target preset start-up initialization policy package to obtain target start-up initialization policy information;
the second obtaining module 430 may be configured to obtain a target start initialization script according to the target start initialization policy information and the initialization environment category of the target cloud host;
the initialization module 440 may be configured to execute the target start-up initialization script according to the target start-up initialization policy information, so as to complete initialization of the target cloud host.
The specific details of each module in the initialization apparatus for a cloud host have been described in detail in the initialization method for a corresponding cloud host, and therefore are not described herein again.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 500 according to this embodiment of the invention is described below with reference to fig. 5. The electronic device 500 shown in fig. 5 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the electronic device 500 is embodied in the form of a general purpose computing device. The components of the electronic device 500 may include, but are not limited to: the at least one processing unit 510, the at least one memory unit 520, and a bus 530 that couples various system components including the memory unit 520 and the processing unit 510.
Wherein the storage unit stores program code that is executable by the processing unit 510 to cause the processing unit 510 to perform steps according to various exemplary embodiments of the present invention as described in the above section "exemplary methods" of the present specification. For example, the processing unit 510 may execute step S110 as shown in fig. 1: when the initialization start of a target cloud host is monitored, acquiring a target preset start initialization strategy packet corresponding to the target cloud host; s120: analyzing the target preset starting initialization strategy packet to obtain target starting initialization strategy information; step S130: acquiring a target starting initialization script according to the target starting initialization strategy information and the initialization environment category of the target cloud host; step S140: and executing the target starting initialization script according to the target starting initialization strategy information so as to complete the initialization of the target cloud host.
The memory unit 520 may include a readable medium in the form of a volatile memory unit, such as a random access memory unit (RAM)5201 and/or a cache memory unit 5202, and may further include a read only memory unit (ROM) 5203.
Storage unit 520 may also include a program/utility 5204 having a set (at least one) of program modules 5205, such program modules 5205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 530 may be one or more of any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 500 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a client to interact with the electronic device 500, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 500 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 550. Also, the electronic device 500 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 560. As shown, the network adapter 560 communicates with the other modules of the electronic device 500 over the bus 530. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above section "exemplary methods" of the present description, when said program product is run on the terminal device.
Referring to fig. 6, a program product 600 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the client computing device, partly on the client device, as a stand-alone software package, partly on the client computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the client computing device over any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., over the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. An initialization method of a cloud host is characterized by comprising the following steps:
when the initialization start of a target cloud host is monitored, acquiring a target preset start initialization strategy packet corresponding to the target cloud host;
analyzing the target preset starting initialization strategy packet to obtain target starting initialization strategy information;
acquiring a target starting initialization script according to the target starting initialization strategy information and the initialization environment category of the target cloud host;
and executing the target starting initialization script according to the target starting initialization strategy information so as to complete the initialization of the target cloud host.
2. The method according to claim 1, wherein when it is monitored that a target cloud host is initialized and started, acquiring a target preset starting initialization policy package corresponding to the target cloud host comprises:
when the target cloud host is monitored to be initialized and started, judging the starting type of the initialization and the starting of the target cloud host;
and acquiring a target preset starting initialization strategy packet corresponding to the target cloud host according to the starting type.
3. The method according to claim 2, wherein the obtaining of the target preset boot initialization policy package corresponding to the target cloud host according to the boot category includes:
when the starting type is a type of incomplete first-time initialization starting, acquiring a preset first-time starting initialization strategy packet corresponding to the target cloud host;
and when the starting type is the type of which the first initialization starting is finished, acquiring a preset initialization strategy packet for each starting corresponding to the target cloud host.
4. The method according to claim 3, wherein after acquiring a preset first-time startup initialization policy package corresponding to the target cloud host when the startup category is a category in which the first-time initialization startup is not completed, the method further comprises:
analyzing the preset first-time starting initialization strategy packet to obtain first-time starting initialization strategy information;
acquiring a target starting initialization script according to the first starting initialization strategy information and the initialization environment type of the target cloud host;
executing the target starting initialization script according to the first starting initialization strategy information so as to complete the first starting initialization of the target cloud host;
and when the initialization of the first time starting of the target cloud host is successful, modifying the initialization state of the target cloud host into the state of completing the first time initialization starting.
5. The method according to claim 2, further comprising, after the obtaining, according to the boot category, a target preset boot initialization policy package corresponding to the target cloud host, the method further comprising:
acquiring an initialization requirement of the target cloud host;
judging whether a target preset starting initialization strategy packet corresponding to the target cloud host can realize the initialization requirement or not according to the initialization requirement;
and if the initialization requirement cannot be realized, acquiring the target custom starting initialization strategy package from a custom starting initialization strategy library.
6. The method according to claim 1, wherein the obtaining a target startup initialization script according to the target startup initialization policy information and the initialization environment category of the target cloud host comprises:
acquiring the initialization environment type of the target cloud host;
acquiring script names of scripts required for starting initialization corresponding to the initialization environment type of the target cloud host from the target starting initialization strategy information;
and crawling the target starting initialization script according to the script name of the script required by starting initialization.
7. The method according to claim 1, wherein the executing the target start-up initialization script according to the target start-up initialization policy information to complete initialization of the target cloud host comprises:
acquiring an execution sequence of scripts required for starting initialization from the target starting initialization strategy information;
and executing the target starting initialization script according to the execution sequence of the scripts required by the starting initialization so as to complete the initialization of the target cloud host.
8. An initialization apparatus of a cloud host, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a target preset starting initialization strategy packet corresponding to a target cloud host when the target cloud host is monitored to be started initially;
the analysis module is used for analyzing the target preset starting initialization strategy packet to obtain target starting initialization strategy information;
the second obtaining module is used for obtaining a target starting initialization script according to the target starting initialization strategy information and the initialization environment category of the target cloud host;
and the initialization module is used for executing the target starting initialization script according to the target starting initialization strategy information so as to complete the initialization of the target cloud host.
9. A computer-readable storage medium having stored thereon an initialization program of a cloud host, wherein the initialization program of the cloud host, when executed by a processor, implements the method of any one of claims 1-7.
10. An electronic device, comprising:
a processor; and
a memory for storing an initialization program of a cloud host of the processor; wherein the processor is configured to perform the method of any of claims 1-7 via execution of an initialization program of the cloud host.
CN201910839180.5A 2019-09-05 2019-09-05 Cloud host initialization method and device, storage medium and electronic equipment Active CN110716753B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910839180.5A CN110716753B (en) 2019-09-05 2019-09-05 Cloud host initialization method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910839180.5A CN110716753B (en) 2019-09-05 2019-09-05 Cloud host initialization method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110716753A true CN110716753A (en) 2020-01-21
CN110716753B CN110716753B (en) 2023-05-30

Family

ID=69210280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910839180.5A Active CN110716753B (en) 2019-09-05 2019-09-05 Cloud host initialization method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110716753B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115131912A (en) * 2022-06-29 2022-09-30 深圳市智莱科技股份有限公司 Initialization method, device, equipment and storage medium of Bluetooth cabinet

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104809013A (en) * 2015-04-21 2015-07-29 北京创毅视讯科技有限公司 Embedded system starting method and device
US20160048409A1 (en) * 2014-08-12 2016-02-18 Peter Briel System and method for automatic initiation and management of a guest operating system which enables a restriction of access to the host machine
CN107463411A (en) * 2017-08-16 2017-12-12 北京新网数码信息技术有限公司 A kind of cloud main frame initial method and device
CN107480547A (en) * 2017-08-18 2017-12-15 郑州云海信息技术有限公司 A kind of initial method and system of management platform rule base and default policy
US20190171464A1 (en) * 2017-12-01 2019-06-06 American Megatrends, Inc. Techniques of providing policy options to enable and disable system components

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160048409A1 (en) * 2014-08-12 2016-02-18 Peter Briel System and method for automatic initiation and management of a guest operating system which enables a restriction of access to the host machine
CN104809013A (en) * 2015-04-21 2015-07-29 北京创毅视讯科技有限公司 Embedded system starting method and device
CN107463411A (en) * 2017-08-16 2017-12-12 北京新网数码信息技术有限公司 A kind of cloud main frame initial method and device
CN107480547A (en) * 2017-08-18 2017-12-15 郑州云海信息技术有限公司 A kind of initial method and system of management platform rule base and default policy
US20190171464A1 (en) * 2017-12-01 2019-06-06 American Megatrends, Inc. Techniques of providing policy options to enable and disable system components

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115131912A (en) * 2022-06-29 2022-09-30 深圳市智莱科技股份有限公司 Initialization method, device, equipment and storage medium of Bluetooth cabinet

Also Published As

Publication number Publication date
CN110716753B (en) 2023-05-30

Similar Documents

Publication Publication Date Title
CN109032706B (en) Intelligent contract execution method, device, equipment and storage medium
US8171406B1 (en) Automating user interface navigation
JP6294886B2 (en) Generate native code from intermediate language code for applications
CN107463388B (en) UEFI diskless starting method
CN106951248B (en) Method and device for adding codes, readable storage medium and computing equipment
CN111338925A (en) Applet test method, device and system, electronic equipment and storage medium
CN113760306B (en) Method and device for installing software, electronic equipment and storage medium
CN108121650B (en) Method and device for testing page user interface
CN111625290B (en) Layout file preloading method and device under Android platform and electronic equipment
CN115291946A (en) Hongmong system transplanting method, device, electronic equipment and readable medium
CN112631915B (en) Method, system, device and medium for PCIE device software simulation
CN110716753B (en) Cloud host initialization method and device, storage medium and electronic equipment
CN111566617A (en) Firmware upgrading method and device for unmanned aerial vehicle, control device, unmanned aerial vehicle and medium
CN112491940B (en) Request forwarding method and device of proxy server, storage medium and electronic equipment
US20210103448A1 (en) Interface that enables streamlined user-friendly initiation/control of modifications and/or initial program loading (ipl) of a target system
CN111258618A (en) File configuration method and device, computer equipment and storage medium
CN109669715A (en) application program dynamic updating method, device and storage medium
CN111399926A (en) Method and device for downloading starting program
CN115080113A (en) Item code detection method and device, readable storage medium and electronic equipment
CN114357426A (en) Interface access verification method and device, electronic equipment and readable storage medium
CN113761402A (en) Link debugging method, device, equipment and storage medium
CN108255534B (en) PC (personal computer) end application processing method, processing device, electronic equipment and storage medium
CN110968519A (en) Game testing method, device, server and storage medium
CN111240589A (en) Partition isolation-based system management method, device, equipment and storage medium
CN114443582B (en) File system mounting method, device, equipment and medium on operating system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant