WO2021139261A1 - Procédé et dispositif de déploiement d'application et support - Google Patents

Procédé et dispositif de déploiement d'application et support 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
English (en)
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/fr

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.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

L'invention concerne un procédé et un dispositif de déploiement d'application, ainsi qu'un support. Le procédé comprend les étapes consistant à : déterminer un serveur commandé par Windows correspondant à une application à déployer (S201); acquérir une adresse réseau cible du serveur commandé par Windows sur la base d'un protocole de connexion à distance et d'un programme de machine virtuelle (S202); si l'adresse réseau cible n'est pas conforme à une adresse réseau prédéfinie, acquérir des premières informations de configuration au moyen d'un serveur de commande principal Linux selon l'adresse réseau cible et des informations d'environnement (S203); et envoyer les premières informations de configuration au serveur commandé par Windows (S204), de telle sorte que le serveur commandé par Windows installe, selon les premières informations de configuration, l'application à déployer. Le procédé peut améliorer l'efficacité et le taux de réussite d'un serveur de commande principal Linux déployant une application pour un serveur commandé par Windows.
PCT/CN2020/118627 2020-07-27 2020-09-29 Procédé et dispositif de déploiement d'application et support WO2021139261A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010734265.X 2020-07-27
CN202010734265.XA CN111857758B (zh) 2020-07-27 2020-07-27 应用部署方法、装置及介质

Publications (1)

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

Family

ID=72947233

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/118627 WO2021139261A1 (fr) 2020-07-27 2020-09-29 Procédé et dispositif de déploiement d'application et support

Country Status (2)

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

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685568A (zh) * 2013-12-31 2014-03-26 曙光云计算技术有限公司 云计算环境下paas平台的平台服务应用部署方法和系统
CN105119757A (zh) * 2015-09-14 2015-12-02 沈文策 一种企业服务器运维自动化的方法与系统
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 (zh) * 2018-10-24 2019-03-01 广东微云科技股份有限公司 云终端的批量有序自动设置方法及其系统
CN109597627A (zh) * 2017-09-30 2019-04-09 北京国双科技有限公司 一种组件安装方法、装置、存储介质和处理器
CN110677308A (zh) * 2019-11-05 2020-01-10 四川长虹电器股份有限公司 一种代码自动化部署方法
CN110750273A (zh) * 2019-10-14 2020-02-04 交控科技股份有限公司 云平台自动部署方法及系统

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 (zh) * 2013-03-18 2014-09-24 杭州华三通信技术有限公司 一种主动式设备自动部署方法、设备及系统
CN106254419A (zh) * 2016-07-15 2016-12-21 北京首都在线科技股份有限公司 通过控制台服务器对虚拟机进行操作的系统及方法
CN106790467B (zh) * 2016-12-10 2019-10-25 武汉白虹软件科技有限公司 一种云主机自动发现和自动部署的方法
CN107220092B (zh) * 2017-06-09 2020-08-25 苏州浪潮智能科技有限公司 部署软件的方法、控制服务器、可读介质及存储控制器
CN109120433B (zh) * 2018-07-23 2021-11-02 北京百度网讯科技有限公司 用于容器化部署主机的方法和装置
CN110941440A (zh) * 2019-10-31 2020-03-31 北京浪潮数据技术有限公司 一种虚拟机批量更新方法、装置、设备及可读存储介质
CN111049824B (zh) * 2019-12-11 2022-02-11 上海同渠工程咨询有限公司 一种资源环境大数据管理方法、存储介质及控制装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685568A (zh) * 2013-12-31 2014-03-26 曙光云计算技术有限公司 云计算环境下paas平台的平台服务应用部署方法和系统
CN105119757A (zh) * 2015-09-14 2015-12-02 沈文策 一种企业服务器运维自动化的方法与系统
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 (zh) * 2017-09-30 2019-04-09 北京国双科技有限公司 一种组件安装方法、装置、存储介质和处理器
CN109413222A (zh) * 2018-10-24 2019-03-01 广东微云科技股份有限公司 云终端的批量有序自动设置方法及其系统
CN110750273A (zh) * 2019-10-14 2020-02-04 交控科技股份有限公司 云平台自动部署方法及系统
CN110677308A (zh) * 2019-11-05 2020-01-10 四川长虹电器股份有限公司 一种代码自动化部署方法

Also Published As

Publication number Publication date
CN111857758B (zh) 2024-03-22
CN111857758A (zh) 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
US8200962B1 (en) Web browser extensions
EP3425501B1 (fr) Procédé et appareil de conversion de fichier d'image miroir
CN107870968B (zh) 对文件系统卷执行实时更新
US20060085527A1 (en) Remote services for portable computing environment
US9727352B2 (en) Utilizing history of changes associated with software packages to manage computing systems
CN110798466B (zh) 一种虚拟机场景下软件license的验证方法及系统
WO2021114672A1 (fr) Procédé, appareil et dispositif de production de miroir de système linux de serveur dédié
WO2021013033A1 (fr) Procédé, appareil, dispositif et système d'opération de fichier, et support de stockage lisible par ordinateur
CN108509215B (zh) 一种系统软件的更换方法、装置、终端设备及存储介质
US20130055340A1 (en) Information processing apparatus, information processing method, and computer program product
US8843915B2 (en) Signature-based update management
CN113347049B (zh) 一种服务器集群部署方法、装置、计算设备及存储介质
JP7493053B2 (ja) イメージファイル生成方法、装置及びコンピュータプログラム
US11165761B2 (en) Methods, devices, and computer program products for service security protection
US20170033980A1 (en) Agent manager for distributed transaction monitoring system
CN110928554A (zh) 一种部署方法、装置、设备及存储介质
CN111143023A (zh) 一种资源变更的方法及装置、设备、存储介质
CN110597662B (zh) 备份数据自动验证方法、装置、用户设备及存储介质
CN111966422A (zh) 一种本地化插件服务方法、装置、电子设备及存储介质
CN113395340A (zh) 一种信息更新方法、装置、设备、系统和可读存储介质
WO2014075504A1 (fr) Procédé de contrôle de la sécurité et dispositif servant à exploiter une application
WO2021139261A1 (fr) Procédé et dispositif de déploiement d'application et support
CN107861761B (zh) 一种物理主机的启动方法及系统

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