CN110750273A - Automatic deployment method and system for cloud platform - Google Patents

Automatic deployment method and system for cloud platform Download PDF

Info

Publication number
CN110750273A
CN110750273A CN201910973748.2A CN201910973748A CN110750273A CN 110750273 A CN110750273 A CN 110750273A CN 201910973748 A CN201910973748 A CN 201910973748A CN 110750273 A CN110750273 A CN 110750273A
Authority
CN
China
Prior art keywords
controlled terminal
application software
terminal
deployment
windows
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910973748.2A
Other languages
Chinese (zh)
Inventor
刘波
苗东博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Traffic Control Technology TCT Co Ltd
Original Assignee
Traffic Control Technology TCT Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Traffic Control Technology TCT Co Ltd filed Critical Traffic Control Technology TCT Co Ltd
Priority to CN201910973748.2A priority Critical patent/CN110750273A/en
Publication of CN110750273A publication Critical patent/CN110750273A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a cloud platform automatic deployment method and a cloud platform automatic deployment system, which are applied to a cloud platform main control terminal, wherein the method comprises the following steps: calling an infrastructure tool to establish communication connection with a controlled terminal, wherein the controlled terminal comprises: windows terminals in Windows cluster and Linux terminals in Linux cluster; if the controlled terminal is a Linux terminal in a Linux cluster, sending an interrupt script command for deploying application software to the controlled terminal so that the controlled terminal completes deployment of the application software; and if the controlled terminal is a Windows terminal in a Windows cluster, sending a Powershell script command for deploying application software to the controlled terminal so that the controlled terminal completes the deployment of the application software. The embodiment of the invention can realize the automatic deployment of the application software of two operating systems of Linux and Windows, reduces the dependence of the existing cloud platform automatic deployment system on the operating system, and has high efficiency and high reliability.

Description

Automatic deployment method and system for cloud platform
Technical Field
The invention relates to the technical field of computers, in particular to an automatic deployment method and system of a cloud platform.
Background
The development of the cloud computing technology and the improvement of the brought huge benefits enable various industries to introduce the cloud computing technology into the industries, so that the service quality of the industries is improved while the software and hardware cost is reduced. In the service cycle of the whole cloud platform, the deployment link is an indispensable important part, and the quality of the deployment process directly affects the performance and efficiency of the cloud platform operation.
In large-scale cloud platform deployment, due to the difference of actual physical hardware equipment, the deployment process becomes complicated and complicated, and the operation risk of the whole cloud platform becomes more obvious. In the process of deploying the cloud platform by using a traditional mode, a large amount of manpower, material resources and financial resources are needed to be invested as a rear shield for ensuring that the subsequent cloud platform has higher operation performance. And complex communication networks need to be configured in a plurality of system software simultaneously, and Linux-based and Windows-based application software and configuration files thereof are deployed.
At present, in the prior art, an automation deployment framework such as an infrastructure is used to complete distributed software deployment and management based on a cloud platform. After the framework is introduced, automatic deployment is realized in a scene that approximately the same service is frequently deployed on most of the same servers, and the deployment efficiency of the cloud platform is improved.
However, the existing automation deployment system based on the infrastructure cannot meet the deployment requirements of multiple types of operating systems. Because the infrastructure framework is developed by using Python language based on the Linux system, most of the current automatic deployment systems only meet the deployment of application software under Linux. If the Windows-based application software needs to be deployed on each Windows host, the existing system cannot support the Windows-based application software; the network of a remote Windows host cluster is not supported to be configured remotely, in some industry directions, such as rail transit software, the network domain configuration is complex, the existing automatic deployment system cannot meet the network configuration of a plurality of network domains and a plurality of network cards, and if the network environments are configured manually, the time consumption is very large; the script command logic is complex and difficult to maintain, the script command of the existing automatic deployment system is compiled based on services and cannot be universal, and the script code needs to be rewritten after the software environment or the software name is changed.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a cloud platform automatic deployment method and system.
The embodiment of the invention provides an automatic deployment method of a cloud platform, which is applied to a main control terminal of the cloud platform and comprises the following steps:
calling an infrastructure tool to establish communication connection with a controlled terminal, wherein the controlled terminal comprises: windows terminals in Windows cluster and Linux terminals in Linux cluster;
if the controlled terminal is a Linux terminal in a Linux cluster, sending an interrupt script command for deploying application software to the controlled terminal so that the controlled terminal completes deployment of the application software;
and if the controlled terminal is a Windows terminal in a Windows cluster, sending a Powershell script command for deploying application software to the controlled terminal so that the controlled terminal completes the deployment of the application software.
Optionally, if the controlled terminal is a Windows terminal in a Windows cluster, the method further includes, after sending a Powershell script command to the controlled terminal to enable the controlled terminal to complete deployment of application software, the method further includes:
and sending a Powershell script command for completing the network configuration of the network card of the controlled terminal to the controlled terminal, so that the controlled terminal completes the network configuration of the network card of the controlled terminal.
Optionally, the network configuration of the controlled terminal network card includes: and cleaning the network configuration of the network card of the controlled terminal in different network domains and the network configuration of the network card of the controlled terminal.
Optionally, when the controlled terminal is a Windows terminal, the Windows terminal is pre-installed with Powershell, and the remote management service and Powershell remote management permission are started.
Optionally, the sending, to the controlled terminal, an anchor script command for deploying application software includes:
and generating an application software deployment code for the Linux terminal by utilizing a pre-established script code template of various application software, executing the application software deployment code, and automatically sending an Angle script command for deploying the application software to the controlled terminal by the application software deployment code for the Linux terminal.
Optionally, the sending, to the controlled terminal, a Powershell script command for deploying application software includes:
and generating an application software deployment code for the Windows terminal by utilizing pre-established script code templates of various application software, executing the application software deployment code, and automatically sending a Powershell script command for deploying the application software to the controlled terminal by the application software deployment code for the Windows terminal.
The embodiment of the invention provides an automatic deployment system of a cloud platform, which is applied to a main control terminal of the cloud platform and comprises the following components:
the connection module is used for calling an alarm tool to establish communication connection with a controlled terminal, and the controlled terminal comprises: windows terminals in Windows cluster and Linux terminals in Linux cluster;
the first sending module is used for sending an interrupt script command for deploying application software to the controlled terminal if the controlled terminal is a Linux terminal in a Linux cluster, so that the controlled terminal completes deployment of the application software;
and the second sending module is used for sending a Powershell script command for deploying application software to the controlled terminal if the controlled terminal is a Windows terminal in a Windows cluster, so that the controlled terminal completes the deployment of the application software.
Optionally, the cloud platform automatic deployment system further includes:
and the third sending module is used for sending Powershell script commands for completing the network configuration of the network card of the controlled terminal to the controlled terminal so that the controlled terminal completes the network configuration of the network card of the controlled terminal.
An embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the method are implemented.
According to the automatic deployment method and system of the cloud platform provided by the embodiment of the invention, the communication connection is established with the controlled terminal by calling the Ansible tool, and the controlled terminal comprises: if the controlled terminal is a Windows terminal in the Windows cluster, an Angle script command for deploying application software is sent to the controlled terminal so that the controlled terminal completes deployment of the application software, and if the controlled terminal is a Windows terminal in the Windows cluster, a PowerShell script command for deploying the application software is sent to the controlled terminal so that the controlled terminal completes deployment of the application software.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of an automatic cloud platform deployment method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an automatic cloud platform deployment system according to an embodiment of the present invention;
fig. 3 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 shows a schematic flowchart of an automatic cloud platform deployment method according to an embodiment of the present invention, and as shown in fig. 1, the automatic cloud platform deployment method according to the embodiment includes:
s1, calling an alarm tool to establish communication connection with a controlled terminal, wherein the controlled terminal comprises: windows terminals in Windows cluster and Linux terminals in Linux cluster.
It should be noted that an execution subject of the automatic cloud platform deployment method in this embodiment is a cloud platform master control terminal.
It can be understood that the infrastructure is an existing automation operation and maintenance tool, is developed based on Python, integrates the advantages of a plurality of operation and maintenance tools (puppet, cfengine, chef, func, fabric), and realizes functions such as batch system configuration, batch program deployment, batch operation commands, and the like.
It can be understood that since the infrastructure is developed based on the SSH (secure shell protocol), the Linux operating system does not need to install the client, and the embodiment may invoke the infrastructure tool to connect the Linux terminals in the Linux cluster through the public key authentication of the SSH.
It can be understood that the embodiment may invoke an anchor tool, and connect the Windows terminals in the Windows cluster through a pre-programmed anchor script command.
And S2, if the controlled terminal is a Linux terminal in a Linux cluster, sending an Angle script command for deploying application software to the controlled terminal, so that the controlled terminal completes deployment of the application software.
It can be understood that, because the infrastructure is developed based on the Linux system using the Python language, the cloud platform master control terminal can complete the deployment of the application software according to the infrastructure script command for deploying the application software by sending the infrastructure script command for deploying the application software to the connected Linux terminals in the Linux cluster.
And S3, if the controlled terminal is a Windows terminal in a Windows cluster, sending a Powershell script command for deploying application software to the controlled terminal, so that the controlled terminal completes deployment of the application software.
It can be understood that, when the controlled terminal is a Windows terminal, the Windows terminal is pre-installed with Powershell, and starts the remote management service and the Powershell remote management authority, modifies the firewall policy of the Windows terminal, opens the port required by the Powershell remote management, and then the cloud platform main control terminal can complete the deployment of the application software by sending the Powershell script command for deploying the application software to the Windows terminal in the connected Windows cluster, so that the Windows terminal completes the deployment of the application software according to the Powershell script command for deploying the application software.
It will be appreciated that PowerShell is a command line shell and scripting environment that makes available to command line users and scripting authors the powerful functionality of NET Framework. Since the use of the infrastructure tool alone cannot realize the automatic deployment of the application software of the Windows and Linux operating system terminals, the embodiment combines the infrastructure tool with Powershell to realize the automatic deployment of the application software of the Windows and Linux operating system terminals.
The automatic deployment method for the cloud platform provided by this embodiment establishes a communication connection with a controlled terminal by calling an anchor tool, where the controlled terminal includes: if the controlled terminal is a Windows terminal in the Windows cluster, an Angle script command for deploying application software is sent to the controlled terminal so that the controlled terminal completes deployment of the application software, and if the controlled terminal is a Windows terminal in the Windows cluster, a PowerShell script command for deploying the application software is sent to the controlled terminal so that the controlled terminal completes deployment of the application software.
Further, on the basis of the foregoing embodiment, in step S3, if the controlled terminal is a Windows terminal in a Windows cluster, the method may further include, after sending a Powershell script command to the controlled terminal so that the controlled terminal completes deployment of application software, the method further includes:
and sending a Powershell script command for completing the network configuration of the network card of the controlled terminal to the controlled terminal, so that the controlled terminal completes the network configuration of the network card of the controlled terminal.
Specifically, the network configuration of the network card of the controlled terminal may include: network configuration of different network domains of the controlled terminal network card (such as network card IP (protocol of interconnection between networks), subnet mask, gateway and the like), cleaning of the network configuration of the controlled terminal network card and the like.
It can be understood that, in the embodiment, the network of the remote Windows terminal cluster can be rapidly and automatically configured remotely by using the Powershell script command, and the network configuration time is low.
Further, on the basis of the foregoing embodiment, the "sending an allowed script command for deploying application software to the controlled terminal" in step S2 may include:
and generating an application software deployment code for the Linux terminal by utilizing a pre-established script code template of various application software, executing the application software deployment code, and automatically sending an Angle script command for deploying the application software to the controlled terminal by the application software deployment code for the Linux terminal.
It can be understood that, in this embodiment, after the cloud platform master control terminal calls the infrastructure tool to connect to the Linux terminal in the Linux cluster for each type of application software to be deployed, the pre-established script code templates of each type of application software are used to generate and execute the application software deployment code for the Linux terminal, so that the application software deployment code for the Linux terminal automatically sends the infrastructure script command for deploying the application software to the Linux terminal in the connected Linux cluster, so that the Linux terminal completes deployment of the application software.
Further, on the basis of the foregoing embodiment, the "sending a Powershell script command for deploying application software to the controlled terminal" in step S3 may include:
and generating an application software deployment code for the Windows terminal by utilizing pre-established script code templates of various application software, executing the application software deployment code, and automatically sending a Powershell script command for deploying the application software to the controlled terminal by the application software deployment code for the Windows terminal.
It can be understood that, in this embodiment, after the cloud platform master control terminal calls the anchor tool to connect to the Windows terminal in the Windows cluster, the pre-established script code templates of various application software may be used to generate and execute the application software deployment code for the Windows terminal, so that the application software deployment code for the Windows terminal automatically sends the Powershell script command for deploying the application software to the Windows terminal in the connected Windows cluster, so that the Windows terminal completes the deployment of the application software.
It can be understood that, in the embodiment, the application software deployment code for the Linux/Windows terminal is generated and executed by using the pre-established script code templates of various types of application software, so that even if a certain software is configured or network changed, the deployment code does not need to be modified, and only the corresponding configuration file needs to be modified.
The cloud platform automatic deployment method provided by the embodiment realizes high efficiency, high reliability and supports network automatic configuration and software automatic deployment of two different operating systems of Linux and Windows, reduces the dependence of the existing cloud platform automatic deployment system on the operating system, automatically generates deployment codes in a way of pre-established script code templates of various application software, greatly improves the maintainability and expansibility of the system, and reduces the work of code modification caused by adding and deleting software or configuration.
Fig. 2 shows a schematic structural diagram of an automatic cloud platform deployment system according to an embodiment of the present invention, and as shown in fig. 2, the automatic cloud platform deployment system according to the embodiment includes: a connection module 21, a first transmission module 22 and a second transmission module 23; wherein:
the connection module 21 is configured to invoke an anchor tool to establish a communication connection with a controlled terminal, where the controlled terminal includes: windows terminals in Windows cluster and Linux terminals in Linux cluster;
the first sending module 22 is configured to send an interrupt script command for deploying application software to the controlled terminal if the controlled terminal is a Linux terminal in a Linux cluster, so that the controlled terminal completes deployment of the application software;
the second sending module 23 is configured to send a Powershell script command for deploying application software to the controlled terminal if the controlled terminal is a Windows terminal in a Windows cluster, so that the controlled terminal completes deployment of the application software.
Specifically, the connection module 21 invokes an anchor tool to establish a communication connection with a controlled terminal, where the controlled terminal includes: windows terminals in Windows cluster and Linux terminals in Linux cluster; if the controlled terminal is a Linux terminal in a Linux cluster, the first sending module 22 sends an anchor script command for deploying application software to the controlled terminal, so that the controlled terminal completes deployment of the application software; if the controlled terminal is a Windows terminal in a Windows cluster, the second sending module 23 sends a Powershell script command for deploying application software to the controlled terminal, so that the controlled terminal completes deployment of the application software.
It should be noted that an execution main body of the cloud platform automatic deployment system according to this embodiment is a cloud platform main control terminal.
It can be understood that the infrastructure is an existing automation operation and maintenance tool, is developed based on Python, integrates the advantages of a plurality of operation and maintenance tools (puppet, cfengine, chef, func, fabric), and realizes functions such as batch system configuration, batch program deployment, batch operation commands, and the like.
It can be understood that since the infrastructure is developed based on the SSH (secure shell protocol), the Linux operating system does not need to install a client, and the connection module 21 in this embodiment may invoke an infrastructure tool to connect the Linux terminals in the Linux cluster through public key authentication of the SSH.
It can be understood that, in this embodiment, the connection module 21 may invoke an anchor tool, and connect the Windows terminal in the Windows cluster through a pre-programmed anchor script command.
It can be understood that, since the infrastructure is developed based on the Linux system using the Python language, the first sending module 22 of the cloud platform master control terminal can send the infrastructure script command for deploying the application software to the connected Linux terminals in the Linux cluster, so that the Linux terminals can complete the deployment of the application software according to the infrastructure script command for deploying the application software.
It can be understood that, when the controlled terminal is a Windows terminal, the Windows terminal is pre-installed with Powershell, and starts the remote management service and the Powershell remote management authority, modifies the firewall policy of the Windows terminal, opens the port required by the Powershell remote management, and then the second sending module 23 of the cloud platform main control terminal can send the Powershell script command for deploying the application software to the Windows terminal in the connected Windows cluster, so that the Windows terminal completes the deployment of the application software according to the Powershell script command for deploying the application software.
It will be appreciated that PowerShell is a command line shell and scripting environment that makes available to command line users and scripting authors the powerful functionality of NET Framework. Since the use of the infrastructure tool alone cannot realize the automatic deployment of the application software of the Windows and Linux operating system terminals, the embodiment combines the infrastructure tool with Powershell to realize the automatic deployment of the application software of the Windows and Linux operating system terminals.
The cloud platform automatic deployment system provided by the embodiment can realize automatic deployment of application software of terminals of two operating systems, namely Linux and Windows, reduces dependence of the existing cloud platform automatic deployment system on the operating system, and is high in efficiency and reliability.
Further, on the basis of the foregoing embodiment, the cloud platform automatic deployment system according to this embodiment may further include, not shown in the figure:
and the third sending module is used for sending Powershell script commands for completing the network configuration of the network card of the controlled terminal to the controlled terminal so that the controlled terminal completes the network configuration of the network card of the controlled terminal.
Specifically, the network configuration of the network card of the controlled terminal may include: network configuration of different network domains of the controlled terminal network card (such as network card IP (protocol of interconnection between networks), subnet mask, gateway and the like), cleaning of the network configuration of the controlled terminal network card and the like.
It can be understood that, in the embodiment, the network of the remote Windows terminal cluster can be rapidly and automatically configured remotely by using the Powershell script command, and the network configuration time is low.
Further, on the basis of the foregoing embodiment, the "sending an allowed script command for deploying application software to the controlled terminal" in the first sending module 22 may include:
and generating an application software deployment code for the Linux terminal by utilizing a pre-established script code template of various application software, executing the application software deployment code, and automatically sending an Angle script command for deploying the application software to the controlled terminal by the application software deployment code for the Linux terminal.
It can be understood that, in this embodiment, after the connection module 21 of the cloud platform main control terminal calls the infrastructure tool to connect the Linux terminal in the Linux cluster for each type of application software to be deployed, the first sending module 22 may generate and execute the application software deployment code for the Linux terminal by using the pre-established script code templates of each type of application software, so that the application software deployment code for the Linux terminal automatically sends an infrastructure script command for deploying the application software to the Linux terminal in the connected Linux cluster, so that the Linux terminal completes deployment of the application software.
Further, on the basis of the foregoing embodiment, the "sending, to the controlled terminal, the Powershell script command for deploying the application software" in the second sending module 23 may include:
and generating an application software deployment code for the Windows terminal by utilizing pre-established script code templates of various application software, executing the application software deployment code, and automatically sending a Powershell script command for deploying the application software to the controlled terminal by the application software deployment code for the Windows terminal.
It can be understood that, in this embodiment, after the connection module 21 of the cloud platform main control terminal calls the anchor tool to connect to the Windows terminal in the Windows cluster, the second sending module 23 may generate and execute the application deployment code for the Windows terminal by using the pre-established script code templates of various application software, so that the application deployment code for the Windows terminal automatically sends the Powershell script command for deploying the application software to the Windows terminal in the connected Windows cluster, so that the Windows terminal completes deployment of the application software.
It can be understood that, in the embodiment, the application software deployment code for the Linux/Windows terminal is generated and executed by using the pre-established script code templates of various types of application software, so that even if a certain software is configured or network changed, the deployment code does not need to be modified, and only the corresponding configuration file needs to be modified.
The cloud platform automatic deployment system provided by the embodiment realizes high efficiency and high reliability, supports network automatic configuration and software automatic deployment of two different operating systems of Linux and Windows, reduces the dependence of the existing cloud platform automatic deployment system on the operating system, automatically generates deployment codes in a way of pre-established script code templates of various application software, greatly improves the maintainability and expansibility of the system, and reduces the work of code modification caused by adding and deleting software or configuration.
The cloud platform automatic deployment system provided by the embodiment of the invention can be used for executing the technical scheme of the method embodiment, the implementation principle and the technical effect are similar, and the details are not repeated here.
Fig. 3 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention, as shown in fig. 3, the electronic device may include a memory 302, a processor 301, a bus 303, and a computer program stored in the memory 302 and executable on the processor 301, where the processor 301 and the memory 302 communicate with each other through the bus 303. The processor 301, when executing the computer program, implements the steps of the above method, for example, including: calling an infrastructure tool to establish communication connection with a controlled terminal, wherein the controlled terminal comprises: windows terminals in Windows cluster and Linux terminals in Linux cluster; if the controlled terminal is a Linux terminal in a Linux cluster, sending an interrupt script command for deploying application software to the controlled terminal so that the controlled terminal completes deployment of the application software; and if the controlled terminal is a Windows terminal in a Windows cluster, sending a Powershell script command for deploying application software to the controlled terminal so that the controlled terminal completes the deployment of the application software.
An embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the above method, for example, including: calling an infrastructure tool to establish communication connection with a controlled terminal, wherein the controlled terminal comprises: windows terminals in Windows cluster and Linux terminals in Linux cluster; if the controlled terminal is a Linux terminal in a Linux cluster, sending an interrupt script command for deploying application software to the controlled terminal so that the controlled terminal completes deployment of the application software; and if the controlled terminal is a Windows terminal in a Windows cluster, sending a Powershell script command for deploying application software to the controlled terminal so that the controlled terminal completes the deployment of the application software.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A cloud platform automatic deployment method is applied to a cloud platform main control terminal and is characterized by comprising the following steps:
calling an infrastructure tool to establish communication connection with a controlled terminal, wherein the controlled terminal comprises: windows terminals in Windows cluster and Linux terminals in Linux cluster;
if the controlled terminal is a Linux terminal in a Linux cluster, sending an interrupt script command for deploying application software to the controlled terminal so that the controlled terminal completes deployment of the application software;
and if the controlled terminal is a Windows terminal in a Windows cluster, sending a Powershell script command for deploying application software to the controlled terminal so that the controlled terminal completes the deployment of the application software.
2. The automatic deployment method of the cloud platform according to claim 1, wherein after the controlled terminal sends a Powershell script command to the controlled terminal to complete the deployment of the application software if the controlled terminal is a Windows terminal in a Windows cluster, the method further includes:
and sending a Powershell script command for completing the network configuration of the network card of the controlled terminal to the controlled terminal, so that the controlled terminal completes the network configuration of the network card of the controlled terminal.
3. The automatic cloud platform deployment method according to claim 2, wherein the network configuration of the controlled terminal network card comprises: and cleaning the network configuration of the network card of the controlled terminal in different network domains and the network configuration of the network card of the controlled terminal.
4. The automatic cloud platform deployment method of claim 1, wherein when the controlled terminal is a Windows terminal, the Windows terminal is preinstalled with Powershell, and opens remote management service and Powershell remote management authority.
5. The automatic cloud platform deployment method according to claim 1, wherein the sending, to the controlled terminal, an anchor script command for deploying application software includes:
and generating an application software deployment code for the Linux terminal by utilizing a pre-established script code template of various application software, executing the application software deployment code, and automatically sending an Angle script command for deploying the application software to the controlled terminal by the application software deployment code for the Linux terminal.
6. The automatic cloud platform deployment method according to claim 1, wherein the sending, to the controlled terminal, a Powershell script command for deploying application software includes:
and generating an application software deployment code for the Windows terminal by utilizing pre-established script code templates of various application software, executing the application software deployment code, and automatically sending a Powershell script command for deploying the application software to the controlled terminal by the application software deployment code for the Windows terminal.
7. The utility model provides an automatic deployment system of cloud platform, is applied to cloud platform master control terminal which characterized in that includes:
the connection module is used for calling an alarm tool to establish communication connection with a controlled terminal, and the controlled terminal comprises: windows terminals in Windows cluster and Linux terminals in Linux cluster;
the first sending module is used for sending an interrupt script command for deploying application software to the controlled terminal if the controlled terminal is a Linux terminal in a Linux cluster, so that the controlled terminal completes deployment of the application software;
and the second sending module is used for sending a Powershell script command for deploying application software to the controlled terminal if the controlled terminal is a Windows terminal in a Windows cluster, so that the controlled terminal completes the deployment of the application software.
8. The cloud platform automated deployment system of claim 7, further comprising:
and the third sending module is used for sending Powershell script commands for completing the network configuration of the network card of the controlled terminal to the controlled terminal so that the controlled terminal completes the network configuration of the network card of the controlled terminal.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 6 are implemented when the computer program is executed by the processor.
10. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201910973748.2A 2019-10-14 2019-10-14 Automatic deployment method and system for cloud platform Pending CN110750273A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910973748.2A CN110750273A (en) 2019-10-14 2019-10-14 Automatic deployment method and system for cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910973748.2A CN110750273A (en) 2019-10-14 2019-10-14 Automatic deployment method and system for cloud platform

Publications (1)

Publication Number Publication Date
CN110750273A true CN110750273A (en) 2020-02-04

Family

ID=69278224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910973748.2A Pending CN110750273A (en) 2019-10-14 2019-10-14 Automatic deployment method and system for cloud platform

Country Status (1)

Country Link
CN (1) CN110750273A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309342A (en) * 2020-02-19 2020-06-19 北京中数智汇科技股份有限公司 Automatic deployment system and method for high-availability distributed file system
CN111857758A (en) * 2020-07-27 2020-10-30 平安科技(深圳)有限公司 Application deployment method, device and medium
CN113282307A (en) * 2021-06-11 2021-08-20 云宏信息科技股份有限公司 Method, server and system for batch installation of ansable server to software
CN113672338A (en) * 2021-07-19 2021-11-19 交控科技股份有限公司 Method and device for building urban rail data sharing platform and electronic equipment
WO2022267407A1 (en) * 2021-06-22 2022-12-29 深圳前海微众银行股份有限公司 Automated operation and maintenance tool-based proxy deployment method and apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105099739A (en) * 2014-05-15 2015-11-25 中国移动通信集团公司 Plug-in type software deployment method and apparatus, and application server
WO2017012219A1 (en) * 2015-07-17 2017-01-26 中兴通讯股份有限公司 Software test method, apparatus and system
CN108694053A (en) * 2018-05-14 2018-10-23 平安科技(深圳)有限公司 Build the method and terminal device of Kubernetes host nodes automatically based on Ansible tools
CN109298868A (en) * 2018-08-22 2019-02-01 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Intelligent dynamic deployment and unloading method for mapping image data processing software

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105099739A (en) * 2014-05-15 2015-11-25 中国移动通信集团公司 Plug-in type software deployment method and apparatus, and application server
WO2017012219A1 (en) * 2015-07-17 2017-01-26 中兴通讯股份有限公司 Software test method, apparatus and system
CN108694053A (en) * 2018-05-14 2018-10-23 平安科技(深圳)有限公司 Build the method and terminal device of Kubernetes host nodes automatically based on Ansible tools
CN109298868A (en) * 2018-08-22 2019-02-01 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Intelligent dynamic deployment and unloading method for mapping image data processing software

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309342A (en) * 2020-02-19 2020-06-19 北京中数智汇科技股份有限公司 Automatic deployment system and method for high-availability distributed file system
CN111857758A (en) * 2020-07-27 2020-10-30 平安科技(深圳)有限公司 Application deployment method, device and medium
WO2021139261A1 (en) * 2020-07-27 2021-07-15 平安科技(深圳)有限公司 Application deployment method and device, and medium
CN111857758B (en) * 2020-07-27 2024-03-22 平安科技(深圳)有限公司 Application deployment method, device and medium
CN113282307A (en) * 2021-06-11 2021-08-20 云宏信息科技股份有限公司 Method, server and system for batch installation of ansable server to software
WO2022267407A1 (en) * 2021-06-22 2022-12-29 深圳前海微众银行股份有限公司 Automated operation and maintenance tool-based proxy deployment method and apparatus
CN113672338A (en) * 2021-07-19 2021-11-19 交控科技股份有限公司 Method and device for building urban rail data sharing platform and electronic equipment

Similar Documents

Publication Publication Date Title
CN110750273A (en) Automatic deployment method and system for cloud platform
CN107493344B (en) Method and system for Web access to Docker container
CN113742031B (en) Node state information acquisition method and device, electronic equipment and readable storage medium
WO2015188617A1 (en) Method and device for installing mysql databases
US11824714B2 (en) Method and apparatus for updating an edge node, device, medium and program product
CN113556584B (en) Screenshot transmission method and device of cloud mobile phone, electronic equipment and storage medium
CN113938533B (en) Inter-application communication method and device, electronic equipment and computer readable medium
CN105812406A (en) Information transmission method and device based on WEB simulation terminal system
CN111026723A (en) Big data cluster management control method and device, computer equipment and storage medium
CN113691602B (en) Service processing method, system, device, equipment and medium based on cloud mobile phone
CN105471963A (en) Mobile device management method and system based on cloud platform
CN105607606A (en) Data acquisition device and data acquisition method based on double-mainboard framework
CN107733717B (en) Network configuration method for mobile operation and maintenance of cloud platform
CN110912725A (en) Configuration method and configuration device of OpenFlow virtual switch
CN114615285B (en) Physical machine deployment method and device, electronic equipment and storage medium
CN114089711B (en) Industrial equipment control management method, electronic equipment and storage medium
CN114095498B (en) Cluster environment deployment method, system, computer equipment and storage medium
CN115495195A (en) Data processing method and device and related equipment
CN111193776B (en) Method, device, equipment and medium for automatically logging in client under cloud desktop environment
CN107766066A (en) A kind of method for updating slave module firmware
CN110768855B (en) Method and device for testing linkmzation performance
CN113326192A (en) Application testing method, device, equipment and storage medium for mobile terminal
CN109871288A (en) Execute method, apparatus, equipment and the medium of android system order
CN112217693A (en) Controller testing method and device, electronic equipment and storage medium
CN105187244A (en) Access management system of digital communication equipment supporting multiple management modes

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200204

RJ01 Rejection of invention patent application after publication