CN111782222B - Object deployment method and device - Google Patents

Object deployment method and device Download PDF

Info

Publication number
CN111782222B
CN111782222B CN202010617779.7A CN202010617779A CN111782222B CN 111782222 B CN111782222 B CN 111782222B CN 202010617779 A CN202010617779 A CN 202010617779A CN 111782222 B CN111782222 B CN 111782222B
Authority
CN
China
Prior art keywords
deployed
deployment
storage device
registry
target
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.)
Active
Application number
CN202010617779.7A
Other languages
Chinese (zh)
Other versions
CN111782222A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202010617779.7A priority Critical patent/CN111782222B/en
Publication of CN111782222A publication Critical patent/CN111782222A/en
Application granted granted Critical
Publication of CN111782222B publication Critical patent/CN111782222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Landscapes

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

Abstract

The application provides an object deployment method and device, wherein a registry and a deployment script of an object to be deployed are obtained from a storage device, the registry is verified and the deployment script is activated, if the registry is verified successfully and the deployment script is activated successfully, an image file of the object to be deployed is obtained from the storage device, the deployment script is operated in a target device, the image file is started in the target device through the deployment script, the object to be deployed corresponding to the image file is deployed in the target device, automatic deployment of the object to be deployed from the storage device to the target device is achieved, a user participation link is omitted in the deployment process of the object to be deployed, deployment errors and repeated correction processes caused by the fact that a user understands the deployment process mistakenly are prevented, and deployment time and deployment difficulty are reduced.

Description

Object deployment method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for object deployment.
Background
At present, in the process of deploying an application program and a running environment, any object in the application program and the running environment may be packaged into an image file, the image file may be imported from a deployed device into a storage device, the storage device is inserted into a target device, then the image file stored in the storage device is copied to the target device by a user, and the user starts the image file to deploy the object into the target device, or the deployed device transmits the image file to the target device through a communication link between the deployed device and the target device, and then the user manually starts the image file to deploy the object into the target device.
In the above manner, the target object can be deployed in the target device through the image file, but this process requires user involvement, which increases deployment time and deployment difficulty.
Disclosure of Invention
In view of this, an object of the present application is to provide an object deployment method and apparatus, which are used to reduce deployment time and deployment difficulty.
In one aspect, the present application provides an object deployment method, including:
acquiring a registry and a deployment script of an object to be deployed from a storage device;
checking the registry and activating the deployment script;
if the registry is verified successfully and the deployment script is activated successfully, acquiring a mirror image file of the object to be deployed from the storage equipment;
and running the deployment script in target equipment, and starting the image file in the target equipment through the deployment script so as to deploy the object to be deployed corresponding to the image file to the target equipment.
Optionally, the obtaining the registry and the deployment script of the object to be deployed from the storage device includes: sending a data acquisition request to the storage device; receiving a registry and a deployment script of an object to be deployed, which are fed back by the storage device, wherein the registry and the deployment script are obtained by searching the storage device after the storage device receives the data acquisition request;
the obtaining the image file of the object to be deployed from the storage device includes: sending a file acquisition request to the storage device; and receiving the image file of the object to be deployed, which is fed back by the storage device, wherein the image file is obtained by searching the storage device after the storage device receives the file acquisition request.
Optionally, the method further includes:
if the storage device is monitored to be inserted into the hardware interface of the target device, verifying whether the target device can access the storage device;
and if the target equipment can access the storage equipment, executing the step of acquiring the registry and the deployment script of the object to be deployed from the storage equipment, and performing data interaction between the target equipment and the storage equipment through a connected physical link.
Optionally, the method further includes: if the target device can access the storage device, writing the executable codes stored in the storage device into an operating system of the target device;
and calling the executable code through an operating system of the target equipment, and indicating the target equipment to acquire the registry and the deployment script of the object to be deployed from the storage equipment.
Optionally, the method further includes:
acquiring a target position of the object to be deployed in the target equipment;
the starting the image file in the target device through the deployment script comprises: and starting the image file at the target position through the deployment script so as to deploy the object to be deployed corresponding to the image file to the target position.
In another aspect, the present application provides an object deployment method, including:
sending a registry and a deployment script of an object to be deployed to target equipment;
and under the condition that the target equipment is determined to successfully verify the registry and successfully activate the deployment script, sending an image file of the object to be deployed to the target equipment.
Optionally, the sending the registry and the deployment script of the object to be deployed to the target device includes: receiving a data acquisition request sent by target equipment; searching a registry and a deployment script of the object to be deployed, which are matched with the data acquisition request, from a storage device, and sending the registry and the deployment script of the object to be deployed to the target device;
the sending the image file of the object to be deployed to the target device includes: receiving a file acquisition request sent by the target device, wherein the file acquisition request is sent under the condition that the target device successfully verifies the registry and successfully activates the deployment script; searching the image file of the object to be deployed matched with the file acquisition request from the storage device, and sending the image file of the object to be deployed to the target device.
Optionally, the method further includes:
if the storage equipment is monitored to be inserted into a hardware interface of the target equipment, verifying whether a data acquisition request sent by the target equipment is acquired or not;
and if the data acquisition request sent by the target equipment is acquired, executing the step of sending the registry and the deployment script of the object to be deployed to the target equipment.
In yet another aspect, the present application provides an object deployment apparatus, the apparatus comprising: the system comprises a first acquisition unit, a verification unit, an activation unit, a second acquisition unit and a deployment unit;
the first obtaining unit is used for obtaining a registry and a deployment script of an object to be deployed from the storage device;
the verification unit is used for verifying the registry;
the activation unit is used for activating the deployment script;
the second obtaining unit is configured to obtain the image file of the object to be deployed from the storage device if the registry is verified successfully and the deployment script is activated successfully;
the deployment unit is configured to run the deployment script in a target device, and start the image file in the target device through the deployment script, so as to deploy an object to be deployed, which corresponds to the image file, to the target device.
In yet another aspect, the present application provides an object deployment apparatus, the apparatus comprising: a transmitting unit and a determining unit;
the sending unit is used for sending the registry and the deployment script of the object to be deployed to the target equipment;
the determining unit is configured to trigger the sending unit to send the pair to be deployed to the target device when it is determined that the target device successfully verifies the registry and successfully activates the deployment script
In another aspect, the present application provides a storage medium, in which computer program codes are stored, and when the computer program codes are executed, the method for deploying an object is implemented.
According to the object deployment method and device, the registry and the deployment script of the object to be deployed are obtained from the storage device, the registry is checked, the deployment script is activated, if the registry is successfully checked and the deployment script is successfully activated, the image file of the object to be deployed is obtained from the storage device, the deployment script is operated in the target device, the image file is started in the target device through the deployment script, the object to be deployed corresponding to the image file is deployed into the target device, automatic deployment of the object to be deployed from the storage device to the target device is achieved, user participation links are omitted in the deployment process of the object to be deployed, deployment errors and repeated correction processes caused by the fact that a user understands the deployment process mistakenly are prevented, and deployment time and deployment difficulty are reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following descriptions are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of an object deployment method provided in an embodiment of the present application;
fig. 2 is a flowchart of another object deployment method provided in an embodiment of the present application;
fig. 3 is a flowchart of another object deployment method provided in an embodiment of the present application;
fig. 4 is a schematic diagram of an object deployment manner provided in an embodiment of the present application;
fig. 5 is a flowchart of another object deployment method provided in an embodiment of the present application;
FIG. 6 is a flowchart of a further object deployment method provided in an embodiment of the present application;
FIG. 7 is a flowchart of a further object deployment method provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of an object deployment apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of another object deployment apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, a flowchart of an object deployment method provided in an embodiment of the present application is shown, where the method may be applied to a target device that needs to deploy an object to be deployed, and may implement automatic deployment of the object to be deployed from a storage device to the target device. The method may comprise the steps of:
101. and acquiring a registry and a deployment script of the object to be deployed from the storage device.
The object to be deployed may be software that needs to be deployed in the target device, for example, the object to be deployed includes but is not limited to APP (Application), a running environment, a development environment, a test environment, a production environment, and the like. The target device may be a server, or may be an electronic device such as a mobile phone and a tablet computer. The storage device may be a device capable of communicating with the target device through a physical link, for example, the physical link is a connection line between the storage device and the target device, for example, the storage device may be a device such as a usb disk, a hard disk, or a magnetic disk, and the storage device and the target device are connected through an interface, so that the communication between the storage device and the target device is realized through the connection line formed by connecting the interfaces of the two parties. The storage device and the target device may also be connected through other manners, such as network connection, which is not limited in this embodiment.
In order to deploy the object to be deployed by using the storage device, the storage device stores relevant data of the object to be deployed, such as a registry, an image file, a deployment script, and the like of the object to be deployed. The registry of the object to be deployed may include related information of the object to be deployed, for example, the related information of the object to be deployed is at least used to represent an operating environment of the object to be deployed, for example, the related information of the object to be deployed includes configuration information, an applicable operating system, and the like, and may also explain the object to be deployed, for example, the related information of the object to be deployed may also include information describing a manufacturer, a version number, and the like of the object to be deployed. The image file is a file of the object to be deployed, and the image file can be started through the deployment script so as to deploy the object to be deployed corresponding to the image file in the target device.
In the process that the target device establishes a connection with the storage device to perform communication, the target device may acquire the registry of the object to be deployed and the deployment script from the storage device to check the registry and activate the deployment script. The method for establishing the connection between the target device and the storage device for communication includes, but is not limited to, the following methods:
in one mode, a storage device and a target device are provided with wireless communication modules, and a communication link between the storage device and the target device is established through the wireless communication modules, so that a registry and a deployment script of an object to be deployed are obtained in a wireless communication mode. One mode of the wireless communication module may be a bluetooth module, which has lower requirements on a network compared to a wifi module, and normal communication between the storage device and the target device may be ensured as much as possible through the bluetooth module in an environment with poor network conditions.
In another mode, a hardware interface adapted to the target device is provided in the storage device, such as a Universal Serial Bus (USB) interface. When the network condition is poor or even no network state exists, the communication link between the storage device and the target device can be established in a hardware interface mode between the storage device and the target device, and normal data transmission between the storage device and the target device can be ensured.
Before the target device is connected with the storage device, the target device can perform hardware self-check on the storage device in advance, detect the applicability of the storage device to the target device and the legality of the storage device, and ensure the safety of the target device in connection with the storage device. The specific types of the communication module and the hardware interface are not limited.
It should be noted that, in this embodiment, there is no limitation on the sequence of obtaining the registry of the object to be deployed and the deployment script from the storage device, for example, obtaining the registry from the storage device first, and then obtaining the deployment script from the storage device; for example, the deployment script is firstly obtained from the storage device, and then the registry is obtained from the storage device; and, for example, simultaneously obtain the registry and deployment script from the storage device.
102. And checking the registry and activating the deployment script.
After the registry of the object to be deployed is obtained, the information in the registry of the object to be deployed is checked to ensure the applicability and the safety of the object to be deployed to the target equipment. For the target device, the target device may set a verification process, a verification content, and a verification condition related to the registry in advance, so that when the registry of the object to be deployed is verified, the registry of the object to be deployed is verified according to the set verification process, verification content, and verification condition. And if the verification content of each registry meets the corresponding verification condition, determining that the registry verification of the object to be deployed is successful.
Similarly, after the deployment script of the object to be deployed is obtained, the deployment script of the object to be deployed is activated to ensure that the deployment script can run, so that the deployment script can automatically deploy the object to be deployed to the target device.
It should be noted that, in this embodiment, the order of checking the registry and activating the deployment script is not limited, for example, the registry is checked first, and then the deployment script is activated; such as activating the deployment script before verifying the registry. Of course, the activation of the deployment script by the checksum of the registry may also be performed simultaneously.
103. If the registry is successfully verified and the deployment script is successfully activated, the image file of the object to be deployed is acquired from the storage device, so that the image file of the object to be deployed is acquired later relative to the registry and the deployment script.
And if the registry of the object to be deployed fails to be checked, determining that the object to be deployed is prohibited from being deployed into the target equipment, and if the object to be deployed is determined not to have validity, insufficient security or inapplicable to the target equipment, stopping executing the deployment instruction of the object to be deployed under the condition so as to reduce the consumption of running resources in the target equipment. If the activation of the deployment script of the object to be deployed fails, it may also be determined that the object to be deployed is prohibited from being deployed to the target device, and at this time, execution of the deployment instruction of the object to be deployed may also be stopped.
In practical application, in the process of deploying the object to be deployed, the target device visualizes the deployment process of the object to be deployed by outputting the prompt information in the target device, so that a user can know the deployment progress of the object to be deployed in real time, for example, the user can prompt the target device in an interface display mode, a voice playing mode and the like, for example, the prompt is performed in the case that the registry verification fails and/or the activation of the deployment script fails, so as to prompt the user of a problem occurring in the deployment process of the object to be deployed in real time.
For example, the user is prompted by interface display, and if the registry verification of the object to be deployed fails, the following is displayed on the interface of the target device: if the registry verification fails, please check. If the activation of the deployment script of the object to be deployed fails, displaying on an interface of the target device: if the deployment script fails to activate, please check.
For example, the user is prompted by voice playing, and if the registry verification of the object to be deployed fails, the voice module of the target device is instructed to output voice: if the registry verification fails, please check. If the activation of the deployment script of the object to be deployed fails, instructing the voice module to output voice: if the deployment script fails to activate, please check.
Under the condition that the registry verification of the object to be deployed fails and/or the activation of the deployment script of the object to be deployed fails, the user can detect and correct the relevant information, codes and the like of the object to be deployed according to the relevant prompts, and after the correction is finished, the step 102 is executed again to verify the registry and activate the deployment script.
104. And running the deployment script in the target equipment, starting the image file in the target equipment through the deployment script, deploying the object to be deployed corresponding to the image file to the target equipment, and completing automatic deployment of the object to be deployed in the target equipment.
In the process of deploying the object to be deployed to the target device from the storage device, the automatic verification of the registry and the automatic activation and operation of the deployment script enable the whole deployment process to be free from the participation of users, the automatic deployment of the object to be deployed is realized, the deployment error and repeated correction process caused by the understanding error or misoperation of the users to the deployment process are avoided, and the deployment time and the deployment difficulty of the object to be deployed can be reduced.
According to the technical scheme, the registry and the deployment script of the object to be deployed are obtained from the storage device, the registry is checked and the deployment script is activated, if the registry is successfully checked and the deployment script is successfully activated, the image file of the object to be deployed is obtained from the storage device, the deployment script is operated in the target device, the image file is started in the target device through the deployment script, the object to be deployed corresponding to the image file is deployed into the target device, automatic deployment of the object to be deployed from the storage device to the target device is achieved, user participation links are omitted in the deployment process of the object to be deployed, deployment errors and repeated correction processes caused by the fact that a user understands the deployment process mistakenly are prevented, and deployment time and deployment difficulty are reduced.
Referring to fig. 2, a flowchart of another object deployment method provided in an embodiment of the present application is shown to illustrate active acquisition of relevant data of an object to be deployed by a target device, where the method may include the following steps:
201. and sending a data acquisition request to the storage device.
After the storage device is successfully connected with the target device, a data acquisition request is sent to the storage device, and the data acquisition request is used for acquiring a registry and a deployment script of an object to be deployed, which are stored in the storage device.
202. And receiving a registry and a deployment script of the object to be deployed, which are fed back by the storage device, wherein the registry and the deployment script are obtained by searching the storage device after the storage device receives the data acquisition request.
And the storage equipment receives the data acquisition request, the data acquisition request triggers the storage equipment to retrieve the registry and the deployment script of the object to be deployed in the data storage space of the storage equipment, and the retrieved registry and the deployment script of the object to be deployed are fed back to the target equipment. The storage device may be provided with a corresponding retrieval manner to improve a retrieval rate of the storage device for the registry and the deployment script of the object to be deployed, for example, the retrieval rate of the storage device for the registry and the deployment script of the object to be deployed is accelerated in a list form.
The foregoing step 201 and step 202 describe a manner for the target device to acquire the registry and the deployment script, and the target device may also acquire the registry and the deployment script in other manners, for example, after the storage device monitors that the storage device successfully establishes a connection with the target device, the storage device actively sends the registry and the deployment script to the target device, so as to reduce interaction between the target device and the storage device, but this may affect a currently running program of the target device, and cause a currently running program of the target device to be interrupted.
203. And checking the registry and activating the deployment script.
204. And if the registry is successfully verified and the deployment script is successfully activated, sending a file acquisition request to the storage equipment so as to acquire the mirror image file of the object to be deployed in the storage equipment through the file acquisition request.
It should be noted that, if the registry verification of the object to be deployed fails and/or the activation of the deployment script of the object to be deployed fails, the file acquisition request is prohibited from being sent to the storage device.
205. And receiving the image file of the object to be deployed, which is fed back by the storage device, wherein the image file is obtained by searching the storage device after the storage device receives the file acquisition request.
The file acquisition request is used as an instruction for indicating the storage device to feed back the image file, after the storage device receives the file acquisition request, the storage device retrieves the image file of the object to be deployed in the data storage space of the storage device, and feeds back the retrieved image file of the object to be deployed to the target device. Or the storage device feeds back the image file by adopting other modes, for example, the storage device monitors the registry verification and deployment script activation process of the target device, and if the registry verification is successful and the deployment script is successfully activated, the storage device actively sends the image file to the target device.
206. And running the deployment script in the target equipment, starting the image file in the target equipment through the deployment script, deploying the object to be deployed corresponding to the image file to the target equipment, and completing automatic deployment of the object to be deployed in the target equipment.
In this embodiment, step 203 and step 206 are the same as step 103 and step 104, and are not described again.
According to the technical scheme, the target device sends a data acquisition request to the storage device to acquire the registry of the object to be deployed and the deployment script fed back by the storage device, and sends a file acquisition request to the storage device to acquire the mirror image file of the object to be deployed fed back by the storage device under the condition that the registry of the object to be deployed is verified successfully and the deployment script of the script to be deployed is activated successfully, so that the registry of the object to be deployed, the deployment script and the mirror image file in the storage device are actively acquired.
Referring to fig. 3, a flowchart of another object deployment method provided in the embodiment of the present application is shown, where deployment of an object to be deployed from a storage device to a target device can be achieved under a poor network environment or even under no network environment condition. On the basis of the steps shown in fig. 1, the method may further include the steps of:
100. if the storage device is monitored to be inserted into the hardware interface of the target device, verifying whether the target device can access the storage device, if the target device can access the storage device, executing step 101, and if the target device cannot access the storage device, prohibiting executing step 101 to prohibit the object to be deployed corresponding to the image file in the storage device from being deployed into the target device.
When the target device may access the storage device, it is indicated that data interaction may be performed between the target device and the storage device through a connected physical link, where the physical link refers specifically to a physical line between the target device and the storage device, and is a physical connection formed between the target device and the storage device through a suitable hardware interface in terms of a hardware level.
The hardware interface adapted between the target device and the storage device may include, but is not limited to: at least one of a USB (Universal Serial Bus) Interface, an SPI (Serial Peripheral Interface), and the like.
In view of the fact that the hardware interfaces matched between the target device and the storage device are of various types, in the design process, one storage device can be set for each type of hardware interface, if the storage device is monitored to be inserted into the hardware interface of the target device, whether the storage device is matched with the hardware interface of the target device or not can be verified, and if the storage device cannot be accessed due to non-matching, the interface type of the storage device which can be inserted and accessed into the target device can be reminded.
The physical link between the target device and the storage device is established between the target device and the storage device through the physical connection mode, and data interaction can be carried out between the target device and the storage device through physical connection, such as a bus connected between a hardware interface and a hardware interface. Because data interaction can be carried out between the target equipment and the storage equipment in a physical wiring mode, the target equipment and the storage equipment do not need to be transmitted by virtue of a network, so that the data transmission between the target equipment and the storage equipment can be ensured under the condition of poor network environment or even no network environment, and an object to be deployed in the storage equipment can be deployed into the target equipment.
According to the technical scheme, the target device and the storage device can establish a physical link between the target device and the storage device through a physical wiring mode, for example, through an associated bus between a hardware interface and the hardware interface, and data interaction is performed through the physical link, so that data transmission of the target device and the storage device under the condition of poor network environment or even no network environment is ensured, and thus automatic deployment of an object to be deployed from the storage device to the target device can be realized under the condition of poor network environment or even no network environment.
In this embodiment, one feasible way for the object deployment method to complete automatic deployment of the object to be deployed is as follows: if the target device can access the storage device, writing the executable codes stored in the storage device into an operating system of the target device; and calling the executable code through an operating system of the target equipment, and instructing the target equipment to execute the target equipment to acquire the registry and the deployment script of the object to be deployed from the storage equipment.
After the executable code stored in the storage device is written into the operating system of the target device, the executable code can be called in the operating process of the operating system of the target device, and the target device is triggered to automatically acquire the registry and the deployment script of the object to be deployed from the storage device, so that the target device is triggered to start deployment of the object to be deployed.
Alternatively, the storage device may store executable code for instructing the target device to perform steps 101, 102, 103 and 104. After determining that the target device can access the storage device, writing executable code stored in the storage device into an operating system of the target device, which may be called during running of the operating system of the target device to trigger the target device to automatically perform steps 101, 102, 103, and 104, thereby implementing automatic deployment of an object to be deployed from the storage device to the target device.
Besides writing executable code in the target device to implement automatic deployment of the object to be deployed, this embodiment may also be implemented in other manners, for example, another manner of implementing automatic deployment of the object to be deployed is as follows: a kernel.io module capable of interacting with an operating system of the target device is stored in the storage device, a mount module (data acquisition module) and a hook module (deployment module) are created in the target device through the kernel.io module, and the steps 101, 102, 103 and 104 can be completed by combining the mount module and the hook module, so that the automatic deployment of the object to be deployed from the storage device to the target device is realized.
In order to better explain the creation process of the mount module and the hook module, the embodiment of the present application proposes a schematic diagram of an object deployment manner as shown in fig. 4 for explanation.
As shown in fig. 4, a kernel.io module and an image file Dei-image of an object to be deployed are arranged in a storage device, a Hardware monitor module is arranged in a target device, and when the Hardware monitor module of the target device monitors that the storage device is inserted into the target device, the storage device creates a mount module and a hook module in the target device through the kernel.io module to obtain the image file Dei-image and deploy the object to be deployed corresponding to the image file Dei-image into the target device.
And the mount module instructs the target device to acquire the registry and the deployment script of the object to be deployed from the storage device. The hook module indicates the target device to check the registry and activate the deployment script, and when the registry is successfully checked and the deployment script is successfully activated, the mount module is triggered to acquire the image file Dei-image of the object to be deployed from the storage device, the deployment script is run to start the image file, and the object to be deployed is deployed into the target device.
After the mount module and the hook module are created in the target device, when the target device needs to deploy another object to be deployed in the storage device, the target device may directly use the created mount module and hook module to deploy the object to be deployed, and a link of creating the mount module and the hook module is not needed to be executed again, so that multiplexing of the mount module and the hook module is realized, and deployment of the object to be deployed is accelerated.
In the process of deploying the object to be deployed, the embodiment may further obtain a target position of the object to be deployed in the target device; correspondingly running the deployment script in the target device, and starting the image file in the target device through the deployment script comprises: and running the deployment script in target equipment, and starting the image file at the target position through the deployment script so as to deploy the object to be deployed corresponding to the image file to the target position.
The target position is used for indicating the position of the object to be deployed in the target device. The target location may be a default deployment location for deploying the software in the target device, or may be a deployment location specified by data related to the object to be deployed stored by the storage device. Of course, the target location may also be a deployment location specified by a user during deployment of the object to be deployed. If the target position is a default deployment position for deploying the software in the target device, the target position can be obtained from the target device; if the target position is a deployment position specified by the related data of the object to be deployed stored in the storage device, the target position may be obtained from the related data of the object to be deployed stored in the storage device; if the target position is the deployment position designated by the user in the deployment process of the object to be deployed, the target position can be determined according to an instruction input by the user to the target device.
And in the process of running the deployment script in the target equipment, starting the image file at the target position through the deployment script so as to deploy the object to be deployed corresponding to the image file to the target position.
Referring to fig. 5, a flowchart of another object deployment method provided in an embodiment of the present application is shown, where the method may be applied to a storage device storing relevant data of an object to be deployed (such as a registry, an image file, a deployment script, and the like of the object to be deployed), and may implement automatic deployment of the object to be deployed from the storage device to a target device. The method may comprise the steps of:
301. and sending the registry of the object to be deployed and the deployment script to the target equipment.
The object to be deployed may be software that needs to be deployed in the target device. The target device may be a server, or may be an electronic device such as a mobile phone or a tablet computer.
The storage device may be a device capable of communicating with the target device through a physical link, for example, the physical link is a connection line between the storage device and the target device, and the storage device may be a device such as a usb disk, a hard disk, or a magnetic disk. The storage device and the target device may also be connected through other manners, such as network connection, which is not limited in this embodiment.
In order to deploy the object to be deployed in the target device, the storage device stores relevant data of the object to be deployed, such as a registry, an image file, a deployment script, and the like of the object to be deployed. The registry of the object to be deployed may include related information of the object to be deployed, such as configuration information and an applicable operating system.
In the process that the target device establishes a connection with the storage device to perform communication, the target device may acquire the registry of the object to be deployed and the deployment script from the storage device to check the registry and activate the deployment script. It should be noted that, in this embodiment, the order of sending the registry and the deployment script of the object to be deployed to the target device is not limited.
302. And under the condition that the target equipment is determined to successfully verify the registry and successfully activate the deployment script, sending the image file of the object to be deployed to the target equipment to trigger the target equipment to run the deployment script and start the image file in the target equipment through the deployment script so as to deploy the object to be deployed corresponding to the image file into the target equipment and finish the automatic deployment of the object to be deployed in the target equipment.
The image file of the object to be deployed is sent to the target device after delaying relative to the registry and the deployment script, so that if the target device fails to verify the registry or fails to activate the deployment script, the embodiment can not send the image file of the object to be deployed any more, and in this case, waste of the image file can be prevented relative to sending the image file in advance.
And if the registry of the object to be deployed fails to be checked, determining that the object to be deployed is prohibited from being deployed into the target equipment, and if the object to be deployed is determined not to have validity, insufficient security or inapplicable to the target equipment, stopping executing the deployment instruction of the object to be deployed under the condition so as to reduce the consumption of running resources in the target equipment. If the activation of the deployment script of the object to be deployed fails, it may also be determined that the object to be deployed is prohibited from being deployed to the target device, and at this time, execution of the deployment instruction of the object to be deployed may also be stopped.
According to the technical scheme, the registry and the deployment script of the object to be deployed are sent to the target device, the image file of the object to be deployed is sent to the target device under the condition that the target device is determined to verify the registry of the object to be deployed successfully and activate the deployment script of the object to be deployed successfully, so that the deployment script starts the image file of the object to be deployed in the target device, the object to be deployed is deployed into the target device through the storage device, and the object to be deployed from the storage device to the target device is deployed automatically.
Referring to fig. 6, which shows a flowchart of another object deployment method provided in an embodiment of the present application, illustrating that a storage device actively sends related data of an object to be deployed, the method may include the following steps:
401. and receiving a data acquisition request sent by the target equipment.
After the storage device is successfully connected with the target device, a data acquisition request sent by the target device is received, wherein the data acquisition request is used for sending a registry and a deployment script of an object to be deployed, which are stored in the storage device, to the target device.
402. And searching a registry and a deployment script of the object to be deployed, which are matched with the data acquisition request, from a storage device, and sending the registry and the deployment script of the object to be deployed to the target device.
And the storage equipment receives the data acquisition request, retrieves the registry and the deployment script of the object to be deployed in the data storage space of the storage equipment, and sends the retrieved registry and the deployment script of the object to be deployed to the target equipment.
403. And under the condition that the target equipment is determined to be successfully verified by the registry and the deployment script is successfully activated, receiving a file acquisition request sent by the target equipment, wherein the file acquisition request is sent under the condition that the target equipment is successfully verified by the registry and the deployment script is successfully activated.
The file acquisition request is used as an instruction for instructing the storage device to send the image file, after the storage device receives the file acquisition request, the storage device searches the image file of the object to be deployed in the data storage space of the storage device, and sends the searched image file of the object to be deployed to the target device.
404. And searching the image file of the object to be deployed matched with the file acquisition request from the storage equipment, and sending the image file of the object to be deployed to the target equipment.
According to the technical scheme, the storage device receives a data acquisition request sent by the target device to send the registry of the object to be deployed and the deployment script to the target device, and receives a file acquisition request sent by the target device to send the mirror image file of the object to be deployed to the target device under the condition that the registry of the object to be deployed is verified successfully and the deployment script of the script to be deployed is activated successfully, so that the registry of the object to be deployed, the deployment script and the mirror image file are actively sent by the storage device.
Referring to fig. 7, a flowchart of another object deployment method provided in an embodiment of the present application is shown, where deployment of an object to be deployed from a storage device to a target device can be achieved under a poor network environment or even under no network environment condition. On the basis of the steps shown in fig. 5, the method may further include the steps of:
300. if it is monitored that the storage device is inserted into a hardware interface of the target device, whether a data acquisition request sent by the target device is acquired or not is verified, if the data acquisition request sent by the target device is acquired, step 301 is executed, and if the storage device does not acquire the data acquisition request sent by the target device, step 301 is prohibited to be executed so as to prohibit an object to be deployed corresponding to an image file in the storage device from being deployed into the target device.
When the storage device acquires the data acquisition request sent by the target device, it is indicated that data interaction can be performed between the target device and the storage device through a connected physical link, where the physical link refers specifically to a physical line between the target device and the storage device, and from a hardware level, the physical line is formed between the target device and the storage device through a matched hardware interface.
The hardware interface adapted between the target device and the storage device may include, but is not limited to: at least one of a USB interface, SPI, and the like.
The physical link between the target device and the storage device is established between the target device and the storage device through the physical connection mode, and data interaction can be carried out between the target device and the storage device through physical connection, such as a bus connected between a hardware interface and a hardware interface. Because data interaction can be carried out between the target equipment and the storage equipment in a physical wiring mode, the target equipment and the storage equipment do not need to be transmitted by virtue of a network, so that the data transmission between the target equipment and the storage equipment can be ensured under the condition of poor network environment or even no network environment, and an object to be deployed in the storage equipment can be deployed into the target equipment.
According to the technical scheme, the target device and the storage device can establish a physical link between the target device and the storage device through a physical wiring mode, for example, through an associated bus between a hardware interface and the hardware interface, and data interaction is performed through the physical link, so that data transmission of the target device and the storage device under the condition of poor network environment or even no network environment is ensured, and thus automatic deployment of an object to be deployed from the storage device to the target device can be realized under the condition of poor network environment or even no network environment.
While, for purposes of simplicity of explanation, the foregoing method embodiments are presented as a series of acts or combinations, it will be appreciated by those of ordinary skill in the art that the present application is not limited by the illustrated ordering of acts, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art will recognize that the embodiments described in this specification are preferred embodiments and that acts or modules referred to are not necessarily required for this application.
Referring to fig. 8, a schematic structural diagram of an object deployment apparatus provided in the embodiment of the present application is shown, which may implement automatic deployment of an object to be deployed from a storage device to a target device. The apparatus may include: a first obtaining unit 601, a checking unit 602, an activating unit 603, a second obtaining unit 604 and a deploying unit 605.
The first obtaining unit 601 is configured to obtain a registry and a deployment script of an object to be deployed from a storage device.
The object to be deployed may be software that needs to be deployed in the target device. The target device may be a server, or may be an electronic device such as a mobile phone or a tablet computer. The storage device may be a device capable of communicating with the target device through a physical link, for example, the storage device may be a device such as a usb disk, a hard disk, or a magnetic disk, and the storage device may be connected to the target device through an interface. The storage device and the target device may also be connected through other manners, such as network connection, which is not limited in this embodiment.
In order to deploy the object to be deployed by using the storage device, the storage device stores relevant data of the object to be deployed, such as a registry, an image file, a deployment script, and the like of the object to be deployed. In the process that the target device establishes a connection with the storage device to perform communication, the target device may acquire the registry of the object to be deployed and the deployment script from the storage device to check the registry and activate the deployment script. The present embodiment does not limit the sequence of acquiring the registry and the deployment script of the object to be deployed from the storage device.
Before the target device is connected with the storage device, the target device can perform hardware self-check on the storage device in advance, detect the applicability of the storage device to the target device and the legality of the storage device, and ensure the safety of the target device in connection with the storage device.
The verifying unit 602 is configured to verify the registry. After the registry of the object to be deployed is obtained, the information in the registry of the object to be deployed is checked to ensure the applicability and the safety of the object to be deployed to the target equipment.
The activating unit 603 is configured to activate the deployment script. After the deployment script of the object to be deployed is obtained, the deployment script of the object to be deployed is activated to ensure that the deployment script can run, so that the deployment script can automatically deploy the object to be deployed to the target device. It should be noted that, in this embodiment, the sequence of the check registry and the activation of the deployment script is not limited.
The second obtaining unit 604 is configured to obtain the image file of the object to be deployed from the storage device if the registry is verified successfully and the deployment script is activated successfully.
And if the registry verification of the object to be deployed fails, determining that the object to be deployed is prohibited to be deployed into the target equipment so as to reduce the consumption of running resources in the target equipment. If the activation of the deployment script of the object to be deployed fails, it may also be determined that the object to be deployed is prohibited from being deployed to the target device, and at this time, execution of the deployment instruction of the object to be deployed may also be stopped.
In practical application, in the process of deploying the object to be deployed by the target device, the object deploying apparatus further includes a prompting unit, configured to output a prompting information mode in the target device to visualize the deploying process of the object to be deployed, so that the user can know the deploying progress of the object to be deployed in real time, for example, the user can prompt the target device in a mode of interface display, voice playing, and the like, for example, the prompting is performed in the case that the registry verification fails and/or the deployment script activation fails, so as to prompt the user of a problem occurring in the deploying process of the object to be deployed in real time.
Under the condition that the registry of the object to be deployed fails to be checked and/or the deployment script of the object to be deployed fails to be activated, the user can detect and correct the relevant information, codes and the like of the object to be deployed according to the relevant prompts, and after the relevant information, codes and the like are corrected, the checking unit 602 performs the check of the registry again and/or the activation unit 603 performs the activation of the deployment script again.
The deployment unit 605 is configured to run the deployment script in a target device, and start the image file in the target device through the deployment script, so as to deploy the object to be deployed, which corresponds to the image file, to the target device.
In the process of deploying the object to be deployed to the target device from the storage device, the automatic verification of the registry and the automatic activation and operation of the deployment script enable the whole deployment process to be free from the participation of users, the automatic deployment of the object to be deployed is realized, the deployment error and repeated correction process caused by the understanding error or misoperation of the users to the deployment process are avoided, and the deployment time and the deployment difficulty of the object to be deployed can be reduced.
The technical scheme realizes automatic deployment of the object to be deployed from the storage device to the target device, so that a user participation link is omitted in the deployment process of the object to be deployed, deployment errors and repeated correction processes caused by the fact that the user understands the deployment process incorrectly are prevented, and deployment time and deployment difficulty are reduced.
In this embodiment, one way for the first obtaining unit 601 to obtain the registry and the deployment script is: the first obtaining unit 601 sends a data obtaining request to the storage device, and receives a registry and a deployment script of an object to be deployed, which are fed back by the storage device, where the registry and the deployment script are obtained by searching the storage device after the storage device receives the data obtaining request.
After the storage device and the target device are successfully connected, the first obtaining unit 601 sends a data obtaining request to the storage device, where the data obtaining request is used to obtain a registry and a deployment script of an object to be deployed, where the registry and the deployment script are stored in the storage device. The data acquisition request triggers the storage device to retrieve the registry and the deployment script of the object to be deployed in the data storage space of the storage device, and the retrieved registry and deployment script of the object to be deployed are fed back to the target device. In addition to such an obtaining manner, the first obtaining unit 601 may further obtain a registry and a deployment script actively sent by the storage device, which is not described herein again.
One way for the second obtaining unit 604 to obtain the image file is: if the registry is successfully verified and the deployment script is successfully activated, the second obtaining unit 604 sends a file obtaining request to the storage device, and receives an image file of the object to be deployed, which is fed back by the storage device, where the image file is obtained by searching the storage device after the storage device receives the file obtaining request. It should be noted that, if the registry verification of the object to be deployed fails and/or the activation of the deployment script of the object to be deployed fails, the file acquisition request is prohibited from being sent to the storage device.
The file acquisition request is used as an instruction for indicating the storage device to feed back the image file, after the storage device receives the file acquisition request, the storage device retrieves the image file of the object to be deployed in the data storage space of the storage device, and feeds back the retrieved image file of the object to be deployed to the target device.
According to the technical scheme, the object deployment device sends the data acquisition request to the storage device to acquire the registry and the deployment script of the object to be deployed, which are fed back by the storage device, and then sends the file acquisition request to the storage device to acquire the image file of the object to be deployed, which is fed back by the storage device, under the condition that the registry of the object to be deployed is verified successfully and the deployment script of the script to be deployed is activated successfully, so that the registry, the deployment script and the image file of the object to be deployed in the storage device can be actively acquired.
The object deployment apparatus provided in this embodiment may further include: the device comprises a first verification unit and a first trigger unit. The first verification unit is configured to verify whether the storage device is accessible to the target device if it is monitored that the storage device is inserted into the hardware interface of the target device.
The first triggering unit is configured to trigger the first obtaining unit 601 if the target device has access to the storage device, and perform data interaction between the target device and the storage device through a connected physical link. If the target device does not have access to the storage device, the first obtaining unit 601 is prohibited from being triggered, so that the object to be deployed corresponding to the image file in the storage device is prohibited from being deployed into the target device.
When the target device has access to the storage device, it is indicated that data interaction between the target device and the storage device can be performed through the connected physical link. The hardware interface adapted between the target device and the storage device may include, but is not limited to: at least one of a USB interface, SPI, and the like.
The physical link between the target device and the storage device is established between the target device and the storage device through the physical connection mode, and data interaction can be performed between the target device and the storage device through physical connection, such as a bus connected between a hardware interface and the hardware interface. Because data interaction can be carried out between the target equipment and the storage equipment in a physical wiring mode, the target equipment and the storage equipment do not need to be transmitted by virtue of a network, so that the data transmission between the target equipment and the storage equipment can be ensured under the condition of poor network environment or even no network environment, and an object to be deployed in the storage equipment can be deployed into the target equipment.
According to the technical scheme, the target device and the storage device can establish a physical link between the target device and the storage device through a physical wiring mode, for example, through an associated bus between a hardware interface and the hardware interface, and data interaction is performed through the physical link, so that data transmission of the target device and the storage device under the condition of poor network environment or even no network environment is ensured, and thus automatic deployment of an object to be deployed from the storage device to the target device can be realized under the condition of poor network environment or even no network environment.
In this embodiment, the object deployment apparatus may further include: a writing unit and a third acquisition unit. The writing unit is configured to write the executable code stored in the storage device into an operating system of the target device if the target device can access the storage device.
The third obtaining unit is configured to call the executable code through an operating system of the target device, and instruct the target device to obtain the registry and the deployment script of the object to be deployed from the storage device.
After the executable code stored in the storage device is written into the operating system of the target device, the executable code can be called in the operating process of the operating system of the target device, and the target device is triggered to automatically acquire the registry and the deployment script of the object to be deployed from the storage device, so that the target device is triggered to start deployment of the object to be deployed.
Optionally, the storage device may store executable code for instructing the target device to trigger the first obtaining unit 601, the verifying unit 602, the activating unit 603, the second obtaining unit 604, and the deploying unit 605. After it is determined that the target device can access the storage device, the executable code stored in the storage device is written into the operating system of the target device, and the executable code may be called during the running process of the operating system of the target device to trigger the target device to automatically trigger the first obtaining unit 601, the verifying unit 602, the activating unit 603, the second obtaining unit 604 and the deploying unit 605, so as to implement automatic deployment of the object to be deployed from the storage device to the target device.
In this embodiment, the object deployment apparatus may further include: and a fourth acquisition unit. The fourth obtaining unit is configured to obtain a target position of the object to be deployed in the target device. Correspondingly, the deploying unit 605 is configured to run the deployment script in the target device, and start the image file at the target location through the deployment script, so as to deploy the object to be deployed, which corresponds to the image file, to the target location.
The target position is used for indicating the position of the object to be deployed in the target device. And in the process of running the deployment script in the target equipment, starting the image file at the target position through the deployment script so as to deploy the object to be deployed corresponding to the image file to the target position.
Referring to fig. 9, a schematic structural diagram of another object deployment apparatus provided in the embodiment of the present application is shown, which may implement automatic deployment of an object to be deployed from a storage device to a target device. The apparatus may include: a transmitting unit 701 and a determining unit 702.
The sending unit 701 is configured to send a registry and a deployment script of an object to be deployed to a target device. For descriptions of the target device, the storage device, the connection between the target device and the storage setup, the registry, and the deployment script, please refer to the above embodiments.
The determining unit 702 is configured to trigger the sending unit 701 to send the image file of the object to be deployed to the target device when it is determined that the target device successfully verifies the registry and successfully activates the deployment script.
The image file of the object to be deployed is sent to the target device after delaying relative to the registry and the deployment script, so that if the target device fails to verify the registry or fails to activate the deployment script, the embodiment can not send the image file of the object to be deployed any more, and in this case, waste of the image file can be prevented relative to sending the image file in advance.
And if the registry of the object to be deployed fails to be checked, determining that the object to be deployed is prohibited from being deployed into the target equipment, if the object to be deployed is determined not to have legality, insufficient security or inapplicable to the target equipment, stopping executing the deployment instruction of the object to be deployed under the condition so as to reduce consumption of operating resources in the target equipment. If the deployment script of the object to be deployed fails to be activated, it may also be determined that the object to be deployed is prohibited from being deployed into the target device, and at this time, execution of the deployment instruction of the object to be deployed may also be stopped.
According to the technical scheme, the registry and the deployment script of the object to be deployed are sent to the target equipment through the object deployment device, the image file of the object to be deployed is sent to the target equipment under the condition that the target equipment is determined to verify the registry of the object to be deployed successfully and activate the deployment script of the object to be deployed successfully, so that the deployment script starts the image file of the object to be deployed in the target equipment, the object to be deployed is deployed into the target equipment through the storage equipment, automatic deployment of the object to be deployed from the storage equipment to the target equipment is achieved, a user participation link is omitted in the deployment process of the object to be deployed, deployment errors and repeated correction processes caused by the fact that a user understands the deployment process mistakenly are prevented, and deployment time and deployment difficulty are reduced.
Based on the apparatus shown in fig. 9, an embodiment of the present application may provide yet another object deployment apparatus, which explains that a storage device actively sends related data of an object to be deployed. The apparatus may further include: a receiving unit and a searching unit.
The receiving unit is used for receiving a data acquisition request sent by target equipment. After the storage device is successfully connected with the target device, a data acquisition request sent by the target device is received, wherein the data acquisition request is used for sending a registry and a deployment script of an object to be deployed stored in the storage device to the target device.
The searching unit is configured to search the registry of the object to be deployed and the deployment script matched with the data obtaining request from the storage device, and send the registry of the object to be deployed and the deployment script to the target device through the sending unit 701.
And the storage equipment receives the data acquisition request, retrieves the registry and the deployment script of the object to be deployed in the data storage space of the storage equipment, and sends the retrieved registry and deployment script of the object to be deployed to the target equipment.
The determining unit is further configured to trigger the receiving unit to receive a file obtaining request sent by the target device when it is determined that the target device successfully verifies the registry and successfully activates the deployment script, where the file obtaining request is sent when the target device successfully verifies the registry and successfully activates the deployment script.
The file acquisition request is used as an instruction for instructing the storage device to send the image file, after the storage device receives the file acquisition request, the storage device searches the image file of the object to be deployed in the data storage space of the storage device, and sends the searched image file of the object to be deployed to the target device.
The searching unit is further configured to search the storage device for an image file of the object to be deployed, which is matched with the file obtaining request, and send the image file of the object to be deployed to the target device through the sending unit 701.
According to the technical scheme, the receiving unit receives the data acquisition request sent by the target device to send the registry of the object to be deployed and the deployment script to the target device, and receives the file acquisition request sent by the target device to send the mirror image file of the object to be deployed to the target device under the condition that the registry of the object to be deployed is verified successfully and the deployment script of the script to be deployed is activated successfully, so that the registry of the object to be deployed, the deployment script and the mirror image file are actively sent by the storage device.
Based on the apparatus shown in fig. 9, an embodiment of the present application may provide another object deployment apparatus, which may implement deployment of an object to be deployed from a storage device to a target device under a poor network environment or even under no network environment condition. The apparatus may further include: a second verification unit and a second trigger unit.
And the second verification unit is used for verifying whether to acquire the data acquisition request sent by the target device if the storage device is monitored to be inserted into the hardware interface of the target device. The second triggering unit is configured to trigger the sending unit 701 if the data obtaining request sent by the target device is obtained.
When the storage device acquires the data acquisition request sent by the target device, it is indicated that data interaction can be performed between the target device and the storage device through a connected physical link, where the physical link refers specifically to a physical line between the target device and the storage device, and from a hardware level, the physical line is formed between the target device and the storage device through a matched hardware interface. The hardware interface adapted between the target device and the storage device may include, but is not limited to: USB interface, SPI, and the like.
The physical link between the target device and the storage device is established between the target device and the storage device through the physical connection mode, and data interaction can be performed between the target device and the storage device through physical connection, such as a bus connected between a hardware interface and the hardware interface. Because data interaction can be carried out between the target device and the storage device through a physical wiring mode, the target device and the storage device do not need to be transmitted by virtue of a network, so that the data transmission between the target device and the storage device can be ensured under the condition of poor network environment or even no network environment, and an object to be deployed in the storage device can be deployed into the target device.
According to the technical scheme, the target device and the storage device can establish a physical link between the target device and the storage device through a physical wiring mode, for example, through an associative bus between a hardware interface and the hardware interface, and data interaction is performed through the physical link, so that data transmission of the target device and the storage device under the conditions of poor network environment and even no network environment is ensured, and automatic deployment of an object to be deployed from the storage device to the target device can be realized under the conditions of poor network environment and even no network environment.
The embodiment of the present application may further provide a storage medium, where a computer program code is stored in the storage medium, and when the computer program code is executed, the object deployment method may be implemented.
It should be noted that, each embodiment in the present specification is described in a progressive manner, features described in each embodiment in the present specification may be replaced or combined with each other, each embodiment focuses on differences from other embodiments, and similar parts between each embodiment may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is only a preferred embodiment of the present application and it should be noted that, as will be apparent to those skilled in the art, numerous modifications and adaptations can be made without departing from the principles of the present application and such modifications and adaptations are intended to be considered within the scope of the present application.

Claims (10)

1. An object deployment method is applied to target equipment needing to be deployed for an object to be deployed, and comprises the following steps:
acquiring a registry and a deployment script of an object to be deployed from a storage device, wherein the registry of the object to be deployed comprises related information of the object to be deployed, and the related information of the object to be deployed comprises at least one of the following information used for representing the operating environment, configuration information, an applicable operating system and information used for describing the object to be deployed; the storage device is provided with a module capable of interacting with an operating system of the target device, and after the storage device is inserted into the target device, the storage device creates a data acquisition module and a deployment module in the target device through the module capable of interacting with the operating system of the target device; the data acquisition module indicates the target equipment to acquire a registry and a deployment script of the object to be deployed from the storage equipment;
the deployment module checks the registry and activates the deployment script; if the registry is successfully verified and the deployment script is successfully activated, triggering the data acquisition module to acquire the image file of the object to be deployed from the storage device;
and running the deployment script in the target equipment, and starting the image file in the target equipment through the deployment script so as to deploy the object to be deployed corresponding to the image file to the target equipment.
2. The method of claim 1, wherein the obtaining the registry and the deployment script of the object to be deployed from the storage device comprises: sending a data acquisition request to the storage device; receiving a registry and a deployment script of the object to be deployed, which are fed back by the storage device, wherein the registry and the deployment script are obtained by searching the storage device after the storage device receives the data acquisition request;
the obtaining the image file of the object to be deployed from the storage device includes: sending a file acquisition request to the storage device; and receiving the image file of the object to be deployed, which is fed back by the storage device, wherein the image file is obtained by searching the storage device after the storage device receives the file acquisition request.
3. The method of claim 1, further comprising:
if the storage device is monitored to be inserted into the hardware interface of the target device, verifying whether the target device can access the storage device;
and if the target equipment can access the storage equipment, executing the step of acquiring the registry and the deployment script of the object to be deployed from the storage equipment, and performing data interaction between the target equipment and the storage equipment through a connected physical link.
4. The method of claim 3, further comprising: if the target device can access the storage device, writing the executable codes stored in the storage device into an operating system of the target device;
and calling the executable code through an operating system of the target equipment, and indicating the target equipment to acquire the registry and the deployment script of the object to be deployed from the storage equipment.
5. The method of any of claims 1 to 4, further comprising:
acquiring a target position of the object to be deployed in the target equipment;
the starting the image file in the target device through the deployment script comprises: and starting the image file at the target position through the deployment script so as to deploy the object to be deployed corresponding to the image file to the target position.
6. An object deployment method, applied to a storage device storing data related to an object to be deployed, includes:
sending a registry of an object to be deployed and a deployment script to target equipment, wherein the registry of the object to be deployed comprises related information of the object to be deployed, and the related information of the object to be deployed comprises at least one of the following information for representing the running environment, configuration information, an applicable operating system and describing the object to be deployed; the storage device is stored with a module capable of interacting with an operating system of the target device, and after the storage device is inserted into the target device, the storage device creates a data acquisition module and a deployment module in the target device through the module interacting with the operating system of the target device; the data acquisition module indicates the target equipment to acquire a registry and a deployment script of the object to be deployed from the storage equipment;
and under the condition that the target equipment is determined to successfully verify the registry through the deployment module and successfully activate the deployment script through the deployment module, sending the mirror image file of the object to be deployed to the target equipment.
7. The method of claim 6, the sending the registry and deployment script of the object to be deployed to the target device comprising: receiving a data acquisition request sent by target equipment; searching a registry and a deployment script of the object to be deployed, which are matched with the data acquisition request, from a storage device, and sending the registry and the deployment script of the object to be deployed to the target device;
the sending the image file of the object to be deployed to the target device includes: receiving a file acquisition request sent by the target device, wherein the file acquisition request is sent under the condition that the target device successfully verifies the registry and successfully activates the deployment script; searching the image file of the object to be deployed matched with the file acquisition request from the storage device, and sending the image file of the object to be deployed to the target device.
8. The method of claim 6 or 7, further comprising:
if the storage device is monitored to be inserted into a hardware interface of the target device, verifying whether a data acquisition request sent by the target device is acquired;
and if the data acquisition request sent by the target equipment is acquired, executing the step of sending the registry and the deployment script of the object to be deployed to the target equipment.
9. An object deployment apparatus, which is applied to a target device to be deployed, and the apparatus includes: the system comprises a first acquisition unit, a verification unit, an activation unit, a second acquisition unit and a deployment unit;
the first obtaining unit is configured to obtain a registry and a deployment script of an object to be deployed from a storage device, where the registry of the object to be deployed includes related information of the object to be deployed, and the related information of the object to be deployed includes at least one of an operating environment, configuration information, an applicable operating system, and information for describing the object to be deployed itself, where the operating environment, the configuration information, the applicable operating system, and the information are used to represent the object to be deployed; the storage device is provided with a module capable of interacting with an operating system of the target device, and after the storage device is inserted into the target device, the storage device creates a data acquisition module and a deployment module in the target device through the module capable of interacting with the operating system of the target device; the data acquisition module instructs the target equipment to acquire a registry and a deployment script of the object to be deployed from the storage equipment; the deployment module indicates the target device to check the registry and activate the deployment script, and when the registry is successfully checked and the deployment script is successfully activated, the deployment module triggers the data acquisition module to acquire the image file of the object to be deployed from the storage device;
the verification unit is used for verifying the registry;
the activation unit is used for activating the deployment script;
the second obtaining unit is configured to obtain the image file of the object to be deployed from the storage device if the registry is verified successfully and the deployment script is activated successfully;
the deployment unit is configured to run the deployment script in a target device, and start the image file in the target device through the deployment script, so as to deploy an object to be deployed, which corresponds to the image file, to the target device.
10. An object deployment apparatus, the apparatus being applied to a storage device storing data related to an object to be deployed, the apparatus comprising: a transmitting unit and a determining unit;
the sending unit is configured to send a registry of an object to be deployed and a deployment script to a target device, where the registry of the object to be deployed includes related information of the object to be deployed, and the related information of the object to be deployed includes at least one of the following operating environment for representing the object to be deployed, configuration information, an applicable operating system, and information for describing the object to be deployed itself; the storage device is provided with a module capable of interacting with an operating system of the target device, and after the storage device is inserted into the target device, the storage device creates a data acquisition module and a deployment module in the target device through the module capable of interacting with the operating system of the target device; the data acquisition module indicates the target equipment to acquire a registry and a deployment script of the object to be deployed from the storage equipment; the deployment module instructs the target device to check the registry and activate the deployment script; the determining unit is configured to trigger the sending unit to send the image file of the object to be deployed to the target device when it is determined that the target device successfully verifies the registry and successfully activates the deployment script.
CN202010617779.7A 2020-06-30 2020-06-30 Object deployment method and device Active CN111782222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010617779.7A CN111782222B (en) 2020-06-30 2020-06-30 Object deployment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010617779.7A CN111782222B (en) 2020-06-30 2020-06-30 Object deployment method and device

Publications (2)

Publication Number Publication Date
CN111782222A CN111782222A (en) 2020-10-16
CN111782222B true CN111782222B (en) 2022-07-26

Family

ID=72760514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010617779.7A Active CN111782222B (en) 2020-06-30 2020-06-30 Object deployment method and device

Country Status (1)

Country Link
CN (1) CN111782222B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114640555B (en) * 2022-02-24 2023-06-23 联想(北京)有限公司 Information processing method, virtual machine cluster and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195978A (en) * 2011-04-26 2011-09-21 深圳市共济科技有限公司 Software distribution deployment method and system
CN103885796A (en) * 2014-03-03 2014-06-25 西安电子科技大学 Software dynamic deploying method based on script tool
CN107291525A (en) * 2016-04-01 2017-10-24 华为技术有限公司 A kind of method, host and system for disposing virtual machine

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8627426B2 (en) * 2010-04-26 2014-01-07 Vmware, Inc. Cloud platform architecture
CN102316159A (en) * 2011-08-01 2012-01-11 崔红保 Method for quickly deploying server and server group and system
CN104360878B (en) * 2014-10-29 2019-05-17 中国建设银行股份有限公司 A kind of method and device of application software deployment
CN106131122A (en) * 2016-06-21 2016-11-16 浪潮电子信息产业股份有限公司 A kind of method and device disposing load balancing service

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195978A (en) * 2011-04-26 2011-09-21 深圳市共济科技有限公司 Software distribution deployment method and system
CN103885796A (en) * 2014-03-03 2014-06-25 西安电子科技大学 Software dynamic deploying method based on script tool
CN107291525A (en) * 2016-04-01 2017-10-24 华为技术有限公司 A kind of method, host and system for disposing virtual machine

Also Published As

Publication number Publication date
CN111782222A (en) 2020-10-16

Similar Documents

Publication Publication Date Title
CN107239288B (en) Version upgrading method and device for mobile terminal
CN107733847B (en) Method and device for platform login website, computer equipment and readable storage medium
US8855627B2 (en) System and method for enhanced diagnostics on mobile communication devices
CN110032507B (en) Application program testing method, device and system, electronic equipment and storage medium
RU2005110041A (en) EFFECTIVE CORRECTION OF PROGRAMS
CN101795293A (en) File download method, file download system, sending device and detecting device
CN111880508A (en) Automatic calibration and test method and device for T-box parameters
CN111782222B (en) Object deployment method and device
CN112416411B (en) Upgrading method and device, equipment end, server and computer readable medium
CN104272318A (en) Software distribution system, software distribution method
CN111698558A (en) Television software upgrading method, television terminal and computer readable storage medium
KR20050123202A (en) Software version upgrading method of portable terminal using integrated difference files
CN108958785A (en) A kind of application program updating method and device
CN106708494B (en) JAR upgrading method and device
CN109976773B (en) Deployment method and device of game testing environment
CN111756703A (en) Debugging interface management method and device and electronic equipment
CN107423087A (en) A kind of application program updating method that server can monitor
CN103984541B (en) Method and system based on terminal source code building application program
CN114237722A (en) System starting method, device, equipment and engineering vehicle
CN113900677A (en) Deployment method, device and equipment of program running environment and computer storage medium
CN113015156A (en) Mobile phone number batch binding changing method, terminal and computer readable storage medium
CN113157481A (en) Cluster-based server jump time fault processing method, device and system
KR100745487B1 (en) Method and apparatus for recovering a boot code in mobile terminal
US20190004935A1 (en) System and method for diagnosing a computing device
CN113452550A (en) Information acquisition device, firmware updating method and system of embedded system device

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