WO2021139261A1 - Application deployment method and device, and medium - Google Patents

Application deployment method and device, and medium Download PDF

Info

Publication number
WO2021139261A1
WO2021139261A1 PCT/CN2020/118627 CN2020118627W WO2021139261A1 WO 2021139261 A1 WO2021139261 A1 WO 2021139261A1 CN 2020118627 W CN2020118627 W CN 2020118627W WO 2021139261 A1 WO2021139261 A1 WO 2021139261A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
windows controlled
application
configuration information
controlled server
Prior art date
Application number
PCT/CN2020/118627
Other languages
French (fr)
Chinese (zh)
Inventor
戈先武
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021139261A1 publication Critical patent/WO2021139261A1/en

Links

Classifications

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

Definitions

  • This application relates to the field of computer technology, and mainly relates to an application deployment method, device and medium.
  • the implementation of this application provides an application deployment method, device and medium, which can improve the Linux master control server to Windows The efficiency and success rate of deployed applications on the controlled server.
  • the embodiments of the present application provide an application deployment method, in which: the Linux master control server determines the Windows controlled server corresponding to the application to be deployed; the Linux master control server obtains the Windows controlled server based on the remote login protocol and the virtual machine program If the target network address is inconsistent with the preset network address, the Linux master control server obtains the first configuration information according to the target network address and the environment information, where the preset network address is the Windows server pre-stored by the Linux master control server One item in the environment information of the control server; the Linux master control server sends the first configuration information to the Windows controlled server, so that the Windows controlled server installs the application to be deployed according to the first configuration information.
  • an embodiment of the present application provides a first application deployment device, wherein: a processing unit is used to determine the Windows controlled server corresponding to the application to be deployed; and the storage unit is used to store environment information and environment information of the Windows controlled server Including the preset network address; the communication unit is used to obtain the target network address of the Windows controlled server based on the remote login protocol and the virtual machine program; the processing unit is also used to, if the target network address and the preset network address are inconsistent, perform The network address and the environment information obtain the first configuration information; the communication unit is also used to send the first configuration information to the Windows controlled server, so that the Windows controlled server installs the application to be deployed according to the first configuration information.
  • an embodiment of the present application provides a third application deployment device, including a processor, a memory, a communication interface, and one or at least one program, wherein the one or at least one program is stored in the memory and is configured by The above processor executes, wherein: determine the Windows controlled server corresponding to the application to be deployed; obtain the target network address of the Windows controlled server based on the remote login protocol and the virtual machine program; if the target network address and the preset network address If they are not consistent, the first configuration information is obtained according to the target network address and the environment information, where the preset network address is one of the environment information of the Windows controlled server pre-stored by the Linux master control server Item; Send the first configuration information to the Windows controlled server, so that the Windows controlled server installs the application to be deployed according to the first configuration information.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program causes the computer to perform the following steps: determine the Windows controlled server corresponding to the application to be deployed; Obtain the target network address of the Windows controlled server based on the remote login protocol and the virtual machine program; if the target network address is inconsistent with the preset network address, obtain the first configuration according to the target network address and the environmental information Information, wherein the preset network address is one of the environmental information of the Windows controlled server pre-stored by the Linux main control server; and the first configuration information is sent to the Windows controlled server to Enabling the Windows controlled server to install the application to be deployed according to the first configuration information.
  • the Linux master control server obtains the target of the Windows controlled server corresponding to the application to be deployed based on the remote login protocol and virtual machine program
  • the network address improves the efficiency of data acquisition. If the target network address is inconsistent with the preset network address, it means that the environmental information of the Windows controlled server may have changed, and then obtain the first configuration information according to the environmental information and the target network address, and then send the first configuration information to the Windows controlled server. In this way, the Windows controlled server installs the application to be deployed according to the first configuration information, which improves the efficiency and success rate of application deployment.
  • FIG. 1 is a schematic structural diagram of an application deployment system provided by an embodiment of the application.
  • FIG. 2 is a schematic flowchart of an application deployment method provided by an embodiment of the application.
  • FIG. 3 is a schematic flowchart of another application deployment method provided by an embodiment of the application.
  • FIG. 4 is a schematic diagram of the logical structure of an application deployment apparatus provided by an embodiment of the application.
  • FIG. 5 is a schematic diagram of the physical structure of an application deployment apparatus provided by an embodiment of the application.
  • FIG. 1 is a schematic diagram of a network architecture to which an embodiment of the present application is applied.
  • the schematic diagram of the network architecture includes a client 101 and a server 102. It should be noted that the number and form of each device in the schematic diagram of the network architecture shown in FIG. 1 are used as examples, and do not constitute a limitation to the embodiment of the present application.
  • the client 101 can be a mobile phone as shown in FIG. 1, or a personal computer (PC), a notebook computer, an all-in-one computer, a handheld computer, a tablet computer (pad), a smart TV playback terminal, a vehicle-mounted terminal, or a convenient Electronic equipment such as type equipment.
  • the operating system of the client 101 is based on a Windows operating system (for example, Windows XP, Windows 7, etc.).
  • the server 102 includes a Windows controlled server 1021 connected to the client 101, and also includes a Linux master server 1022 connected to the Windows controlled server 1021.
  • the Windows controlled server 1021 is based on the Windows operating system
  • the Linux main control server 1022 may be based on the Linux operating system, or may be a development platform using the Linux language in a virtual environment based on the Windows operating system.
  • the Linux master server 1022 is used to store the installation package of the application to be deployed, and provide application deployment services for the Windows controlled server 1021.
  • the Windows controlled server 1021 is used to provide application services for the client 101.
  • the Windows controlled server 1021 is equivalent to the client of the Linux master server 1022
  • the Linux master server 1022 is equivalent to the server of the Windows controlled server 1021.
  • the Linux main control server 1022 can also be connected to other Windows controlled servers and deploy applications for other Windows controlled servers. It should be noted that the applications deployed in other Windows controlled servers can be the same as or different from the applications in FIG. 1.
  • the Linux main control server is also used to store the environment information of the Windows controlled server corresponding to the Linux main control server.
  • the Windows controlled server corresponding to the Linux main control server may include a server connected to the Linux main control server, and may also include servers in the configuration list of the Linux main control server, etc., which is not limited herein.
  • the environment information of the Windows controlled server includes the information to be verified of the Windows controlled server, such as: Media Access Control Address (MAC), client host name, application account identification and other identity information, or used for The key to verify identity, or decryption algorithm.
  • the environment information also includes the preset system type of the Windows controlled server, for example, whether it is 32-bit or 64-bit, Win7 or Win10, etc.
  • the environment information also includes preset installation parameters, for example, the receiving address of the installation package of the application to be deployed, the installation address of the application to be deployed, the installation package is automatically deleted after installation, or the waiting time (for example, one week) to delete the installation package, after installation Automatically run the program, installation time (install immediately, install in standby or install at shutdown, etc.), etc.
  • the environmental information also includes the preset network address of the Windows controlled server, for example, the Internet Protocol, IP) etc.
  • the preset installation parameters can be obtained by parsing the installation setting file, which can be obtained according to the options in the setting page corresponding to the Windows controlled server, or according to the manual deployment history of the Windows controlled server It is not limited here.
  • the Linux main control server obtains the installation setting file of the Windows controlled server; the Linux main control server obtains the application type of the application to be deployed; the Linux main control server parses the installation setting file based on the application type, and obtains Installation parameters.
  • the application type of the application to be deployed can be work and entertainment, and can also be functions such as identity verification, payment, queuing, and query, which are not limited here.
  • the setting parameters corresponding to each installation option can be obtained.
  • analyzing the installation device file based on the application type of the application to be deployed can improve the accuracy of obtaining installation parameters.
  • the Linux master server can divide the Windows controlled server according to application type, address location, role type, etc., which is not limited here.
  • the Windows controlled server is pre-installed with a virtual Linux environment, which facilitates data interaction between the Linux master server and the Windows controlled server.
  • This application does not limit the method of installing a virtual Linux environment, and the installation can be based on a virtual machine program, for example, installing a virtual Linux environment by installing an installation package of cygwin.
  • the cygwin is a Windows application software used to emulate the Linux operating system. After installing cygwin, start cygwin, that is, perform automatic installation and start the remote login service (for example, the security service daemon (Security Services Dameon, ssd)).
  • the remote login interface service for example, Secure Shell Dameon (sshd)
  • the Linux master control server based on the remote login protocol (for example, Secure Shell (ssh)), so that Windows The controlled server establishes a remote connection with the Linux main control server.
  • the remote login interface service for example, Secure Shell Dameon (sshd)
  • the remote login protocol for example, Secure Shell (ssh)
  • the above remote login service can be a service started after the Windows controlled server is turned on, that is, a command (systemctl enable sshd) is set in the Windows controlled server to start the ssd service at system startup. You can also turn it on when you turn it on, and turn it on after connecting to the Linux master server, that is, set the command to open the ssd service (systemctl start sshd) in the Windows controlled server.
  • an embodiment of the present application provides a schematic flowchart of an application deployment method.
  • an application deployment method includes S201-S204.
  • the Linux master control server determines the Windows controlled server corresponding to the application to be deployed.
  • the application to be deployed is an application that has not been deployed yet in the Linux master control server, which may be an application that is online or updated, or an application that has not been deployed, which is not limited here.
  • the Windows controlled server can be a newly added server or a server that has not been deployed before, and it is not limited here. Among them, undeployed may include two situations where a service is not deployed and an application to be deployed is not deployed.
  • Step S201 may be executed periodically, that is, a deployment period is preset, and when the deployment period arrives, the application on the Linux master control server is updated and deployed. Step S201 may also be triggered by an online or updated application, that is, the application is deployed when the application is online or updated. Step S201 may also be requested to be executed by the Windows controlled server, that is, the Windows controlled server actively requests to deploy applications, etc., which is not limited here.
  • the Linux main control server obtains the target network address of the Windows controlled server based on the remote login protocol and the virtual machine program.
  • the remote login protocol can be the protocol corresponding to the previous remote login service, such as ssh, and the virtual machine program can also be the aforementioned program for installing a virtual Linux environment in a Windows controlled server, such as cygwin .
  • the target network address can be the current IP address of the Windows controlled server, which can be used to obtain the location information of the Windows controlled server. For example, the acquisition is performed based on the access network corresponding to the network address, or the acquisition is performed according to the network address pre-configured for each Windows controlled server in the Linux master control server.
  • the Linux main control server obtains the target network address of the Windows controlled server. It can be directly obtained by the Linux main control server based on the remote login protocol and virtual machine program; it can also be obtained by the Linux main control server according to the remote login protocol and virtual machine program to Windows.
  • the data acquisition request sent by the control server is obtained by the target network address that the Windows controlled server replies to the data acquisition request, which is not limited here.
  • the Linux master server is based on the remote login protocol and virtual machine program, and the information to be verified is related to the Windows controlled server.
  • the server establishes a remote connection.
  • the information to be verified is used for identity verification of the Windows controlled server. If the verification is successful, the Windows controlled server is connected to the Linux master server.
  • the information to be verified is one of the environmental information of the Windows controlled server pre-stored in the Linux master server, which can include identity information such as the MAC address, the host name of the client, and the account identification of the application, or it can be a key or Decryption algorithm.
  • the Windows controlled server verifies the information to be verified stored in the Linux main control server based on the remote login protocol and the virtual machine program, and when the verification is successful, establishes a remote connection with the Linux main control server. Then obtain the environmental information of the Windows controlled server, which can protect the data in the Windows controlled server and improve the security of the Windows controlled server.
  • the Linux master control server obtains the first configuration information according to the target network address and the environmental information.
  • the preset network address is one item of the environment information of the Windows controlled server pre-stored by the Linux main control server.
  • the environment information is used to describe the preset environment of the Windows controlled server.
  • the first configuration information is used for the Windows controlled server to automatically deploy the application to be deployed.
  • the first configuration information may include the configuration parameters corresponding to the installation options in the environment information, and may also include the installation package of the application to be deployed, and so on.
  • the target network address and the preset network address are inconsistent, it indicates that the current network environment may change.
  • Obtaining the first configuration information according to the target network address and the environmental information can improve the success rate of deployment. Otherwise, the first configuration information can be obtained directly according to the environmental information, which improves the efficiency of obtaining configuration information and facilitates the improvement of deployment efficiency.
  • step S203 includes the following steps A1-A3.
  • A1 The Linux master control server modifies the preset installation parameters according to the target network address to obtain the target installation parameters.
  • A2 The Linux master control server obtains the configuration script corresponding to the preset system type.
  • the Linux master control server obtains the target installation parameters and the first configuration information corresponding to the installation package of the application to be deployed according to the configuration script.
  • the configuration script may be obtained according to the script corresponding to the preset system type and the installation file, which is not limited here.
  • the target network address can be used to describe the geographic location of the Windows controlled server. Based on the geographic location, the role information of the Windows controlled server in the Linux main control server can be obtained. Therefore, the target installation parameters obtained by modifying the preset installation parameters according to the target network address contain role information, and combined with the configuration script corresponding to the preset system type, the target installation parameters and the first configuration information corresponding to the installation package of the application to be deployed can be obtained. Improve the accuracy of application deployment.
  • step A3 includes the following steps B1-B3.
  • the Linux master server obtains the role type of the Windows controlled server.
  • the Linux master control server obtains the target installation file corresponding to the installation package of the application to be deployed according to the role type.
  • the Linux master control server obtains the target installation parameters and the first configuration information corresponding to the target installation file according to the configuration script.
  • the role type can be the level of the management user corresponding to the Windows controlled server, or the level at which the Windows controlled server is deployed, or the primary server or alternative among multiple Windows controlled servers corresponding to the Linux master server.
  • the server can also be a server corresponding to different functions (for example, authentication, queuing, and query), which is not limited here.
  • the target installation file can be obtained according to the mapping relationship between the preset role type and the installation file, or can be obtained by deleting the installation package of the application to be deployed according to the role type, that is, only the application that contains the role type and basic functions Wait, it is not limited here.
  • the Linux master server obtains the target installation file corresponding to the installation package of the application to be deployed according to the role type corresponding to the Windows controlled server, and then the configuration script corresponding to the preset system type Obtaining the first configuration information corresponding to the target installation file and the target installation parameters can improve the accuracy of obtaining the configuration information, and facilitate the improvement of the success rate of application deployment.
  • step B1 includes the following steps C1-C3.
  • the Linux main control server obtains the location information of the Windows controlled server according to the target network address.
  • the Linux main control server obtains the identity information of the Windows controlled server according to the information to be verified.
  • the Linux master control server obtains the role level according to the identity information and location information.
  • the Linux master control server obtains the Windows controlled server according to the identity information and location information corresponding to the Windows controlled server.
  • the role level of the control server in the Windows controlled server group corresponding to the Linux main control server is convenient to obtain the configuration information corresponding to the role level, and the accuracy of the configuration is improved.
  • S204 The Linux main control server sends the first configuration information to the Windows controlled server.
  • the Linux master control server sends the first configuration information to the Windows controlled server, so that the Windows controlled server installs the application to be deployed according to the first configuration information.
  • the Windows controlled server installs the application to be deployed according to the first configuration information. It can be that the Windows controlled server installs the installation files in the Linux master server according to the first configuration information; it can also be the Windows controlled server according to the first configuration information. , Obtain the installation file corresponding to the application to be deployed in the Linux master server, and install it on the Windows controlled server.
  • the Linux master control server obtains the target network address of the Windows controlled server corresponding to the application to be deployed based on the remote login protocol and the virtual machine program, which improves the efficiency of data acquisition. If the target network address is inconsistent with the preset network address, it means that the environmental information of the Windows controlled server may have changed, and then obtain the first configuration information according to the environmental information and the target network address, and then send the first configuration information to the Windows controlled server. In this way, the Windows controlled server installs the application to be deployed according to the first configuration information, which improves the efficiency and success rate of application deployment.
  • step S204 includes: the Linux main control server obtains the installation order of the Windows controlled servers according to the role type; the Linux main control server sends Windows controlled servers according to the installation order.
  • the control server sends the first configuration information, so that the Windows controlled server installs the application to be deployed according to the first configuration information and the installation sequence.
  • the installation sequence is used to describe the sequence in which each of the multiple Windows controlled servers corresponding to the Linux main control server installs the application to be deployed.
  • This application does not limit the method of obtaining the installation sequence, and can be set according to the installation priority corresponding to the role type.
  • the installation sequence of the primary server is before the installation sequence of the alternative server to avoid response failures, which is convenient Improve service efficiency.
  • the installation sequence can also be set according to the installation file corresponding to the role type. It can be understood that when the Windows controlled server installs the installation file in the Linux main control server according to the first configuration information, the installation file is in the Linux main control server , Increasing the order of installation can avoid deployment failures and improve the success rate of application deployment.
  • the installation order of each Windows controlled server is obtained according to the role type, and then the first configuration information is sent to the Windows controlled server according to the installation order, so that Windows The controlled server installs the application to be deployed according to the first configuration information and the installation sequence, which can improve the deployment success rate of the application to be deployed.
  • the Linux master control server obtains the deployment output log of the Windows controlled server based on the remote login protocol and virtual machine program; the Linux master control server determines the failure type of the application to be deployed according to the deployment output log; the Linux master control server According to the second configuration information of the failure type, the target network address, and the environmental parameter; the Linux master control server sends the second configuration information to the Windows controlled server, so that the Windows controlled server reinstalls the application to be deployed according to the second configuration information.
  • the deployment output log is the log of the Windows controlled server installing the application to be deployed, which is used to describe the deployment process.
  • the deployment output log includes installation records of each node in the application to be deployed.
  • the deployment output log is the same as the environment information acquisition method. It can be obtained by the Linux master server directly based on the remote login protocol and virtual machine program; it can also be sent by the Linux master server to the Windows controlled server in accordance with the remote login protocol and virtual machine program.
  • the data acquisition request is obtained from the deployment output log sent by the Windows controlled server for the data acquisition request. In addition, it can also be sent by the Windows controlled server to the Linux master server after the deployment fails, which is not limited here.
  • the deployment output log it can be understood that it can be determined whether the deployment of the application to be deployed is successful according to the deployment output log. If the deployment fails, the failure type is further analyzed, and the second configuration information is obtained according to the failure type, target network address, and environmental information. Then, the second configuration information is sent to the Windows controlled server, so that the Windows controlled server installs the application to be deployed according to the second configuration information, so as to improve the success rate of deployment.
  • the Linux master control server searches whether the deployment output log includes the preset keyword; if it is determined that the deployment output log includes the preset keyword, then The Linux main control server obtains the paragraph corresponding to the preset keyword in the deployment output log; the Linux main control server obtains the failure probability value corresponding to the paragraph; if the failure probability value is greater than the preset threshold, it is determined that the deployment of the application to be deployed fails.
  • the preset keywords can be fatal (Fatal), error (Error) and warning (Warn) and other failure-related words.
  • the failure probability of the preset keywords in different paragraphs is different. Therefore, in this example, the paragraph corresponding to the preset keyword is used to determine the failure probability value. When the failure probability value is greater than the preset threshold, the application deployment to be deployed is determined Failure to further improve the accuracy of determining deployment failure.
  • the target weight is determined according to the failure probability corresponding to each preset keyword; the target failure probability is obtained according to the failure probability value and the target weight corresponding to each preset keyword Value; if the failure probability value is greater than the preset threshold, it is determined that the deployment of the application to be deployed fails.
  • the failure probability of the preset keyword is used to determine the target weight, which is convenient for improving the accuracy of obtaining the target failure probability value, thereby further improving the accuracy of determining the deployment failure.
  • the Linux master control server analyzes the paragraph to obtain the failure type. It can be understood that the paragraph corresponding to the preset keyword describes the deployment step in which the error occurred, and the deployment failure type can be obtained by analyzing the paragraph.
  • the paragraph is analyzed to obtain at least one detection item; the detection item is detected to obtain the detection result; if the detection result is abnormal, it is determined that the type corresponding to the detection item is a failure type.
  • the detection items are the deployment steps corresponding to the paragraphs, and the detection results include abnormal and normal. It can be understood that the detection of the detection items corresponding to the paragraphs further improves the accuracy of determining the failure type.
  • the Linux main control server receives the page customization request sent by the Windows controlled server; the Linux main control server obtains the third configuration information according to the page customization request, the target network address, and environmental information; the Linux main control server sends the Windows controlled server The control server sends the third configuration information, so that the Windows controlled server deploys the page corresponding to the page customization request in the application to be deployed according to the third configuration information.
  • the page customization request is a personalized customization service added on the basis of the application to be deployed.
  • the page corresponding to the page customization request can be the import and export page, the permission configuration page, the contact page, the image platform data import, the call center system page, the permission file page, etc., which are not limited here.
  • the Linux master control server obtains the third configuration information based on the page customization request of the Windows controlled server, the target network address, and environmental information, and sends the third configuration information to the Windows controlled server, so that the Windows controlled server is waiting
  • Deploying the personalized customization page of the deployment page customization request in the deployment application improves the convenience of the deployment operation and facilitates the personalization of the Windows controlled server.
  • Figure 3 is a schematic flow diagram of another application deployment method provided by an embodiment of the present application. This method is applied to a Windows controlled server. Specifically, as shown in Figure 3 As shown, an application deployment method includes S301-S302.
  • the Windows controlled server receives the first configuration information sent by the Linux main control server.
  • the first configuration information is obtained by the Linux master control server according to the environment information and the target network address of the Windows controlled server.
  • S302 The Windows controlled server installs the application to be deployed according to the first configuration information.
  • the Windows controlled server receives the first configuration information obtained by the Linux main control server according to the environment information of the Windows controlled server, and installs the application to be deployed according to the first configuration information, which improves application deployment The success rate.
  • the Windows controlled server determines the failure type of the application to be deployed according to the deployment output log; the Windows controlled server sends the failure type to the Linux main control server.
  • the method for determining the failure type can refer to the description of the Linux master server, which will not be repeated here. It can be understood that, in this example, the Windows controlled server obtains the deployment failure type, and then sends it to the Linux master control server, which can improve the efficiency of deployment failure detection and facilitate the improvement of service quality.
  • the Windows controlled server sends a page customization request to the Linux main control server; the Windows controlled server receives the third configuration information sent by the Linux main control server, where the third configuration information is provided by the Linux main control server Obtain according to the environment information, target network address and page customization request of the Windows controlled server; the Windows controlled server deploys the page corresponding to the page customization request in the application to be deployed according to the third configuration information.
  • the Linux master control server obtains the third configuration information based on the page customization request of the Windows controlled server, the target network address, and environmental information, and sends the third configuration information to the Windows controlled server, so that the Windows controlled server is waiting
  • Deploying the personalized customization page of the deployment page customization request in the deployment application improves the convenience of the deployment operation and facilitates the personalization of the Windows controlled server.
  • FIG. 4 is a schematic structural diagram of an application deployment device proposed in the present application, which is applied to a Linux main control server.
  • the above-mentioned application deployment apparatus 400 includes: a processing unit 401, configured to determine the Windows controlled server corresponding to the application to be deployed; and a storage unit 403, configured to store environment information of the Windows controlled server, the environment information including presets Network address; the communication unit 402 is used to obtain the target network address of the Windows controlled server based on the remote login protocol and the virtual machine program; the processing unit 401 is also used to if the target network address is inconsistent with the preset network address, then according to the target network The address and environment information obtain the first configuration information; the communication unit 402 is also used to send the first configuration information to the Windows controlled server, so that the Windows controlled server installs the application to be deployed according to the first configuration information.
  • the processing unit 401 is specifically configured to modify the preset installation parameters according to the target network address to obtain the target installation parameters; obtain the corresponding preset system type The configuration script; obtain the target installation parameters and the first configuration information corresponding to the installation package of the application to be deployed according to the configuration script.
  • the communication unit 402 is also used to establish a remote connection with the Windows controlled server based on the remote login protocol and virtual machine program, and the information to be verified; the processing unit 401 specifically uses To obtain the role type of the Windows controlled server; obtain the target installation file corresponding to the installation package of the application to be deployed according to the role type; obtain the target installation parameters and the first configuration information corresponding to the target installation file according to the configuration script.
  • the processing unit 401 is specifically configured to obtain the location information of the Windows controlled server according to the target network address; obtain the identity information of the Windows controlled server according to the information to be verified; obtain the Windows controlled server according to the location information and identity information The type of role.
  • the processing unit 401 is further configured to obtain the installation order of the Windows controlled servers according to the role type; the communication unit 402 is specifically configured to send the Windows controlled servers according to the installation order.
  • the server sends the first configuration information, so that the Windows controlled server installs the application to be deployed according to the first configuration information and the installation sequence.
  • the communication unit 402 is further configured to obtain the deployment output log of the Windows controlled server based on the remote login protocol and the virtual machine program; the processing unit 401 is further configured to determine the failure type of the application to be deployed according to the deployment output log; The second configuration information is acquired according to the failure type, the target network address, and the environmental information; the communication unit 402 is further configured to send the second configuration information to the Windows controlled server, so that the Windows controlled server reinstalls the application to be deployed according to the second configuration information.
  • the communication unit 402 is also configured to receive a page customization request sent by a Windows controlled server; the processing unit 401 is also configured to obtain third configuration information according to the page customization request, the target network address, and environmental information; the communication unit 402 It is also used to send third configuration information to the Windows controlled server, so that the Windows controlled server deploys the page corresponding to the page customization request in the application to be deployed according to the third configuration information.
  • the device shown in FIG. 4 can also be applied to a Windows controlled server, where: the communication unit 402 is configured to receive the first configuration information sent by the Linux master control server, where the first configuration information The Linux master control server obtains it according to the environment information and the target network address of the Windows controlled server; the processing unit 401 is configured to install the application to be deployed according to the first configuration information.
  • the processing unit 401 is further configured to determine the failure type of the application to be deployed according to the deployment output log; the communication unit 402 is also configured to send the failure type to the Linux master control server.
  • the processing unit 401 is further configured to send a page customization request to the Linux main control server; receive the third configuration information sent by the Linux main control server, where the third configuration information is configured by the Linux main control server according to Windows.
  • the environment information, target network address, and page customization request of the control server are acquired; the processing unit 401 is further configured to deploy the page corresponding to the page customization request in the application to be deployed according to the third configuration information.
  • FIG. 5 is a schematic structural diagram of another application deployment device provided by an embodiment of the present application, and the application deployment device is a Linux master server.
  • the application deployment apparatus 500 includes a processor 510, a memory 520, a communication interface 530, and one or at least one program 540.
  • the related functions realized by the communication unit 402 shown in FIG. 4 can be realized through the communication interface 530, the related functions realized by the storage unit 403 shown in FIG. 4 can be realized by the memory 520, and the processing unit 401 shown in FIG.
  • the implemented related functions can be implemented by the processor 510.
  • the above-mentioned one or at least one program 540 is stored in the above-mentioned memory 520 and is configured to be executed by the above-mentioned processor 510.
  • the above-mentioned program 540 includes instructions for executing the following steps: determining the Windows controlled server corresponding to the application to be deployed; Log in to the protocol and virtual machine program to obtain the target network address of the Windows controlled server; if the target network address is inconsistent with the preset network address, the first configuration information is obtained according to the target network address and environmental information, where the preset network address is Linux One item of the environment information of the Windows controlled server pre-stored by the main control server; sending the first configuration information to the Windows controlled server, so that the Windows controlled server installs the application to be deployed according to the first configuration information.
  • the program 540 is specifically used to execute the instructions of the following steps: Target network address, modify the preset installation parameters to obtain the target installation parameters; obtain the configuration script corresponding to the preset system type; obtain the target installation parameters and the first configuration information corresponding to the installation package of the application to be deployed according to the configuration script.
  • the program 540 is also used to execute the instructions of the following steps: based on the remote login protocol and the virtual machine program, and The information to be verified establishes a remote connection with the Windows controlled server.
  • the above-mentioned program 540 is specifically used to execute the instructions of the following steps: obtain the role type of the Windows controlled server; obtain the role type to be deployed according to the role type The target installation file corresponding to the application installation package; obtain the target installation parameters and the first configuration information corresponding to the target installation file according to the configuration script.
  • the above program 540 is specifically used to execute the instructions of the following steps: obtain the location information of the Windows controlled server according to the target network address; obtain the Windows controlled server according to the information to be verified The identity information of the control server; obtain the role type of the Windows controlled server according to the location information and identity information.
  • the program 540 is specifically used to execute the instructions of the following steps: obtain Windows controlled servers according to the role type The installation sequence of the control server; according to the installation sequence, the first configuration information is sent to the Windows controlled server, so that the Windows controlled server installs the application to be deployed according to the first configuration information and the installation sequence.
  • the above-mentioned program 540 is also used to execute instructions of the following steps: obtain the deployment output log of the Windows controlled server based on the remote login protocol and the virtual machine program; determine the failure type of the application to be deployed according to the deployment output log; Obtain the second configuration information according to the failure type, the target network address, and the environmental information; send the second configuration information to the Windows controlled server, so that the Windows controlled server reinstalls the application to be deployed according to the second configuration information.
  • the above-mentioned program 540 is also used to execute instructions of the following steps: receiving a page customization request sent by a Windows controlled server; obtaining third configuration information according to the page customization request, target network address, and environmental information; The control server sends the third configuration information, so that the Windows controlled server deploys the page corresponding to the page customization request in the application to be deployed according to the third configuration information.
  • the device shown in FIG. 5 can also be applied to a Windows controlled server.
  • the above-mentioned program 540 includes instructions for executing the following steps:
  • the Windows controlled server receives the first configuration sent by the Linux main control server Information, where the first configuration information is obtained by the Linux master control server according to the environment information and the target network address of the Windows controlled server.
  • the Windows controlled server installs the application to be deployed according to the first configuration information.
  • the above-mentioned program 540 is also used to execute instructions of the following steps: determine the failure type of the application to be deployed according to the deployment output log; and send the failure type to the Linux master control server.
  • the above-mentioned program 540 is also used to execute instructions of the following steps: sending a page customization request to the Linux master control server; receiving third configuration information sent by the Linux master control server, where the third configuration information is determined by The Linux master control server acquires the environment information, target network address, and page customization request of the Windows controlled server; deploys the page corresponding to the page customization request in the application to be deployed according to the third configuration information.
  • the first configuration information is obtained according to the environment information and target network address of the Windows controlled server, and then the application to be deployed is installed according to the first configuration information, which improves the efficiency and efficiency of application deployment. Success rate.
  • the embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for storing a computer program, and the computer program causes a computer to execute part or all of the steps of any method recorded in the method embodiment, and the computer includes Linux master server or Windows controlled server.
  • the computer-readable storage medium may be non-volatile or volatile.
  • the embodiments of the present application also provide a computer program product.
  • the computer program product includes a non-transitory computer-readable storage medium storing a computer program.
  • the computer program is operable to cause a computer to execute any method described in the method embodiments. Part or all of the steps.
  • the computer program product may be a first software installation package, and the computer includes a Linux master server or a Windows controlled server.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only illustrative, for example, the division of units is only a logical function division, and there may be other divisions in actual implementation, for example, at least one unit or component can be combined or integrated into Another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to at least one network unit. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be realized in the form of hardware or in the form of software program mode.
  • the integrated unit is implemented in the form of a software program model and sold or used as an independent product, it can be stored in a computer readable memory.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, It includes several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods in the various embodiments of the present application.
  • the aforementioned memory includes: U disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
  • the program can be stored in a computer-readable memory, and the memory can include: a flash disk , ROM, RAM, magnetic disk or CD, etc.

Abstract

An application deployment method and device, and a medium. The method comprises: determining a Windows controlled server corresponding to an application to be deployed (S201); acquiring a target network address of the Windows controlled server on the basis of a remote login protocol and a virtual machine program (S202); if the target network address is inconsistent with a preset network address, acquiring first configuration information by means of a Linux main control server according to the target network address and environment information (S203); and sending the first configuration information to the Windows controlled server (S204), so that the Windows controlled server installs, according to the first configuration information, the application to be deployed. The method can improve the efficiency and success rate of a Linux main control server deploying an application for a Windows controlled server.

Description

应用部署方法、装置及介质Application deployment method, device and medium
本申请要求于2020年07月27日提交中国专利局、申请号为202010734265.X、申请名称为“应用部署方法、装置及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on July 27, 2020, the application number is 202010734265.X, and the application name is "application deployment methods, devices, and media", the entire content of which is incorporated herein by reference Applying.
技术领域Technical field
本申请涉及计算机技术领域,主要涉及了一种应用部署方法、装置及介质。This application relates to the field of computer technology, and mainly relates to an application deployment method, device and medium.
背景技术Background technique
目前,基于Linux操作系统的Linux主控服务器,向基于Windows操作系统的Windows被控服务器部署应用的方案,大多基于开发人员手动操作。发明人发现,手动操作的效率低,且出错概率高,因此,如何提高应用部署效率是本领域技术人员待解决的技术问题。At present, most of the schemes for deploying applications to the Windows controlled server based on the Linux operating system for the Linux master server based on the Linux operating system are based on the manual operation of the developers. The inventor found that manual operation has low efficiency and high error probability. Therefore, how to improve application deployment efficiency is a technical problem to be solved by those skilled in the art.
技术问题technical problem
基于现有的应用部署方案大多基于开发人员手动操作,手动操作的效率低,且出错概率高的问题,本申请实施方式提供一种应用部署方法、装置及介质,可提高Linux主控服务器向Windows被控服务器部署应用的效率和成功率。Based on the problems of existing application deployment schemes that are mostly based on manual operation by developers, the manual operation efficiency is low, and the error probability is high. The implementation of this application provides an application deployment method, device and medium, which can improve the Linux master control server to Windows The efficiency and success rate of deployed applications on the controlled server.
技术解决方案Technical solutions
第一方面,本申请实施例提供一种应用部署方法,其中:Linux主控服务器确定待部署应用对应的Windows被控服务器;Linux主控服务器基于远程登录协议和虚拟机程序,获取Windows被控服务器的目标网络地址;若目标网络地址和预设网络地址不一致,则Linux主控服务器根据目标网络地址和环境信息获取第一配置信息,其中,预设网络地址为Linux主控服务器预先存储的Windows被控服务器的环境信息中的一项;Linux主控服务器向Windows被控服务器发送第一配置信息,以使Windows被控服务器根据第一配置信息安装待部署应用。In the first aspect, the embodiments of the present application provide an application deployment method, in which: the Linux master control server determines the Windows controlled server corresponding to the application to be deployed; the Linux master control server obtains the Windows controlled server based on the remote login protocol and the virtual machine program If the target network address is inconsistent with the preset network address, the Linux master control server obtains the first configuration information according to the target network address and the environment information, where the preset network address is the Windows server pre-stored by the Linux master control server One item in the environment information of the control server; the Linux master control server sends the first configuration information to the Windows controlled server, so that the Windows controlled server installs the application to be deployed according to the first configuration information.
第二方面,本申请实施例提供第一种应用部署装置,其中:处理单元,用于确定待部署应用对应的Windows被控服务器;存储单元,用于存储Windows被控服务器的环境信息,环境信息包括预设网络地址;通信单元,用于基于远程登录协议和虚拟机程序,获取Windows被控服务器的目标网络地址;处理单元,还用于若目标网络地址和预设网络地址不一致,则根据目标网络地址和环境信息获取第一配置信息;通信单元,还用于向Windows被控服务器发送第一配置信息,以使Windows被控服务器根据第一配置信息安装待部署应用。In a second aspect, an embodiment of the present application provides a first application deployment device, wherein: a processing unit is used to determine the Windows controlled server corresponding to the application to be deployed; and the storage unit is used to store environment information and environment information of the Windows controlled server Including the preset network address; the communication unit is used to obtain the target network address of the Windows controlled server based on the remote login protocol and the virtual machine program; the processing unit is also used to, if the target network address and the preset network address are inconsistent, perform The network address and the environment information obtain the first configuration information; the communication unit is also used to send the first configuration information to the Windows controlled server, so that the Windows controlled server installs the application to be deployed according to the first configuration information.
第三方面,本申请实施例提供第三种应用部署装置,包括处理器、存储器、通信接口以及一个或至少一个程序,其中,上述一个或至少一个程序被存储在上述存储器中,并且被配置由上述处理器执行,其中:确定待部署应用对应的Windows被控服务器;基于远程登录协议和虚拟机程序,获取所述Windows被控服务器的目标网络地址;若所述目标网络地址和预设网络地址不一致,则根据所述目标网络地址和所述环境信息获取第一配置信息,其中,所述预设网络地址为所述Linux主控服务器预先存储的所述Windows被控服务器的环境信息中的一项;向所述Windows被控服务器发送所述第一配置信息,以使所述Windows被控服务器根据所述第一配置信息安装所述待部署应用。In a third aspect, an embodiment of the present application provides a third application deployment device, including a processor, a memory, a communication interface, and one or at least one program, wherein the one or at least one program is stored in the memory and is configured by The above processor executes, wherein: determine the Windows controlled server corresponding to the application to be deployed; obtain the target network address of the Windows controlled server based on the remote login protocol and the virtual machine program; if the target network address and the preset network address If they are not consistent, the first configuration information is obtained according to the target network address and the environment information, where the preset network address is one of the environment information of the Windows controlled server pre-stored by the Linux master control server Item; Send the first configuration information to the Windows controlled server, so that the Windows controlled server installs the application to be deployed according to the first configuration information.
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,计算机可读存储介质存储计算机程序,其中,计算机程序使得计算机执行以下步骤:确定待部署应用对应的Windows被控服务器;基于远程登录协议和虚拟机程序,获取所述Windows被控服务器的目标网络地址;若所述目标网络地址和预设网络地址不一致,则根据所述目标网络地址和所述环境信息获取第一配置信息,其中,所述预设网络地址为所述Linux主控服务器预先存储的所述Windows被控服务器的环境信息中的一项;向所述Windows被控服务器发送所述第一配置信息,以使所述Windows被控服务器根据所述第一配置信息安装所述待部署应用。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program causes the computer to perform the following steps: determine the Windows controlled server corresponding to the application to be deployed; Obtain the target network address of the Windows controlled server based on the remote login protocol and the virtual machine program; if the target network address is inconsistent with the preset network address, obtain the first configuration according to the target network address and the environmental information Information, wherein the preset network address is one of the environmental information of the Windows controlled server pre-stored by the Linux main control server; and the first configuration information is sent to the Windows controlled server to Enabling the Windows controlled server to install the application to be deployed according to the first configuration information.
有益效果Beneficial effect
实施本申请实施例,将具有如下有益效果:采用了上述的应用部署方法、装置及介质之后,Linux主控服务器基于远程登录协议和虚拟机程序,获取待部署应用对应的Windows被控服务器的目标网络地址,提高了数据获取效率。若目标网络地址与预设网络地址不一致,则表示Windows被控服务器的环境信息可能发生变化,再根据环境信息和目标网络地址获取第一配置信息,然后向Windows被控服务器发送第一配置信息,以使Windows被控服务器按照第一配置信息安装待部署应用,提高了应用部署的效率和成功率。The implementation of the embodiments of the present application will have the following beneficial effects: after the application deployment method, device, and medium described above are adopted, the Linux master control server obtains the target of the Windows controlled server corresponding to the application to be deployed based on the remote login protocol and virtual machine program The network address improves the efficiency of data acquisition. If the target network address is inconsistent with the preset network address, it means that the environmental information of the Windows controlled server may have changed, and then obtain the first configuration information according to the environmental information and the target network address, and then send the first configuration information to the Windows controlled server. In this way, the Windows controlled server installs the application to be deployed according to the first configuration information, which improves the efficiency and success rate of application deployment.
附图说明Description of the drawings
图1为本申请实施例提供的一种应用部署系统的结构示意图。FIG. 1 is a schematic structural diagram of an application deployment system provided by an embodiment of the application.
图2为本申请实施例提供的一种应用部署方法的流程示意图。FIG. 2 is a schematic flowchart of an application deployment method provided by an embodiment of the application.
图3为本申请实施例提供的另一种应用部署方法的流程示意图。FIG. 3 is a schematic flowchart of another application deployment method provided by an embodiment of the application.
图4为本申请实施例提供的一种应用部署装置的逻辑结构示意图。FIG. 4 is a schematic diagram of the logical structure of an application deployment apparatus provided by an embodiment of the application.
图5为本申请实施例提供的一种应用部署装置的实体结构示意图。FIG. 5 is a schematic diagram of the physical structure of an application deployment apparatus provided by an embodiment of the application.
本发明的实施方式Embodiments of the present invention
请参见图1,图1为应用本申请实施例的网络架构示意图。该网络架构示意图包括客户端101和服务器102。需要说明的是,图1所示的网络架构示意图中的各个设备的数量和形态用于举例,并不构成对本申请实施例的限定。Please refer to Fig. 1, which is a schematic diagram of a network architecture to which an embodiment of the present application is applied. The schematic diagram of the network architecture includes a client 101 and a server 102. It should be noted that the number and form of each device in the schematic diagram of the network architecture shown in FIG. 1 are used as examples, and do not constitute a limitation to the embodiment of the present application.
其中,客户端101可以是图1所示的手机,也可以是个人计算机(personal computer,PC)、笔记本电脑、一体机、掌上电脑、平板电脑(pad)、智能电视播放终端、车载终端或便捷式设备等电子设备。在本申请实施例中,客户端101的操作系统基于Windows操作系统(例如Windows xp、Windows 7等)。Among them, the client 101 can be a mobile phone as shown in FIG. 1, or a personal computer (PC), a notebook computer, an all-in-one computer, a handheld computer, a tablet computer (pad), a smart TV playback terminal, a vehicle-mounted terminal, or a convenient Electronic equipment such as type equipment. In the embodiment of the present application, the operating system of the client 101 is based on a Windows operating system (for example, Windows XP, Windows 7, etc.).
如图1所示,服务器102包括与客户端101连接的Windows被控服务器1021,也包括与Windows被控服务器1021连接的Linux主控服务器1022。其中,Windows被控服务器1021基于Windows操作系统,Linux主控服务器1022可以基于Linux操作系统,也可以是基于Windows操作系统的虚拟环境中采用Linux语言的开发平台。Linux主控服务器1022用于存储待部署应用的安装包,并为Windows被控服务器1021提供应用部署服务。Windows被控服务器1021用于为客户端101提供应用服务。也就是说,Windows被控服务器1021相当于Linux主控服务器1022的客户端,Linux主控服务器1022相当于Windows被控服务器1021的服务器。As shown in FIG. 1, the server 102 includes a Windows controlled server 1021 connected to the client 101, and also includes a Linux master server 1022 connected to the Windows controlled server 1021. Among them, the Windows controlled server 1021 is based on the Windows operating system, and the Linux main control server 1022 may be based on the Linux operating system, or may be a development platform using the Linux language in a virtual environment based on the Windows operating system. The Linux master server 1022 is used to store the installation package of the application to be deployed, and provide application deployment services for the Windows controlled server 1021. The Windows controlled server 1021 is used to provide application services for the client 101. In other words, the Windows controlled server 1021 is equivalent to the client of the Linux master server 1022, and the Linux master server 1022 is equivalent to the server of the Windows controlled server 1021.
Linux主控服务器1022除了与图1所示的Windows被控服务器连接之外,还可与其它的Windows被控服务器连接,并为其它的Windows被控服务器部署应用。需要说明的是,其它的Windows被控服务器中部署的应用可以与图1中的应用相同,也可以不同。In addition to being connected to the Windows controlled server shown in FIG. 1, the Linux main control server 1022 can also be connected to other Windows controlled servers and deploy applications for other Windows controlled servers. It should be noted that the applications deployed in other Windows controlled servers can be the same as or different from the applications in FIG. 1.
在本申请实施例中,Linux主控服务器还用于存储与该Linux主控服务器对应的Windows被控服务器的环境信息。与Linux主控服务器对应的Windows被控服务器可包括与该Linux主控服务器连接的服务器,也可包括Linux主控服务器的配置名单中的服务器等,在此不做限定。In the embodiment of the present application, the Linux main control server is also used to store the environment information of the Windows controlled server corresponding to the Linux main control server. The Windows controlled server corresponding to the Linux main control server may include a server connected to the Linux main control server, and may also include servers in the configuration list of the Linux main control server, etc., which is not limited herein.
Windows被控服务器的环境信息包括Windows被控服务器的待验证信息,例如:媒体存取控制位址(Media Access Control Address,MAC)、客户端的主机名、应用的账户标识等身份信息,或者用于验证身份的密钥,或者解密算法。该环境信息还包括Windows被控服务器的预设系统类型,例如,32位还是64位,Win7还是Win10等。该环境信息还包括预设安装参数,例如,待部署应用的安装包的接收地址、待部署应用的安装地址、安装之后自动删除安装包或等待预设时长(例如一周)删除安装包、安装之后自动运行方案、安装时间(立即安装、待机时安装或关机时安装等)等。该环境信息还包括Windows被控服务器的预设网络地址,例如,网络互联协议(Internet Protocol,IP)等。The environment information of the Windows controlled server includes the information to be verified of the Windows controlled server, such as: Media Access Control Address (MAC), client host name, application account identification and other identity information, or used for The key to verify identity, or decryption algorithm. The environment information also includes the preset system type of the Windows controlled server, for example, whether it is 32-bit or 64-bit, Win7 or Win10, etc. The environment information also includes preset installation parameters, for example, the receiving address of the installation package of the application to be deployed, the installation address of the application to be deployed, the installation package is automatically deleted after installation, or the waiting time (for example, one week) to delete the installation package, after installation Automatically run the program, installation time (install immediately, install in standby or install at shutdown, etc.), etc. The environmental information also includes the preset network address of the Windows controlled server, for example, the Internet Protocol, IP) etc.
其中,预设安装参数可通过解析安装设置文件得到,该安装设置文件可以是根据Windows被控服务器对应的设置页面中的选项进行获取的,也可以是根据Windows被控服务器的手动部署历史记录进行获取的,在此不做限定。Among them, the preset installation parameters can be obtained by parsing the installation setting file, which can be obtained according to the options in the setting page corresponding to the Windows controlled server, or according to the manual deployment history of the Windows controlled server It is not limited here.
在一种可能的示例中,Linux主控服务器获取Windows被控服务器的安装设置文件;Linux主控服务器获取待部署应用的应用类型;Linux主控服务器基于应用类型,对安装设置文件进行解析,得到安装参数。In a possible example, the Linux main control server obtains the installation setting file of the Windows controlled server; the Linux main control server obtains the application type of the application to be deployed; the Linux main control server parses the installation setting file based on the application type, and obtains Installation parameters.
其中,待部署应用的应用类型可以是工作和娱乐,也可以是身份验证、支付、排队、查询等功能,在此也不做限定。Among them, the application type of the application to be deployed can be work and entertainment, and can also be functions such as identity verification, payment, queuing, and query, which are not limited here.
可以理解,对安装设置文件进行解析,可得到各个安装选项对应的设置参数。在该示例中,基于待部署应用的应用类型,对安装设备文件进行解析,可提高获取安装参数的准确率。It can be understood that by parsing the installation setting file, the setting parameters corresponding to each installation option can be obtained. In this example, analyzing the installation device file based on the application type of the application to be deployed can improve the accuracy of obtaining installation parameters.
本申请对于服务器102中Linux主控服务器和Windows被控服务器的数量不做限定。Linux主控服务器可以按照应用类型、地址位置、角色类型等划分Windows被控服务器,在此不做限定。This application does not limit the number of Linux master servers and Windows controlled servers in the server 102. The Linux master server can divide the Windows controlled server according to application type, address location, role type, etc., which is not limited here.
需要说明的是,Windows被控服务器预先安装了虚拟Linux环境,从而便于Linux主控服务器与Windows被控服务器之间进行数据交互。本申请对于安装虚拟Linux环境的方法不做限定,可基于虚拟机程序进行安装,例如,通过安装cygwin的安装包进行虚拟Linux环境安装。该cygwin是一个Windows应用软件,用于仿真Linux操作系统。在安装cygwin之后,启动cygwin,即执行自动安装和启动远程登录服务(例如,安全服务守护进程(Security Services Dameon,ssd))。如此,向Linux主控服务器开放了远程登录接口服务(例如,安全外壳守护进程(Secure Shell Dameon,sshd)),基于远程登录协议(例如,安全外壳协议(Secure Shell,ssh)),以使Windows被控服务器与Linux主控服务器建立远程连接。It should be noted that the Windows controlled server is pre-installed with a virtual Linux environment, which facilitates data interaction between the Linux master server and the Windows controlled server. This application does not limit the method of installing a virtual Linux environment, and the installation can be based on a virtual machine program, for example, installing a virtual Linux environment by installing an installation package of cygwin. The cygwin is a Windows application software used to emulate the Linux operating system. After installing cygwin, start cygwin, that is, perform automatic installation and start the remote login service (for example, the security service daemon (Security Services Dameon, ssd)). In this way, the remote login interface service (for example, Secure Shell Dameon (sshd)) is opened to the Linux master control server, based on the remote login protocol (for example, Secure Shell (ssh)), so that Windows The controlled server establishes a remote connection with the Linux main control server.
上述远程登录服务可以是Windows被控服务器开机之后启动的服务,即在Windows被控服务器中设置系统开机启动ssd服务的命令(systemctl enable sshd)。也可以开机时不开启,在与Linux主控服务器连接之后再开启,即在Windows被控服务器中设置打开ssd服务的命令(systemctl start sshd)。The above remote login service can be a service started after the Windows controlled server is turned on, that is, a command (systemctl enable sshd) is set in the Windows controlled server to start the ssd service at system startup. You can also turn it on when you turn it on, and turn it on after connecting to the Linux master server, that is, set the command to open the ssd service (systemctl start sshd) in the Windows controlled server.
下面对本申请实施例提供的应用部署方法的具体流程进一步进行说明。The specific process of the application deployment method provided in the embodiment of the present application will be further described below.
请参照图2,本申请实施例提供一种应用部署方法的流程示意图。如图2所示,一种应用部署方法,包括S201-S204。Please refer to FIG. 2, an embodiment of the present application provides a schematic flowchart of an application deployment method. As shown in Figure 2, an application deployment method includes S201-S204.
S201:Linux主控服务器确定待部署应用对应的Windows被控服务器。S201: The Linux master control server determines the Windows controlled server corresponding to the application to be deployed.
在本申请实施例中,待部署应用为Linux主控服务器中未完成部署的应用,可以是上线或更新的应用,也可以是未完成部署的应用,在此不做限定。Windows被控服务器可以是新加入的服务器,也可以是之前未部署完成的服务器,在此也不做限定。其中,未部署可包括未部署服务和未部署待部署应用两种情况。In the embodiments of the present application, the application to be deployed is an application that has not been deployed yet in the Linux master control server, which may be an application that is online or updated, or an application that has not been deployed, which is not limited here. The Windows controlled server can be a newly added server or a server that has not been deployed before, and it is not limited here. Among them, undeployed may include two situations where a service is not deployed and an application to be deployed is not deployed.
步骤S201可以是定时执行的,即预先设置一个部署周期,在部署周期到达时,对Linux主控服务器上的应用进行更新部署。步骤S201也可以是由上线或更新的应用触发的,即在应用上线或更新时,将该应用进行部署。步骤S201还可以是由Windows被控服务器请求执行的,即Windows被控服务器主动请求部署应用等,在此不做限定。Step S201 may be executed periodically, that is, a deployment period is preset, and when the deployment period arrives, the application on the Linux master control server is updated and deployed. Step S201 may also be triggered by an online or updated application, that is, the application is deployed when the application is online or updated. Step S201 may also be requested to be executed by the Windows controlled server, that is, the Windows controlled server actively requests to deploy applications, etc., which is not limited here.
S202:Linux主控服务器基于远程登录协议和虚拟机程序,获取Windows被控服务器的目标网络地址。S202: The Linux main control server obtains the target network address of the Windows controlled server based on the remote login protocol and the virtual machine program.
在本申请实施例中,远程登录协议可以是如前的远程登录服务对应的协议,例如ssh,虚拟机程序也可以是前述的用于在Windows被控服务器中安装虚拟Linux环境的程序,例如cygwin。In the embodiment of this application, the remote login protocol can be the protocol corresponding to the previous remote login service, such as ssh, and the virtual machine program can also be the aforementioned program for installing a virtual Linux environment in a Windows controlled server, such as cygwin .
目标网络地址可以是Windows被控服务器当前的IP地址,可用于获取Windows被控服务器的位置信息。例如,基于网络地址对应的接入网进行获取,或者按照Linux主控服务器中预先为各个Windows被控服务器配置的网络地址进行获取等。The target network address can be the current IP address of the Windows controlled server, which can be used to obtain the location information of the Windows controlled server. For example, the acquisition is performed based on the access network corresponding to the network address, or the acquisition is performed according to the network address pre-configured for each Windows controlled server in the Linux master control server.
Linux主控服务器获取Windows被控服务器的目标网络地址,可以是Linux主控服务器直接基于远程登录协议和虚拟机程序获取的;也可以是Linux主控服务器按照远程登录协议和虚拟机程序向Windows被控服务器发送的数据获取请求,由Windows被控服务器针对数据获取请求回复的目标网络地址获取得到的,在此不做限定。The Linux main control server obtains the target network address of the Windows controlled server. It can be directly obtained by the Linux main control server based on the remote login protocol and virtual machine program; it can also be obtained by the Linux main control server according to the remote login protocol and virtual machine program to Windows. The data acquisition request sent by the control server is obtained by the target network address that the Windows controlled server replies to the data acquisition request, which is not limited here.
在一种可能的示例中,在获取Windows被控服务器的目标网络地址之前,若环境信息还包括待验证信息,Linux主控服务器基于远程登录协议和虚拟机程序,以及待验证信息与Windows被控服务器建立远程连接。In a possible example, before obtaining the target network address of the Windows controlled server, if the environment information also includes the information to be verified, the Linux master server is based on the remote login protocol and virtual machine program, and the information to be verified is related to the Windows controlled server. The server establishes a remote connection.
其中,待验证信息用于Windows被控服务器进行身份验证。若验证成功,则Windows被控服务器与Linux主控服务器连接。如前待验证信息是Linux主控服务器中预先存储的Windows被控服务器的环境信息中的一项,可包括MAC地址、客户端的主机名、应用的账户标识等身份信息,也可以是密钥或者解密算法。Among them, the information to be verified is used for identity verification of the Windows controlled server. If the verification is successful, the Windows controlled server is connected to the Linux master server. For example, the information to be verified is one of the environmental information of the Windows controlled server pre-stored in the Linux master server, which can include identity information such as the MAC address, the host name of the client, and the account identification of the application, or it can be a key or Decryption algorithm.
可以理解,Windows被控服务器基于远程登录协议和虚拟机程序,验证Linux主控服务器中存储的待验证信息,且在验证成功时,与Linux主控服务器建立远程连接。再获取Windows被控服务器的环境信息,可保护Windows被控服务器中的数据,提高了Windows被控服务器的安全性。It can be understood that the Windows controlled server verifies the information to be verified stored in the Linux main control server based on the remote login protocol and the virtual machine program, and when the verification is successful, establishes a remote connection with the Linux main control server. Then obtain the environmental information of the Windows controlled server, which can protect the data in the Windows controlled server and improve the security of the Windows controlled server.
S203:若目标网络地址和预设网络地址不一致,则Linux主控服务器根据目标网络地址和环境信息获取第一配置信息。S203: If the target network address and the preset network address are inconsistent, the Linux master control server obtains the first configuration information according to the target network address and the environmental information.
在本申请实施例中,预设网络地址为Linux主控服务器预先存储的Windows被控服务器的环境信息中的一项。环境信息用于描述Windows被控服务器的预设环境。第一配置信息用于Windows被控服务器自动部署待部署应用。第一配置信息可包括与环境信息中安装选项对应的配置参数,也可包括待部署应用的安装包等。In the embodiment of the present application, the preset network address is one item of the environment information of the Windows controlled server pre-stored by the Linux main control server. The environment information is used to describe the preset environment of the Windows controlled server. The first configuration information is used for the Windows controlled server to automatically deploy the application to be deployed. The first configuration information may include the configuration parameters corresponding to the installation options in the environment information, and may also include the installation package of the application to be deployed, and so on.
可以理解,在目标网络地址和预设网络地址不一致时,表示当前网络环境可能发生改变,根据目标网络地址和环境信息获取第一配置信息,可提高部署的成功率。否则,可直接获取根据环境信息获取第一配置信息,提高了获取配置信息的效率,便于提高部署效率。It can be understood that when the target network address and the preset network address are inconsistent, it indicates that the current network environment may change. Obtaining the first configuration information according to the target network address and the environmental information can improve the success rate of deployment. Otherwise, the first configuration information can be obtained directly according to the environmental information, which improves the efficiency of obtaining configuration information and facilitates the improvement of deployment efficiency.
本申请对于获取第一配置信息的方法不做限定,在一种可能的示例中,若环境信息包括预设安装参数和预设系统类型,则步骤S203包括以下步骤A1-A3。This application does not limit the method for obtaining the first configuration information. In a possible example, if the environment information includes preset installation parameters and preset system types, step S203 includes the following steps A1-A3.
A1:Linux主控服务器根据目标网络地址,修改预设安装参数,得到目标安装参数。A1: The Linux master control server modifies the preset installation parameters according to the target network address to obtain the target installation parameters.
A2:Linux主控服务器获取预设系统类型对应的配置脚本。A2: The Linux master control server obtains the configuration script corresponding to the preset system type.
A3:Linux主控服务器根据配置脚本获取目标安装参数和待部署应用的安装包对应的第一配置信息。A3: The Linux master control server obtains the target installation parameters and the first configuration information corresponding to the installation package of the application to be deployed according to the configuration script.
其中,配置脚本可以是按照预先设置的系统类型和安装文件对应的脚本进行获取,在此不做限定。Wherein, the configuration script may be obtained according to the script corresponding to the preset system type and the installation file, which is not limited here.
目标网络地址可用于描述Windows被控服务器的地理位置。基于该地理位置可获取该Windows被控服务器在Linux主控服务器中的角色信息。因此,根据目标网络地址修改预设安装参数得到的目标安装参数包含角色信息,再结合预设系统类型对应的配置脚本,获取目标安装参数和待部署应用的安装包对应的第一配置信息,可提高应用部署的准确性。The target network address can be used to describe the geographic location of the Windows controlled server. Based on the geographic location, the role information of the Windows controlled server in the Linux main control server can be obtained. Therefore, the target installation parameters obtained by modifying the preset installation parameters according to the target network address contain role information, and combined with the configuration script corresponding to the preset system type, the target installation parameters and the first configuration information corresponding to the installation package of the application to be deployed can be obtained. Improve the accuracy of application deployment.
本申请对于配置脚本获取目标安装参数和待部署应用的安装包对应的第一配置信息的方法不做限定,在一种可能的示例中,步骤A3包括以下步骤B1-B3。This application does not limit the method for the configuration script to obtain the target installation parameters and the first configuration information corresponding to the installation package of the application to be deployed. In a possible example, step A3 includes the following steps B1-B3.
B1:Linux主控服务器获取Windows被控服务器的角色类型。B1: The Linux master server obtains the role type of the Windows controlled server.
B2:Linux主控服务器根据角色类型获取待部署应用的安装包对应的目标安装文件。B2: The Linux master control server obtains the target installation file corresponding to the installation package of the application to be deployed according to the role type.
B3:Linux主控服务器根据配置脚本获取目标安装参数和目标安装文件对应的第一配置信息。B3: The Linux master control server obtains the target installation parameters and the first configuration information corresponding to the target installation file according to the configuration script.
其中,角色类型可以是Windows被控服务器对应的管理用户的等级,也可以是Windows被控服务器被部署的等级,或者Linux主控服务器对应的多个Windows被控服务器中的主选服务器或备选服务器,也可以是不同功能(例如,身份验证、排队、查询)对应的服务器等,在此不做限定。Among them, the role type can be the level of the management user corresponding to the Windows controlled server, or the level at which the Windows controlled server is deployed, or the primary server or alternative among multiple Windows controlled servers corresponding to the Linux master server. The server can also be a server corresponding to different functions (for example, authentication, queuing, and query), which is not limited here.
目标安装文件可以是按照预先设置的角色类型和安装文件之间的映射关系进行获取,也可按照角色类型,对待部署应用的安装包进行删减得到,即仅包含该角色类型和基础功能的应用等,在此不做限定。The target installation file can be obtained according to the mapping relationship between the preset role type and the installation file, or can be obtained by deleting the installation package of the application to be deployed according to the role type, that is, only the application that contains the role type and basic functions Wait, it is not limited here.
可以理解,不同角色类型对应的服务业务不同,因此,Linux主控服务器根据Windows被控服务器对应的角色类型获取待部署应用的安装包对应的目标安装文件,再根据预设系统类型对应的配置脚本获取目标安装文件和目标安装参数对应的第一配置信息,可提高获取配置信息的准确率,便于提高应用部署的成功率。It can be understood that different role types correspond to different service businesses. Therefore, the Linux master server obtains the target installation file corresponding to the installation package of the application to be deployed according to the role type corresponding to the Windows controlled server, and then the configuration script corresponding to the preset system type Obtaining the first configuration information corresponding to the target installation file and the target installation parameters can improve the accuracy of obtaining the configuration information, and facilitate the improvement of the success rate of application deployment.
本申请对于获取角色类型的方法不做限定,在一种可能的示例中,步骤B1包括以下步骤C1-C3。This application does not limit the method for acquiring the role type. In a possible example, step B1 includes the following steps C1-C3.
C1:Linux主控服务器根据目标网络地址获取Windows被控服务器的位置信息。C1: The Linux main control server obtains the location information of the Windows controlled server according to the target network address.
C2:Linux主控服务器根据待验证信息获取Windows被控服务器的身份信息。C2: The Linux main control server obtains the identity information of the Windows controlled server according to the information to be verified.
C3:Linux主控服务器根据身份信息和位置信息获取角色等级。C3: The Linux master control server obtains the role level according to the identity information and location information.
可以理解,不同身份信息对应的服务业务不同,不同位置信息对应的Windows被控服务器的服务业务也存在差异,因此,Linux主控服务器根据Windows被控服务器对应的身份信息和位置信息获取该Windows被控服务器在Linux主控服务器对应的Windows被控服务器群中的角色等级,便于获取与该角色等级对应的配置信息,提高配置的准确率。It can be understood that the service business corresponding to different identity information is different, and the service business of the Windows controlled server corresponding to different location information is also different. Therefore, the Linux master control server obtains the Windows controlled server according to the identity information and location information corresponding to the Windows controlled server. The role level of the control server in the Windows controlled server group corresponding to the Linux main control server is convenient to obtain the configuration information corresponding to the role level, and the accuracy of the configuration is improved.
S204:Linux主控服务器向Windows被控服务器发送第一配置信息。S204: The Linux main control server sends the first configuration information to the Windows controlled server.
在本申请实施例中,Linux主控服务器向Windows被控服务器发送第一配置信息,以使Windows被控服务器根据第一配置信息安装待部署应用。Windows被控服务器根据第一配置信息安装待部署应用,可以是Windows被控服务器按照第一配置信息,对Linux主控服务器中的安装文件进行安装;也可以是Windows被控服务器按照第一配置信息,获取Linux主控服务器中待部署应用对应的安装文件,并在Windows被控服务器中进行安装。In the embodiment of the present application, the Linux master control server sends the first configuration information to the Windows controlled server, so that the Windows controlled server installs the application to be deployed according to the first configuration information. The Windows controlled server installs the application to be deployed according to the first configuration information. It can be that the Windows controlled server installs the installation files in the Linux master server according to the first configuration information; it can also be the Windows controlled server according to the first configuration information. , Obtain the installation file corresponding to the application to be deployed in the Linux master server, and install it on the Windows controlled server.
在图2所示的实施例中,Linux主控服务器基于远程登录协议和虚拟机程序,获取待部署应用对应的Windows被控服务器的目标网络地址,提高了数据获取效率。若目标网络地址与预设网络地址不一致,则表示Windows被控服务器的环境信息可能发生变化,再根据环境信息和目标网络地址获取第一配置信息,然后向Windows被控服务器发送第一配置信息,以使Windows被控服务器按照第一配置信息安装待部署应用,提高了应用部署的效率和成功率。In the embodiment shown in FIG. 2, the Linux master control server obtains the target network address of the Windows controlled server corresponding to the application to be deployed based on the remote login protocol and the virtual machine program, which improves the efficiency of data acquisition. If the target network address is inconsistent with the preset network address, it means that the environmental information of the Windows controlled server may have changed, and then obtain the first configuration information according to the environmental information and the target network address, and then send the first configuration information to the Windows controlled server. In this way, the Windows controlled server installs the application to be deployed according to the first configuration information, which improves the efficiency and success rate of application deployment.
在一种可能的示例中,若Windows被控服务器的数量为多个,则步骤S204包括:Linux主控服务器根据角色类型获取Windows被控服务器的安装顺序;Linux主控服务器根据安装顺序向Windows被控服务器发送第一配置信息,以使Windows被控服务器根据第一配置信息和安装顺序安装待部署应用。In a possible example, if the number of Windows controlled servers is multiple, step S204 includes: the Linux main control server obtains the installation order of the Windows controlled servers according to the role type; the Linux main control server sends Windows controlled servers according to the installation order. The control server sends the first configuration information, so that the Windows controlled server installs the application to be deployed according to the first configuration information and the installation sequence.
其中,安装顺序用于描述Linux主控服务器对应的多个Windows被控服务器中每一Windows被控服务器安装待部署应用的顺序。本申请对于获取安装顺序的方法不做限定,可按照角色类型对应的安装优先级进行设置,例如,主选服务器的安装顺序在备选服务器的安装顺序之前,避免出现响应失败的情况发生,便于提高服务效率。安装顺序也可按照角色类型对应的安装文件进行设置,可以理解,在Windows被控服务器按照第一配置信息,对Linux主控服务器中的安装文件进行安装时,该安装文件在Linux主控服务器中,增加安装顺序可避免部署失败的情况发生,便于提高应用部署的成功率。Among them, the installation sequence is used to describe the sequence in which each of the multiple Windows controlled servers corresponding to the Linux main control server installs the application to be deployed. This application does not limit the method of obtaining the installation sequence, and can be set according to the installation priority corresponding to the role type. For example, the installation sequence of the primary server is before the installation sequence of the alternative server to avoid response failures, which is convenient Improve service efficiency. The installation sequence can also be set according to the installation file corresponding to the role type. It can be understood that when the Windows controlled server installs the installation file in the Linux main control server according to the first configuration information, the installation file is in the Linux main control server , Increasing the order of installation can avoid deployment failures and improve the success rate of application deployment.
在上述示例中,若Linux主控服务器对应多个Windows被控服务器,则根据角色类型获取各个Windows被控服务器的安装顺序,再按照安装顺序向Windows被控服务器发送第一配置信息,以使Windows被控服务器根据第一配置信息和安装顺序安装待部署应用,可提高待部署应用的部署成功率。In the above example, if the Linux master server corresponds to multiple Windows controlled servers, the installation order of each Windows controlled server is obtained according to the role type, and then the first configuration information is sent to the Windows controlled server according to the installation order, so that Windows The controlled server installs the application to be deployed according to the first configuration information and the installation sequence, which can improve the deployment success rate of the application to be deployed.
在一种可能的示例,Linux主控服务器基于远程登录协议和虚拟机程序,获取Windows被控服务器的部署输出日志;Linux主控服务器根据部署输出日志确定待部署应用的失败类型;Linux主控服务器根据失败类型、目标网络地址和环境参数第二配置信息;Linux主控服务器向Windows被控服务器发送第二配置信息,以使Windows被控服务器根据第二配置信息重新安装待部署应用。In a possible example, the Linux master control server obtains the deployment output log of the Windows controlled server based on the remote login protocol and virtual machine program; the Linux master control server determines the failure type of the application to be deployed according to the deployment output log; the Linux master control server According to the second configuration information of the failure type, the target network address, and the environmental parameter; the Linux master control server sends the second configuration information to the Windows controlled server, so that the Windows controlled server reinstalls the application to be deployed according to the second configuration information.
其中,部署输出日志为Windows被控服务器安装待部署应用的日志,用于描述部署过程。该部署输出日志包括待部署应用中各个节点的安装记录。部署输出日志与环境信息的获取方式一致,可以是Linux主控服务器直接基于远程登录协议和虚拟机程序获取的;也可以是Linux主控服务器按照远程登录协议和虚拟机程序向Windows被控服务器发送的数据获取请求,由Windows被控服务器针对数据获取请求发送的部署输出日志得到。此外,还可以是Windows被控服务器在部署失败之后,向Linux主控服务器发送的等,在此不做限定。Among them, the deployment output log is the log of the Windows controlled server installing the application to be deployed, which is used to describe the deployment process. The deployment output log includes installation records of each node in the application to be deployed. The deployment output log is the same as the environment information acquisition method. It can be obtained by the Linux master server directly based on the remote login protocol and virtual machine program; it can also be sent by the Linux master server to the Windows controlled server in accordance with the remote login protocol and virtual machine program. The data acquisition request is obtained from the deployment output log sent by the Windows controlled server for the data acquisition request. In addition, it can also be sent by the Windows controlled server to the Linux master server after the deployment fails, which is not limited here.
可以理解,依据部署输出日志可确定待部署应用是否部署成功。若部署失败,则进一步分析失败类型,并根据失败类型、目标网络地址和环境信息获取第二配置信息。然后向Windows被控服务器发送第二配置信息,以使Windows被控服务器根据第二配置信息安装待部署应用,便于提高部署的成功率。It can be understood that it can be determined whether the deployment of the application to be deployed is successful according to the deployment output log. If the deployment fails, the failure type is further analyzed, and the second configuration information is obtained according to the failure type, target network address, and environmental information. Then, the second configuration information is sent to the Windows controlled server, so that the Windows controlled server installs the application to be deployed according to the second configuration information, so as to improve the success rate of deployment.
本申请对于确定是否部署成功的方法不做限定,在一种可能的示例中,Linux主控服务器查找部署输出日志中是否包括预设关键字;若确定部署输出日志中包括预设关键字,则Linux主控服务器获取部署输出日志中预设关键字对应的段落;Linux主控服务器获取段落对应的失败概率值;若失败概率值大于预设阈值,则确定待部署应用部署失败。This application does not limit the method for determining whether the deployment is successful. In a possible example, the Linux master control server searches whether the deployment output log includes the preset keyword; if it is determined that the deployment output log includes the preset keyword, then The Linux main control server obtains the paragraph corresponding to the preset keyword in the deployment output log; the Linux main control server obtains the failure probability value corresponding to the paragraph; if the failure probability value is greater than the preset threshold, it is determined that the deployment of the application to be deployed fails.
其中,预设关键字可以是致命(Fatal)、错误(Error)和警告(Warn)等失败相关字眼。Among them, the preset keywords can be fatal (Fatal), error (Error) and warning (Warn) and other failure-related words.
可以理解,不同段落的预设关键字的失败概率不同,因此,在该示例中,以预设关键字对应的段落确定失败概率值,在失败概率值大于预设阈值时,确定待部署应用部署失败,从而进一步提高确定部署失败的准确性。It can be understood that the failure probability of the preset keywords in different paragraphs is different. Therefore, in this example, the paragraph corresponding to the preset keyword is used to determine the failure probability value. When the failure probability value is greater than the preset threshold, the application deployment to be deployed is determined Failure to further improve the accuracy of determining deployment failure.
进一步的,若部署输出日志包括多个预设关键字,则根据各个预设关键字对应的失败概率确定目标权值;根据各个预设关键字对应的失败概率值和目标权值获取目标失败概率值;若失败概率值大于预设阈值,则确定待部署应用部署失败。Further, if the deployment output log includes multiple preset keywords, the target weight is determined according to the failure probability corresponding to each preset keyword; the target failure probability is obtained according to the failure probability value and the target weight corresponding to each preset keyword Value; if the failure probability value is greater than the preset threshold, it is determined that the deployment of the application to be deployed fails.
可以理解,不同预设关键字的失败概率不同,例如,致命的失败概率大于错误的失败概率,而错误的失败概率大于警告的失败概率。因此,在该示例中,以预设关键字的失败概率确定目标权值,便于提高获取目标失败概率值的准确性,从而进一步提高确定部署失败的准确性。It can be understood that different preset keywords have different failure probabilities. For example, the fatal failure probability is greater than the false failure probability, and the false failure probability is greater than the warning failure probability. Therefore, in this example, the failure probability of the preset keyword is used to determine the target weight, which is convenient for improving the accuracy of obtaining the target failure probability value, thereby further improving the accuracy of determining the deployment failure.
在确定部署失败时,根据部署输出日志确定失败类型。本申请对于确定失败类型的方法不做限定,Linux主控服务器对段落进行分析,得到失败类型。可以理解,预设关键字对应的段落描述了出现失误的部署步骤,对该段落进行分析可得到部署失败类型。When determining the deployment failure, determine the type of failure based on the deployment output log. This application does not limit the method for determining the failure type. The Linux master control server analyzes the paragraph to obtain the failure type. It can be understood that the paragraph corresponding to the preset keyword describes the deployment step in which the error occurred, and the deployment failure type can be obtained by analyzing the paragraph.
进一步的,对段落进行分析,得到至少一个检测项;对检测项进行检测,得到检测结果;若检测结果为异常,则确定该检测项对应的类型为失败类型。Further, the paragraph is analyzed to obtain at least one detection item; the detection item is detected to obtain the detection result; if the detection result is abnormal, it is determined that the type corresponding to the detection item is a failure type.
其中,检测项为段落对应的部署步骤,检测结果包括异常和正常。可以理解,对段落对应的检测项进行检测,进一步提高确定失败类型的准确性。Among them, the detection items are the deployment steps corresponding to the paragraphs, and the detection results include abnormal and normal. It can be understood that the detection of the detection items corresponding to the paragraphs further improves the accuracy of determining the failure type.
在一种可能的示例,Linux主控服务器接收Windows被控服务器发送的页面定制请求;Linux主控服务器根据页面定制请求、目标网络地址和环境信息获取第三配置信息;Linux主控服务器向Windows被控服务器发送第三配置信息,以使Windows被控服务器根据第三配置信息在待部署应用中部署页面定制请求对应的页面。In a possible example, the Linux main control server receives the page customization request sent by the Windows controlled server; the Linux main control server obtains the third configuration information according to the page customization request, the target network address, and environmental information; the Linux main control server sends the Windows controlled server The control server sends the third configuration information, so that the Windows controlled server deploys the page corresponding to the page customization request in the application to be deployed according to the third configuration information.
其中,页面定制请求是在待部署应用的基础上,增加的个性化定制业务。页面定制请求对应的页面可以是导入导出页面、权限配置页面、联系人页面、影像平台数据导入、电话中心系统页面、权限文件页面等,在此不做限定。Among them, the page customization request is a personalized customization service added on the basis of the application to be deployed. The page corresponding to the page customization request can be the import and export page, the permission configuration page, the contact page, the image platform data import, the call center system page, the permission file page, etc., which are not limited here.
可以理解,Linux主控服务器基于Windows被控服务器的页面定制请求、目标网络地址和环境信息获取第三配置信息,并向Windows被控服务器发送该第三配置信息,以使Windows被控服务器在待部署应用中部署页面定制请求的个性化定制页面,提高了部署操作的便利性,便于提高Windows被控服务器的个性化。It can be understood that the Linux master control server obtains the third configuration information based on the page customization request of the Windows controlled server, the target network address, and environmental information, and sends the third configuration information to the Windows controlled server, so that the Windows controlled server is waiting Deploying the personalized customization page of the deployment page customization request in the deployment application improves the convenience of the deployment operation and facilitates the personalization of the Windows controlled server.
与图2所示的实施例一致,请参照图3,图3是本申请实施例提供的另一种应用部署方法的流程示意图,该方法应用于Windows被控服务器,具体的,如图3所示,一种应用部署方法,包括S301-S302。Consistent with the embodiment shown in Figure 2, please refer to Figure 3. Figure 3 is a schematic flow diagram of another application deployment method provided by an embodiment of the present application. This method is applied to a Windows controlled server. Specifically, as shown in Figure 3 As shown, an application deployment method includes S301-S302.
S301:Windows被控服务器接收Linux主控服务器发送的第一配置信息。S301: The Windows controlled server receives the first configuration information sent by the Linux main control server.
其中,第一配置信息由Linux主控服务器根据Windows被控服务器的环境信息和目标网络地址获取。Among them, the first configuration information is obtained by the Linux master control server according to the environment information and the target network address of the Windows controlled server.
S302:Windows被控服务器根据第一配置信息安装待部署应用。S302: The Windows controlled server installs the application to be deployed according to the first configuration information.
在如图3所示的部署方法中,Windows被控服务器接收Linux主控服务器根据Windows被控服务器的环境信息获取的第一配置信息,并根据第一配置信息安装待部署应用,提高了应用部署的成功率。In the deployment method shown in Figure 3, the Windows controlled server receives the first configuration information obtained by the Linux main control server according to the environment information of the Windows controlled server, and installs the application to be deployed according to the first configuration information, which improves application deployment The success rate.
在一种可选的示例中,Windows被控服务器根据部署输出日志确定待部署应用的失败类型;Windows被控服务器向Linux主控服务器发送失败类型。In an optional example, the Windows controlled server determines the failure type of the application to be deployed according to the deployment output log; the Windows controlled server sends the failure type to the Linux main control server.
其中,失败类型的确定方法可参考Linux主控服务器的描述,在此不再赘述。可以理解,在该示例中,由Windows被控服务器获取部署失败类型,再发送给Linux主控服务器,可提高部署失败觉察的效率,便于提高服务质量。Among them, the method for determining the failure type can refer to the description of the Linux master server, which will not be repeated here. It can be understood that, in this example, the Windows controlled server obtains the deployment failure type, and then sends it to the Linux master control server, which can improve the efficiency of deployment failure detection and facilitate the improvement of service quality.
在一种可选的示例中,Windows被控服务器向Linux主控服务器发送页面定制请求;Windows被控服务器接收Linux主控服务器发送的第三配置信息,其中,第三配置信息由Linux主控服务器根据Windows被控服务器的环境信息、目标网络地址和页面定制请求获取;Windows被控服务器根据第三配置信息在待部署应用中部署页面定制请求对应的页面。In an optional example, the Windows controlled server sends a page customization request to the Linux main control server; the Windows controlled server receives the third configuration information sent by the Linux main control server, where the third configuration information is provided by the Linux main control server Obtain according to the environment information, target network address and page customization request of the Windows controlled server; the Windows controlled server deploys the page corresponding to the page customization request in the application to be deployed according to the third configuration information.
可以理解,Linux主控服务器基于Windows被控服务器的页面定制请求、目标网络地址和环境信息获取第三配置信息,并向Windows被控服务器发送该第三配置信息,以使Windows被控服务器在待部署应用中部署页面定制请求的个性化定制页面,提高了部署操作的便利性,便于提高Windows被控服务器的个性化。It can be understood that the Linux master control server obtains the third configuration information based on the page customization request of the Windows controlled server, the target network address, and environmental information, and sends the third configuration information to the Windows controlled server, so that the Windows controlled server is waiting Deploying the personalized customization page of the deployment page customization request in the deployment application improves the convenience of the deployment operation and facilitates the personalization of the Windows controlled server.
上述详细阐述了本申请实施例的方法,下面提供了本申请实施例的装置。The foregoing describes the method of the embodiment of the present application in detail, and the device of the embodiment of the present application is provided below.
与图2所示的实施例一致,请参照图4,图4是本申请提出的一种应用部署装置的结构示意图,该装置应用于Linux主控服务器。如图4所示,上述应用部署装置400包括:处理单元401,用于确定待部署应用对应的Windows被控服务器;存储单元403,用于存储Windows被控服务器的环境信息,环境信息包括预设网络地址;通信单元402,用于基于远程登录协议和虚拟机程序,获取Windows被控服务器的目标网络地址;处理单元401,还用于若目标网络地址和预设网络地址不一致,则根据目标网络地址和环境信息获取第一配置信息;通信单元402,还用于向Windows被控服务器发送第一配置信息,以使Windows被控服务器根据第一配置信息安装待部署应用。Consistent with the embodiment shown in FIG. 2, please refer to FIG. 4. FIG. 4 is a schematic structural diagram of an application deployment device proposed in the present application, which is applied to a Linux main control server. As shown in FIG. 4, the above-mentioned application deployment apparatus 400 includes: a processing unit 401, configured to determine the Windows controlled server corresponding to the application to be deployed; and a storage unit 403, configured to store environment information of the Windows controlled server, the environment information including presets Network address; the communication unit 402 is used to obtain the target network address of the Windows controlled server based on the remote login protocol and the virtual machine program; the processing unit 401 is also used to if the target network address is inconsistent with the preset network address, then according to the target network The address and environment information obtain the first configuration information; the communication unit 402 is also used to send the first configuration information to the Windows controlled server, so that the Windows controlled server installs the application to be deployed according to the first configuration information.
在一个可能的示例中,若环境信息包括预设安装参数和预设系统类型,则处理单元401具体用于根据目标网络地址,修改预设安装参数,得到目标安装参数;获取预设系统类型对应的配置脚本;根据配置脚本获取目标安装参数和待部署应用的安装包对应的第一配置信息。In a possible example, if the environmental information includes the preset installation parameters and the preset system type, the processing unit 401 is specifically configured to modify the preset installation parameters according to the target network address to obtain the target installation parameters; obtain the corresponding preset system type The configuration script; obtain the target installation parameters and the first configuration information corresponding to the installation package of the application to be deployed according to the configuration script.
在一个可能的示例中,若环境信息还包括待验证信息,则通信单元402还用于基于远程登录协议和虚拟机程序,以及待验证信息与Windows被控服务器建立远程连接;处理单元401具体用于获取Windows被控服务器的角色类型;根据角色类型获取待部署应用的安装包对应的目标安装文件;根据配置脚本获取目标安装参数和目标安装文件对应的第一配置信息。In a possible example, if the environment information also includes information to be verified, the communication unit 402 is also used to establish a remote connection with the Windows controlled server based on the remote login protocol and virtual machine program, and the information to be verified; the processing unit 401 specifically uses To obtain the role type of the Windows controlled server; obtain the target installation file corresponding to the installation package of the application to be deployed according to the role type; obtain the target installation parameters and the first configuration information corresponding to the target installation file according to the configuration script.
在一个可能的示例中,处理单元401具体用于根据目标网络地址获取Windows被控服务器的位置信息;根据待验证信息获取Windows被控服务器的身份信息;根据位置信息和身份信息获取Windows被控服务器的角色类型。In a possible example, the processing unit 401 is specifically configured to obtain the location information of the Windows controlled server according to the target network address; obtain the identity information of the Windows controlled server according to the information to be verified; obtain the Windows controlled server according to the location information and identity information The type of role.
在一个可能的示例中,若Windows被控服务器的数量为多个,则处理单元401还用于根据角色类型获取Windows被控服务器的安装顺序;通信单元402具体用于根据安装顺序向Windows被控服务器发送第一配置信息,以使Windows被控服务器根据第一配置信息和安装顺序安装待部署应用。In a possible example, if the number of Windows controlled servers is multiple, the processing unit 401 is further configured to obtain the installation order of the Windows controlled servers according to the role type; the communication unit 402 is specifically configured to send the Windows controlled servers according to the installation order. The server sends the first configuration information, so that the Windows controlled server installs the application to be deployed according to the first configuration information and the installation sequence.
在一个可能的示例中,通信单元402还用于基于远程登录协议和虚拟机程序,获取Windows被控服务器的部署输出日志;处理单元401还用于根据部署输出日志确定待部署应用的失败类型;根据失败类型、目标网络地址和环境信息获取第二配置信息;通信单元402还用于向Windows被控服务器发送第二配置信息,以使Windows被控服务器根据第二配置信息重新安装待部署应用。In a possible example, the communication unit 402 is further configured to obtain the deployment output log of the Windows controlled server based on the remote login protocol and the virtual machine program; the processing unit 401 is further configured to determine the failure type of the application to be deployed according to the deployment output log; The second configuration information is acquired according to the failure type, the target network address, and the environmental information; the communication unit 402 is further configured to send the second configuration information to the Windows controlled server, so that the Windows controlled server reinstalls the application to be deployed according to the second configuration information.
在一个可能的示例中,通信单元402还用于接收Windows被控服务器发送的页面定制请求;处理单元401还用于根据页面定制请求、目标网络地址和环境信息获取第三配置信息;通信单元402还用于向Windows被控服务器发送第三配置信息,以使Windows被控服务器根据第三配置信息在待部署应用中部署页面定制请求对应的页面。In a possible example, the communication unit 402 is also configured to receive a page customization request sent by a Windows controlled server; the processing unit 401 is also configured to obtain third configuration information according to the page customization request, the target network address, and environmental information; the communication unit 402 It is also used to send third configuration information to the Windows controlled server, so that the Windows controlled server deploys the page corresponding to the page customization request in the application to be deployed according to the third configuration information.
与图3所示实施例一致,图4所示的装置还可应用于Windows被控服务器,其中:通信单元402,用于接收Linux主控服务器发送的第一配置信息,其中,第一配置信息由Linux主控服务器根据Windows被控服务器的环境信息和目标网络地址获取;处理单元401,用于根据第一配置信息安装待部署应用。Consistent with the embodiment shown in FIG. 3, the device shown in FIG. 4 can also be applied to a Windows controlled server, where: the communication unit 402 is configured to receive the first configuration information sent by the Linux master control server, where the first configuration information The Linux master control server obtains it according to the environment information and the target network address of the Windows controlled server; the processing unit 401 is configured to install the application to be deployed according to the first configuration information.
在一个可能的示例中,处理单元401还用于根据部署输出日志确定待部署应用的失败类型;通信单元402还用于向Linux主控服务器发送失败类型。In a possible example, the processing unit 401 is further configured to determine the failure type of the application to be deployed according to the deployment output log; the communication unit 402 is also configured to send the failure type to the Linux master control server.
在一种可能的示例中,处理单元401还用于向Linux主控服务器发送页面定制请求;接收Linux主控服务器发送的第三配置信息,其中,第三配置信息由Linux主控服务器根据Windows被控服务器的环境信息、目标网络地址和页面定制请求获取;处理单元401还用于根据第三配置信息在待部署应用中部署页面定制请求对应的页面。In a possible example, the processing unit 401 is further configured to send a page customization request to the Linux main control server; receive the third configuration information sent by the Linux main control server, where the third configuration information is configured by the Linux main control server according to Windows. The environment information, target network address, and page customization request of the control server are acquired; the processing unit 401 is further configured to deploy the page corresponding to the page customization request in the application to be deployed according to the third configuration information.
该应用部署装置400中各个单元执行详细过程可以参见前述方法实施例中的执行步骤,此处不在赘述。For the detailed execution process of each unit in the application deployment apparatus 400, reference may be made to the execution steps in the foregoing method embodiment, which will not be repeated here.
与图2的实施例一致,请参照图5,图5是本申请实施例提供的又一种应用部署装置的结构示意图,该应用部署装置为Linux主控服务器。如图5所示,该应用部署装置500包括处理器510、存储器520、通信接口530以及一个或至少一个程序540。图4所示的通信单元402所实现的相关功能可通过通信接口530来实现,图4所示的存储单元403所实现的相关功能可通过存储器520来实现,图4所示的处理单元401所实现的相关功能可通过处理器510来实现。Consistent with the embodiment in FIG. 2, please refer to FIG. 5. FIG. 5 is a schematic structural diagram of another application deployment device provided by an embodiment of the present application, and the application deployment device is a Linux master server. As shown in FIG. 5, the application deployment apparatus 500 includes a processor 510, a memory 520, a communication interface 530, and one or at least one program 540. The related functions realized by the communication unit 402 shown in FIG. 4 can be realized through the communication interface 530, the related functions realized by the storage unit 403 shown in FIG. 4 can be realized by the memory 520, and the processing unit 401 shown in FIG. The implemented related functions can be implemented by the processor 510.
上述一个或至少一个程序540被存储在上述存储器520中,并且被配置由上述处理器510执行,上述程序540包括用于执行以下步骤的指令:确定待部署应用对应的Windows被控服务器;基于远程登录协议和虚拟机程序,获取Windows被控服务器的目标网络地址;若目标网络地址和预设网络地址不一致,则根据目标网络地址和环境信息获取第一配置信息,其中,预设网络地址为Linux主控服务器预先存储的Windows被控服务器的环境信息中的一项;向Windows被控服务器发送第一配置信息,以使Windows被控服务器根据第一配置信息安装待部署应用。The above-mentioned one or at least one program 540 is stored in the above-mentioned memory 520 and is configured to be executed by the above-mentioned processor 510. The above-mentioned program 540 includes instructions for executing the following steps: determining the Windows controlled server corresponding to the application to be deployed; Log in to the protocol and virtual machine program to obtain the target network address of the Windows controlled server; if the target network address is inconsistent with the preset network address, the first configuration information is obtained according to the target network address and environmental information, where the preset network address is Linux One item of the environment information of the Windows controlled server pre-stored by the main control server; sending the first configuration information to the Windows controlled server, so that the Windows controlled server installs the application to be deployed according to the first configuration information.
在一个可能的示例中,若环境信息包括预设安装参数和预设系统类型,则在根据目标网络地址和环境信息获取第一配置信息方面,上述程序540具体用于执行以下步骤的指令:根据目标网络地址,修改预设安装参数,得到目标安装参数;获取预设系统类型对应的配置脚本;根据配置脚本获取目标安装参数和待部署应用的安装包对应的第一配置信息。In a possible example, if the environment information includes the preset installation parameters and the preset system type, in terms of obtaining the first configuration information according to the target network address and the environment information, the program 540 is specifically used to execute the instructions of the following steps: Target network address, modify the preset installation parameters to obtain the target installation parameters; obtain the configuration script corresponding to the preset system type; obtain the target installation parameters and the first configuration information corresponding to the installation package of the application to be deployed according to the configuration script.
在一个可能的示例中,若环境信息还包括待验证信息,在获取Windows被控服务器的目标网络地址之前,上述程序540还用于执行以下步骤的指令:基于远程登录协议和虚拟机程序,以及待验证信息与Windows被控服务器建立远程连接。In a possible example, if the environment information also includes information to be verified, before obtaining the target network address of the Windows controlled server, the program 540 is also used to execute the instructions of the following steps: based on the remote login protocol and the virtual machine program, and The information to be verified establishes a remote connection with the Windows controlled server.
在根据配置脚本获取目标安装参数和待部署应用的安装包对应的第一配置信息方面,上述程序540具体用于执行以下步骤的指令:获取Windows被控服务器的角色类型;根据角色类型获取待部署应用的安装包对应的目标安装文件;根据配置脚本获取目标安装参数和目标安装文件对应的第一配置信息。In terms of obtaining the target installation parameters and the first configuration information corresponding to the installation package of the application to be deployed according to the configuration script, the above-mentioned program 540 is specifically used to execute the instructions of the following steps: obtain the role type of the Windows controlled server; obtain the role type to be deployed according to the role type The target installation file corresponding to the application installation package; obtain the target installation parameters and the first configuration information corresponding to the target installation file according to the configuration script.
在一个可能的示例中,在获取Windows被控服务器的角色类型方面,上述程序540具体用于执行以下步骤的指令:根据目标网络地址获取Windows被控服务器的位置信息;根据待验证信息获取Windows被控服务器的身份信息;根据位置信息和身份信息获取Windows被控服务器的角色类型。In a possible example, in terms of obtaining the role type of the Windows controlled server, the above program 540 is specifically used to execute the instructions of the following steps: obtain the location information of the Windows controlled server according to the target network address; obtain the Windows controlled server according to the information to be verified The identity information of the control server; obtain the role type of the Windows controlled server according to the location information and identity information.
在一个可能的示例中,若Windows被控服务器的数量为多个,则在向Windows被控服务器发送第一配置信息方面,上述程序540具体用于执行以下步骤的指令:根据角色类型获取Windows被控服务器的安装顺序;根据安装顺序向Windows被控服务器发送第一配置信息,以使Windows被控服务器根据第一配置信息和安装顺序安装待部署应用。In a possible example, if the number of Windows controlled servers is multiple, in terms of sending the first configuration information to the Windows controlled server, the program 540 is specifically used to execute the instructions of the following steps: obtain Windows controlled servers according to the role type The installation sequence of the control server; according to the installation sequence, the first configuration information is sent to the Windows controlled server, so that the Windows controlled server installs the application to be deployed according to the first configuration information and the installation sequence.
在一个可能的示例中,上述程序540还用于执行以下步骤的指令:基于远程登录协议和虚拟机程序,获取Windows被控服务器的部署输出日志;根据部署输出日志确定待部署应用的失败类型;根据失败类型、目标网络地址和环境信息获取第二配置信息;向Windows被控服务器发送第二配置信息,以使Windows被控服务器根据第二配置信息重新安装待部署应用。In a possible example, the above-mentioned program 540 is also used to execute instructions of the following steps: obtain the deployment output log of the Windows controlled server based on the remote login protocol and the virtual machine program; determine the failure type of the application to be deployed according to the deployment output log; Obtain the second configuration information according to the failure type, the target network address, and the environmental information; send the second configuration information to the Windows controlled server, so that the Windows controlled server reinstalls the application to be deployed according to the second configuration information.
在一个可能的示例中,上述程序540还用于执行以下步骤的指令:接收Windows被控服务器发送的页面定制请求;根据页面定制请求、目标网络地址和环境信息获取第三配置信息;向Windows被控服务器发送第三配置信息,以使Windows被控服务器根据第三配置信息在待部署应用中部署页面定制请求对应的页面。In a possible example, the above-mentioned program 540 is also used to execute instructions of the following steps: receiving a page customization request sent by a Windows controlled server; obtaining third configuration information according to the page customization request, target network address, and environmental information; The control server sends the third configuration information, so that the Windows controlled server deploys the page corresponding to the page customization request in the application to be deployed according to the third configuration information.
与图3所示实施例一致,图5所示的装置还可应用于Windows被控服务器,上述程序540包括用于执行以下步骤的指令:Windows被控服务器接收Linux主控服务器发送的第一配置信息,其中,第一配置信息由Linux主控服务器根据Windows被控服务器的环境信息和目标网络地址获取。Windows被控服务器根据第一配置信息安装待部署应用。Consistent with the embodiment shown in FIG. 3, the device shown in FIG. 5 can also be applied to a Windows controlled server. The above-mentioned program 540 includes instructions for executing the following steps: The Windows controlled server receives the first configuration sent by the Linux main control server Information, where the first configuration information is obtained by the Linux master control server according to the environment information and the target network address of the Windows controlled server. The Windows controlled server installs the application to be deployed according to the first configuration information.
在一种可选的示例中,上述程序540还用于执行以下步骤的指令:根据部署输出日志确定待部署应用的失败类型;向Linux主控服务器发送失败类型。In an optional example, the above-mentioned program 540 is also used to execute instructions of the following steps: determine the failure type of the application to be deployed according to the deployment output log; and send the failure type to the Linux master control server.
在一种可选的示例中,上述程序540还用于执行以下步骤的指令:向Linux主控服务器发送页面定制请求;接收Linux主控服务器发送的第三配置信息,其中,第三配置信息由Linux主控服务器根据Windows被控服务器的环境信息、目标网络地址和页面定制请求获取;根据第三配置信息在待部署应用中部署页面定制请求对应的页面。In an optional example, the above-mentioned program 540 is also used to execute instructions of the following steps: sending a page customization request to the Linux master control server; receiving third configuration information sent by the Linux master control server, where the third configuration information is determined by The Linux master control server acquires the environment information, target network address, and page customization request of the Windows controlled server; deploys the page corresponding to the page customization request in the application to be deployed according to the third configuration information.
在如图4和图5所示的装置中,根据Windows被控服务器的环境信息和目标网络地址获取第一配置信息,再依据该第一配置信息安装待部署应用,提高了应用部署的效率和成功率。In the devices shown in Figures 4 and 5, the first configuration information is obtained according to the environment information and target network address of the Windows controlled server, and then the application to be deployed is installed according to the first configuration information, which improves the efficiency and efficiency of application deployment. Success rate.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于存储计算机程序,该计算机程序使得计算机执行以实现方法实施例中记载的任一方法的部分或全部步骤,计算机包括Linux主控服务器或Windows被控服务器。所述计算机可读存储介质可以是非易失性,也可以是易失性。The embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for storing a computer program, and the computer program causes a computer to execute part or all of the steps of any method recorded in the method embodiment, and the computer includes Linux master server or Windows controlled server. The computer-readable storage medium may be non-volatile or volatile.
本申请实施例还提供一种计算机程序产品,计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,计算机程序可操作来使计算机执行以实现方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件第一安装包,计算机包括Linux主控服务器或Windows被控服务器。The embodiments of the present application also provide a computer program product. The computer program product includes a non-transitory computer-readable storage medium storing a computer program. The computer program is operable to cause a computer to execute any method described in the method embodiments. Part or all of the steps. The computer program product may be a first software installation package, and the computer includes a Linux master server or a Windows controlled server.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如至少一个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of units is only a logical function division, and there may be other divisions in actual implementation, for example, at least one unit or component can be combined or integrated into Another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到至少一个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to at least one network unit. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模式的形式实现。In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be realized in the form of hardware or in the form of software program mode.
集成的单元如果以软件程序模式的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。根据这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software program model and sold or used as an independent product, it can be stored in a computer readable memory. According to this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, It includes several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、ROM、RAM、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable memory, and the memory can include: a flash disk , ROM, RAM, magnetic disk or CD, etc.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application. Should be covered within the scope of protection of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (20)

  1. 一种应用部署方法,其中,包括:An application deployment method, which includes:
    Linux主控服务器确定待部署应用对应的Windows被控服务器;The Linux master server determines the Windows controlled server corresponding to the application to be deployed;
    所述Linux主控服务器基于远程登录协议和虚拟机程序,获取所述Windows被控服务器的目标网络地址;The Linux master control server obtains the target network address of the Windows controlled server based on the remote login protocol and the virtual machine program;
    若所述目标网络地址和预设网络地址不一致,则所述Linux主控服务器根据所述目标网络地址和所述环境信息获取第一配置信息,其中,所述预设网络地址为所述Linux主控服务器预先存储的所述Windows被控服务器的环境信息中的一项;If the target network address and the preset network address are inconsistent, the Linux master control server obtains first configuration information according to the target network address and the environment information, wherein the preset network address is the Linux master One of the environmental information of the Windows controlled server pre-stored by the control server;
    所述Linux主控服务器向所述Windows被控服务器发送所述第一配置信息,以使所述Windows被控服务器根据所述第一配置信息安装所述待部署应用。The Linux master control server sends the first configuration information to the Windows controlled server, so that the Windows controlled server installs the application to be deployed according to the first configuration information.
  2. 根据权利要求1所述的方法,其中,若所述环境信息包括预设安装参数和预设系统类型,则所述Linux主控服务器根据所述目标网络地址和所述环境信息获取第一配置信息,包括:The method according to claim 1, wherein if the environment information includes preset installation parameters and preset system types, the Linux master control server obtains first configuration information according to the target network address and the environment information ,include:
    所述Linux主控服务器根据所述目标网络地址,修改所述预设安装参数,得到目标安装参数;The Linux master control server modifies the preset installation parameters according to the target network address to obtain the target installation parameters;
    所述Linux主控服务器获取所述预设系统类型对应的配置脚本;Acquiring, by the Linux master control server, a configuration script corresponding to the preset system type;
    所述Linux主控服务器根据所述配置脚本获取所述目标安装参数和所述待部署应用的安装包对应的第一配置信息。The Linux master control server obtains the target installation parameter and the first configuration information corresponding to the installation package of the application to be deployed according to the configuration script.
  3. 根据权利要求2所述的方法,其中,若所述环境信息还包括待验证信息,在所述获取所述Windows被控服务器的目标网络地址之前,所述方法还包括:The method according to claim 2, wherein, if the environment information further includes information to be verified, before the obtaining the target network address of the Windows controlled server, the method further comprises:
    所述Linux主控服务器基于所述远程登录协议和所述虚拟机程序,以及所述待验证信息与所述Windows被控服务器建立远程连接;The Linux master control server establishes a remote connection with the Windows controlled server based on the remote login protocol, the virtual machine program, and the information to be verified;
    所述Linux主控服务器根据所述配置脚本获取所述目标安装参数和所述待部署应用的安装包对应的第一配置信息,包括:The Linux master control server acquiring the target installation parameters and the first configuration information corresponding to the installation package of the application to be deployed according to the configuration script includes:
    所述Linux主控服务器获取所述Windows被控服务器的角色类型;Acquiring, by the Linux master control server, the role type of the Windows controlled server;
    所述Linux主控服务器根据所述角色类型获取所述待部署应用的安装包对应的目标安装文件;The Linux master control server obtains the target installation file corresponding to the installation package of the application to be deployed according to the role type;
    所述Linux主控服务器根据所述配置脚本获取所述目标安装参数和所述目标安装文件对应的第一配置信息。The Linux master control server obtains the target installation parameters and the first configuration information corresponding to the target installation file according to the configuration script.
  4. 根据权利要求3所述的方法,其中,所述Linux主控服务器获取所述Windows被控服务器的角色类型,包括:The method according to claim 3, wherein the Linux master control server acquiring the role type of the Windows controlled server comprises:
    所述Linux主控服务器根据所述目标网络地址获取所述Windows被控服务器的位置信息;The Linux master control server obtains the location information of the Windows controlled server according to the target network address;
    所述Linux主控服务器根据所述待验证信息获取所述Windows被控服务器的身份信息;The Linux master control server obtains the identity information of the Windows controlled server according to the information to be verified;
    所述Linux主控服务器根据所述位置信息和所述身份信息获取所述Windows被控服务器的角色类型。The Linux master control server obtains the role type of the Windows controlled server according to the location information and the identity information.
  5. 根据权利要求3所述的方法,其中,若所述Windows被控服务器的数量为多个,则所述Linux主控服务器向所述Windows被控服务器发送所述第一配置信息,包括:3. The method according to claim 3, wherein if the number of the Windows controlled server is multiple, the Linux master server sending the first configuration information to the Windows controlled server comprises:
    所述Linux主控服务器根据所述角色类型获取所述Windows被控服务器的安装顺序;The Linux master control server obtains the installation sequence of the Windows controlled server according to the role type;
    所述Linux主控服务器根据所述安装顺序向所述Windows被控服务器发送所述第一配置信息,以使所述Windows被控服务器根据所述第一配置信息和所述安装顺序安装所述待部署应用。The Linux master control server sends the first configuration information to the Windows controlled server according to the installation sequence, so that the Windows controlled server installs the standby server according to the first configuration information and the installation sequence. Deploy the application.
  6. 根据权利要求1-5中任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1-5, wherein the method further comprises:
    所述Linux主控服务器基于所述远程登录协议和所述虚拟机程序,获取所述Windows被控服务器的部署输出日志;The Linux master control server obtains the deployment output log of the Windows controlled server based on the remote login protocol and the virtual machine program;
    所述Linux主控服务器根据所述部署输出日志确定所述待部署应用的失败类型;The Linux master control server determines the failure type of the application to be deployed according to the deployment output log;
    所述Linux主控服务器根据所述失败类型、所述目标网络地址和所述环境信息获取第二配置信息;The Linux master control server obtains second configuration information according to the failure type, the target network address, and the environment information;
    所述Linux主控服务器向所述Windows被控服务器发送所述第二配置信息,以使所述Windows被控服务器根据所述第二配置信息重新安装所述待部署应用。The Linux master control server sends the second configuration information to the Windows controlled server, so that the Windows controlled server reinstalls the application to be deployed according to the second configuration information.
  7. 根据权利要求6所述的方法,其中,所述根据所述部署输出日志确定所述待部署应用的失败类型,包括:The method according to claim 6, wherein the determining the failure type of the application to be deployed according to the deployment output log comprises:
    所述Linux主控服务器查找所述部署输出日志中是否包括预设关键字;The Linux master control server searches whether the deployment output log includes a preset keyword;
    若所述部署输出日志中包括所述预设关键字,则所述Linux主控服务器获取所述部署输出日志中所述预设关键字对应的段落的失败概率值;If the deployment output log includes the preset keyword, the Linux master control server obtains the failure probability value of the paragraph corresponding to the preset keyword in the deployment output log;
    若所述失败概率值大于预设阈值,则所述Linux主控服务器对所述预设关键字对应的段落进行分析以得到至少一个检测项;If the failure probability value is greater than a preset threshold, the Linux master control server analyzes the paragraph corresponding to the preset keyword to obtain at least one detection item;
    所述Linux主控服务器对所述至少一个检测项进行检测以得到每个检测项的检测结果,将检测结果为异常的检测项所对应的类型确定为所述待部署应用的失败类型。The Linux master control server detects the at least one detection item to obtain the detection result of each detection item, and determines the type corresponding to the detection item whose detection result is abnormal as the failure type of the application to be deployed.
  8. 根据权利要求1-5中任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1-5, wherein the method further comprises:
    所述Linux主控服务器接收所述Windows被控服务器发送的页面定制请求;The Linux master control server receives the page customization request sent by the Windows controlled server;
    所述Linux主控服务器根据所述页面定制请求、所述目标网络地址和所述环境信息获取第三配置信息;The Linux master control server obtains third configuration information according to the page customization request, the target network address, and the environmental information;
    所述Linux主控服务器向所述Windows被控服务器发送所述第三配置信息,以使所述Windows被控服务器根据所述第三配置信息在所述待部署应用中部署所述页面定制请求对应的页面。The Linux master control server sends the third configuration information to the Windows controlled server, so that the Windows controlled server deploys the page customization request corresponding to the application to be deployed according to the third configuration information Page.
  9. 一种应用部署装置,其中,包括:An application deployment device, which includes:
    处理单元,用于确定待部署应用对应的Windows被控服务器;The processing unit is used to determine the Windows controlled server corresponding to the application to be deployed;
    存储单元,用于存储所述Windows被控服务器的环境信息,所述环境信息包括预设网络地址;A storage unit, configured to store environment information of the Windows controlled server, where the environment information includes a preset network address;
    通信单元,用于基于远程登录协议和虚拟机程序,获取所述Windows被控服务器的目标网络地址;The communication unit is configured to obtain the target network address of the Windows controlled server based on the remote login protocol and the virtual machine program;
    所述处理单元,还用于若所述目标网络地址和预设网络地址不一致,则根据所述目标网络地址和所述环境信息获取第一配置信息;The processing unit is further configured to obtain first configuration information according to the target network address and the environmental information if the target network address is inconsistent with the preset network address;
    所述通信单元,还用于向所述Windows被控服务器发送所述第一配置信息,以使所述Windows被控服务器根据所述第一配置信息安装所述待部署应用。The communication unit is further configured to send the first configuration information to the Windows controlled server, so that the Windows controlled server installs the application to be deployed according to the first configuration information.
  10. 一种应用部署装置,其中,包括处理器、存储器、通信接口以及一个或至少一个程序,其中,所述一个或至少一个程序被存储在所述存储器中,并且被配置由所述处理器执行,其中:An application deployment device, which includes a processor, a memory, a communication interface, and one or at least one program, wherein the one or at least one program is stored in the memory and is configured to be executed by the processor, among them:
    确定待部署应用对应的Windows被控服务器;Determine the Windows controlled server corresponding to the application to be deployed;
    基于远程登录协议和虚拟机程序,获取所述Windows被控服务器的目标网络地址;Obtaining the target network address of the Windows controlled server based on the remote login protocol and the virtual machine program;
    若所述目标网络地址和预设网络地址不一致,则根据所述目标网络地址和所述环境信息获取第一配置信息,其中,所述预设网络地址为所述Linux主控服务器预先存储的所述Windows被控服务器的环境信息中的一项;If the target network address and the preset network address are inconsistent, obtain first configuration information according to the target network address and the environmental information, where the preset network address is all pre-stored by the Linux master control server One item in the environmental information of the Windows controlled server;
    向所述Windows被控服务器发送所述第一配置信息,以使所述Windows被控服务器根据所述第一配置信息安装所述待部署应用。Send the first configuration information to the Windows controlled server, so that the Windows controlled server installs the application to be deployed according to the first configuration information.
  11. 根据权利要求10所述的应用部署装置,其中,若所述环境信息包括预设安装参数和预设系统类型,所述处理器用于:The application deployment device according to claim 10, wherein, if the environment information includes preset installation parameters and preset system types, the processor is configured to:
    根据所述目标网络地址,修改所述预设安装参数,得到目标安装参数;Modify the preset installation parameters according to the target network address to obtain the target installation parameters;
    获取所述预设系统类型对应的配置脚本;Obtaining a configuration script corresponding to the preset system type;
    根据所述配置脚本获取所述目标安装参数和所述待部署应用的安装包对应的第一配置信息。Acquire the target installation parameter and the first configuration information corresponding to the installation package of the application to be deployed according to the configuration script.
  12. 根据权利要求11所述的应用部署装置,其中,若所述环境信息还包括待验证信息,所述处理器用于:The application deployment apparatus according to claim 11, wherein, if the environment information further includes information to be verified, the processor is configured to:
    基于所述远程登录协议和所述虚拟机程序,以及所述待验证信息与所述Windows被控服务器建立远程连接;Establishing a remote connection with the Windows controlled server based on the remote login protocol, the virtual machine program, and the information to be verified;
    所述处理器用于:The processor is used for:
    获取所述Windows被控服务器的角色类型;Acquiring the role type of the Windows controlled server;
    根据所述角色类型获取所述待部署应用的安装包对应的目标安装文件;Obtaining the target installation file corresponding to the installation package of the application to be deployed according to the role type;
    根据所述配置脚本获取所述目标安装参数和所述目标安装文件对应的第一配置信息。Acquire the target installation parameter and the first configuration information corresponding to the target installation file according to the configuration script.
  13. 根据权利要求12所述的应用部署装置,其中,所述处理器用于:The application deployment apparatus according to claim 12, wherein the processor is configured to:
    根据所述目标网络地址获取所述Windows被控服务器的位置信息;Obtaining the location information of the Windows controlled server according to the target network address;
    根据所述待验证信息获取所述Windows被控服务器的身份信息;Acquiring the identity information of the Windows controlled server according to the information to be verified;
    根据所述位置信息和所述身份信息获取所述Windows被控服务器的角色类型。Obtain the role type of the Windows controlled server according to the location information and the identity information.
  14. 根据权利要求12所述的应用部署装置,其中,若所述Windows被控服务器的数量为多个,所述处理器用于:The application deployment apparatus according to claim 12, wherein, if the number of the Windows controlled server is multiple, the processor is configured to:
    根据所述角色类型获取所述Windows被控服务器的安装顺序;Acquiring the installation sequence of the Windows controlled server according to the role type;
    根据所述安装顺序向所述Windows被控服务器发送所述第一配置信息,以使所述Windows被控服务器根据所述第一配置信息和所述安装顺序安装所述待部署应用。Send the first configuration information to the Windows controlled server according to the installation sequence, so that the Windows controlled server installs the application to be deployed according to the first configuration information and the installation sequence.
  15. 根据权利要求10-14所述的应用部署装置,其中,所述处理器用于:The application deployment device according to claims 10-14, wherein the processor is configured to:
    基于所述远程登录协议和所述虚拟机程序,获取所述Windows被控服务器的部署输出日志;Obtaining the deployment output log of the Windows controlled server based on the remote login protocol and the virtual machine program;
    根据所述部署输出日志确定所述待部署应用的失败类型;Determine the failure type of the application to be deployed according to the deployment output log;
    根据所述失败类型、所述目标网络地址和所述环境信息获取第二配置信息;Acquiring second configuration information according to the failure type, the target network address, and the environmental information;
    向所述Windows被控服务器发送所述第二配置信息,以使所述Windows被控服务器根据所述第二配置信息重新安装所述待部署应用。Send the second configuration information to the Windows controlled server, so that the Windows controlled server reinstalls the application to be deployed according to the second configuration information.
  16. 根据权利要求15所述的应用部署装置,其中,所述处理器用于:The application deployment apparatus according to claim 15, wherein the processor is configured to:
    查找所述部署输出日志中是否包括预设关键字;Finding whether the deployment output log includes preset keywords;
    若所述部署输出日志中包括所述预设关键字,则获取所述部署输出日志中所述预设关键字对应的段落的失败概率值;If the deployment output log includes the preset keyword, obtaining the failure probability value of the paragraph corresponding to the preset keyword in the deployment output log;
    若所述失败概率值大于预设阈值,则对所述预设关键字对应的段落进行分析以得到至少一个检测项;If the failure probability value is greater than a preset threshold, analyzing the paragraph corresponding to the preset keyword to obtain at least one detection item;
    对所述至少一个检测项进行检测以得到每个检测项的检测结果,将检测结果为异常的检测项所对应的类型确定为所述待部署应用的失败类型。The at least one detection item is detected to obtain the detection result of each detection item, and the type corresponding to the detection item whose detection result is abnormal is determined as the failure type of the application to be deployed.
  17. 根据权利要求10-14所述的应用部署装置,其中,所述处理器用于:The application deployment device according to claims 10-14, wherein the processor is configured to:
    接收所述Windows被控服务器发送的页面定制请求;Receiving a page customization request sent by the Windows controlled server;
    根据所述页面定制请求、所述目标网络地址和所述环境信息获取第三配置信息;Acquiring third configuration information according to the page customization request, the target network address, and the environmental information;
    向所述Windows被控服务器发送所述第三配置信息,以使所述Windows被控服务器根据所述第三配置信息在所述待部署应用中部署所述页面定制请求对应的页面。Sending the third configuration information to the Windows controlled server, so that the Windows controlled server deploys the page corresponding to the page customization request in the application to be deployed according to the third configuration information.
  18. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储计算机程序,所述计算机程序使得计算机执行以下步骤:A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program causes a computer to perform the following steps:
    确定待部署应用对应的Windows被控服务器;Determine the Windows controlled server corresponding to the application to be deployed;
    基于远程登录协议和虚拟机程序,获取所述Windows被控服务器的目标网络地址;Obtaining the target network address of the Windows controlled server based on the remote login protocol and the virtual machine program;
    若所述目标网络地址和预设网络地址不一致,则根据所述目标网络地址和所述环境信息获取第一配置信息,其中,所述预设网络地址为所述Linux主控服务器预先存储的所述Windows被控服务器的环境信息中的一项;If the target network address and the preset network address are inconsistent, obtain first configuration information according to the target network address and the environmental information, where the preset network address is all pre-stored by the Linux master control server One item in the environmental information of the Windows controlled server;
    向所述Windows被控服务器发送所述第一配置信息,以使所述Windows被控服务器根据所述第一配置信息安装所述待部署应用。Send the first configuration information to the Windows controlled server, so that the Windows controlled server installs the application to be deployed according to the first configuration information.
  19. 根据权利要18所述的计算机可读存储介质,其中,若所述环境信息包括预设安装参数和预设系统类型,所述计算机程序使得计算机还执行以下步骤:18. The computer-readable storage medium according to claim 18, wherein if the environmental information includes preset installation parameters and preset system types, the computer program causes the computer to further perform the following steps:
    根据所述目标网络地址,修改所述预设安装参数,得到目标安装参数;Modify the preset installation parameters according to the target network address to obtain the target installation parameters;
    获取所述预设系统类型对应的配置脚本;Obtaining a configuration script corresponding to the preset system type;
    根据所述配置脚本获取所述目标安装参数和所述待部署应用的安装包对应的第一配置信息。Acquire the target installation parameter and the first configuration information corresponding to the installation package of the application to be deployed according to the configuration script.
  20. 根据权利要19所述的计算机可读存储介质,其中,若所述环境信息还包括待验证信息,所述计算机程序使得计算机还执行以下步骤:The computer-readable storage medium according to claim 19, wherein, if the environmental information further includes information to be verified, the computer program causes the computer to further perform the following steps:
    基于所述远程登录协议和所述虚拟机程序,以及所述待验证信息与所述Windows被控服务器建立远程连接;Establishing a remote connection with the Windows controlled server based on the remote login protocol, the virtual machine program, and the information to be verified;
    根据所述配置脚本获取所述目标安装参数和所述待部署应用的安装包对应的第一配置信息,包括:Obtaining the target installation parameters and the first configuration information corresponding to the installation package of the application to be deployed according to the configuration script includes:
    获取所述Windows被控服务器的角色类型;Acquiring the role type of the Windows controlled server;
    根据所述角色类型获取所述待部署应用的安装包对应的目标安装文件;Obtaining the target installation file corresponding to the installation package of the application to be deployed according to the role type;
    根据所述配置脚本获取所述目标安装参数和所述目标安装文件对应的第一配置信息。Acquire the target installation parameter and the first configuration information corresponding to the target installation file according to the configuration script.
PCT/CN2020/118627 2020-07-27 2020-09-29 Application deployment method and device, and medium WO2021139261A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010734265.XA CN111857758B (en) 2020-07-27 2020-07-27 Application deployment method, device and medium
CN202010734265.X 2020-07-27

Publications (1)

Publication Number Publication Date
WO2021139261A1 true WO2021139261A1 (en) 2021-07-15

Family

ID=72947233

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/118627 WO2021139261A1 (en) 2020-07-27 2020-09-29 Application deployment method and device, and medium

Country Status (2)

Country Link
CN (1) CN111857758B (en)
WO (1) WO2021139261A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685568A (en) * 2013-12-31 2014-03-26 曙光云计算技术有限公司 Platform service application deployment method and system of PAAS (Platform As A Service) platform under cloud computing environment
CN105119757A (en) * 2015-09-14 2015-12-02 沈文策 Method and system for operation and maintenance automation of enterprise servers
US20170147323A1 (en) * 2015-11-25 2017-05-25 Le Holding (Beijing) Co., Ltd. Method and electronic device for upgrading software development kit of an application
CN109413222A (en) * 2018-10-24 2019-03-01 广东微云科技股份有限公司 The orderly automatic setting method of the batch of cloud terminal and its system
CN109597627A (en) * 2017-09-30 2019-04-09 北京国双科技有限公司 A kind of component mounting method, device, storage medium and processor
CN110677308A (en) * 2019-11-05 2020-01-10 四川长虹电器股份有限公司 Code automatic deployment method
CN110750273A (en) * 2019-10-14 2020-02-04 交控科技股份有限公司 Automatic deployment method and system for cloud platform

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8612516B2 (en) * 2011-11-28 2013-12-17 Wyse Technology Inc. Deployment of a driver or an application on a client device having a write-filter
CN104065758A (en) * 2013-03-18 2014-09-24 杭州华三通信技术有限公司 Active device automatic deployment method, device and system
CN106254419A (en) * 2016-07-15 2016-12-21 北京首都在线科技股份有限公司 System and method virtual machine operated by control station server
CN106790467B (en) * 2016-12-10 2019-10-25 武汉白虹软件科技有限公司 A kind of cloud host is found automatically and the method for automatic deployment
CN107220092B (en) * 2017-06-09 2020-08-25 苏州浪潮智能科技有限公司 Method for deploying software, control server, readable medium and storage controller
CN109120433B (en) * 2018-07-23 2021-11-02 北京百度网讯科技有限公司 Method and apparatus for containerized deployment of hosts
CN110941440A (en) * 2019-10-31 2020-03-31 北京浪潮数据技术有限公司 Batch updating method, device and equipment for virtual machines and readable storage medium
CN111049824B (en) * 2019-12-11 2022-02-11 上海同渠工程咨询有限公司 Resource environment big data management method, storage medium and control device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685568A (en) * 2013-12-31 2014-03-26 曙光云计算技术有限公司 Platform service application deployment method and system of PAAS (Platform As A Service) platform under cloud computing environment
CN105119757A (en) * 2015-09-14 2015-12-02 沈文策 Method and system for operation and maintenance automation of enterprise servers
US20170147323A1 (en) * 2015-11-25 2017-05-25 Le Holding (Beijing) Co., Ltd. Method and electronic device for upgrading software development kit of an application
CN109597627A (en) * 2017-09-30 2019-04-09 北京国双科技有限公司 A kind of component mounting method, device, storage medium and processor
CN109413222A (en) * 2018-10-24 2019-03-01 广东微云科技股份有限公司 The orderly automatic setting method of the batch of cloud terminal and its system
CN110750273A (en) * 2019-10-14 2020-02-04 交控科技股份有限公司 Automatic deployment method and system for cloud platform
CN110677308A (en) * 2019-11-05 2020-01-10 四川长虹电器股份有限公司 Code automatic deployment method

Also Published As

Publication number Publication date
CN111857758B (en) 2024-03-22
CN111857758A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
US11522701B2 (en) Generating and managing a composite identity token for multi-service use
US10871953B2 (en) Application update method and apparatus
US8667487B1 (en) Web browser extensions
EP3425501B1 (en) Mirror image file conversion method and apparatus
CN107870968B (en) Performing real-time updates to a file system volume
US20060085086A1 (en) Portable computing environment solution
US9727352B2 (en) Utilizing history of changes associated with software packages to manage computing systems
CN110798466B (en) Verification method and system for software license in virtual machine scene
WO2021114672A1 (en) Method, apparatus and device for generating bare metal server linux system mirror
WO2021013033A1 (en) File operation method, apparatus, device, and system, and computer readable storage medium
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
US20130055340A1 (en) Information processing apparatus, information processing method, and computer program product
US10404568B2 (en) Agent manager for distributed transaction monitoring system
US8843915B2 (en) Signature-based update management
CN113347049B (en) Server cluster deployment method and device, computing equipment and storage medium
US11165761B2 (en) Methods, devices, and computer program products for service security protection
WO2020093976A1 (en) Resource change method and device, apparatus, and storage medium
CN110928554A (en) Deployment method, device, equipment and storage medium
JP2023520847A (en) Image file generation method, device and computer program
CN110597662B (en) Backup data automatic verification method and device, user equipment and storage medium
CN111966422A (en) Localized plug-in service method and device, electronic equipment and storage medium
CN113395340A (en) Information updating method, device, equipment, system and readable storage medium
WO2014075504A1 (en) Security control method and device for running application
US20050138158A1 (en) Software download method and system
WO2021139261A1 (en) Application deployment method and device, and medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20912469

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20912469

Country of ref document: EP

Kind code of ref document: A1