CN110855746A - Middleware management method, electronic device and storage medium - Google Patents

Middleware management method, electronic device and storage medium Download PDF

Info

Publication number
CN110855746A
CN110855746A CN201910971540.7A CN201910971540A CN110855746A CN 110855746 A CN110855746 A CN 110855746A CN 201910971540 A CN201910971540 A CN 201910971540A CN 110855746 A CN110855746 A CN 110855746A
Authority
CN
China
Prior art keywords
middleware
target machine
configuration file
configuration
deployment
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
CN201910971540.7A
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.)
Chongqing Financial Assets Exchange LLC
Original Assignee
Chongqing Financial Assets Exchange LLC
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 Chongqing Financial Assets Exchange LLC filed Critical Chongqing Financial Assets Exchange LLC
Priority to CN201910971540.7A priority Critical patent/CN110855746A/en
Publication of CN110855746A publication Critical patent/CN110855746A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • 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/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles

Abstract

The invention relates to the technical field of computers, and provides a middleware management method, an electronic device and a computer storage medium, wherein the method comprises the following steps: receiving the IP address of a target machine selected by a user on a setting interface and the operation of the middleware to be deployed, generating a deployment request of the middleware, sending a deployment instruction containing a middleware installation package corresponding to the deployment request of the middleware to the target machine corresponding to the IP address of the target machine, and installing the middleware installation package to the target machine; after receiving information that the middleware installation package fed back by the target machine completes installation, acquiring a preset first configuration file from the middleware installation package, updating a preset configuration rule to generate a second configuration file, and sending the second configuration file to the target machine; finally, the middleware is deployed on the target machine according to the second configuration file. The middleware is installed in the target machine selected by the user for configuration, the second configuration file is generated, and the middleware is deployed on the corresponding target machine, so that uniform and efficient management of the middleware is ensured.

Description

Middleware management method, electronic device and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a middleware management method, an electronic device, and a computer-readable storage medium.
Background
In a distributed cluster system architecture, middleware (middleware) is used for management and communication media connections to various systems. Common middleware such as Apache, Tomcat, Nginx, Redis, WebLogic, etc. In a system comprising a plurality of servers and a plurality of clients, users can deploy the same or different middleware on one or more hosts according to actual needs to realize resource sharing among different technologies.
However, the prior art lacks corresponding management capability for the middleware deployed on the host, such as inefficient resource configuration management, easy error of manual recording of partial data, and the like.
Therefore, how to uniformly and efficiently manage the middleware becomes a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the foregoing, the present invention provides a middleware management method, an electronic device and a computer-readable storage medium, which mainly aims to deploy middleware on a host by using a configuration file, and ensure uniform and efficient management of the middleware.
In order to achieve the above object, the present invention provides a middleware management method applied to an electronic device, including:
receiving an IP address of a target machine selected by a user on a setting interface and an operation of a middleware to be deployed, and generating a deployment request of the middleware, wherein the deployment request comprises middleware identification information and target machine identification information;
according to the deployment request of the middleware, sending a deployment instruction containing a middleware installation package corresponding to the deployment request of the middleware to a target machine corresponding to the IP address of the target machine, and installing the middleware installation package to the target machine; and
after receiving information that the middleware installation package fed back by the target machine completes installation, acquiring a preset first configuration file from the middleware installation package, updating a preset configuration rule to generate a second configuration file, and sending the second configuration file to the target machine;
deploying the middleware on the target machine according to the second configuration file.
Preferably, the operation of receiving the IP address of the target machine and the middleware to be deployed, which are selected by the user on the setting interface, includes:
receiving a real-time service request input by a user, and generating a deployment request of the middleware according to middleware identification information and target machine identification information corresponding to the real-time service request.
Preferably, the target machine is a virtual machine or a physical host;
when the target machine is a virtual machine, the deployment instruction comprises an establishing instruction, a remote copying instruction and an installation instruction;
when the target machine is a physical host machine, the deployment instruction comprises a remote copy instruction and an installation instruction.
Preferably, the updating of the preset configuration rule includes:
objectifying the first configuration file to obtain at least one configuration parameter contained in each configuration object in the first configuration file;
receiving a configuration value input by a user in a configuration object of a setting interface, generating a second configuration file, and storing the second configuration file to a preset configuration library, wherein the second configuration file comprises data record information of the configuration object.
Preferably, the method further comprises:
receiving an information state change request for starting, stopping or restarting contained in the middleware, and changing the running state of the middleware on a corresponding target machine according to the information state change request of the middleware.
In addition, to achieve the above object, the present invention further provides an electronic device, which includes a memory and a processor, wherein the memory stores a middleware management program operable on the processor, and the middleware management program implements any step of the middleware management method as described above when executed by the processor.
Further, to achieve the above object, the present invention provides a middleware management apparatus including:
the system comprises a receiving module, a deployment module and a deployment module, wherein the receiving module is used for receiving the operation of a target machine IP address and a middleware to be deployed, which are selected by a user on a setting interface, and generating a deployment request of the middleware, and the deployment request comprises middleware identification information and target machine identification information;
the installation module is used for sending a deployment instruction containing a middleware installation package corresponding to the deployment request of the middleware to a target machine corresponding to the IP address of the target machine according to the deployment request of the middleware, and installing the middleware installation package to the target machine;
the configuration module is used for acquiring a preset first configuration file from the middleware installation package to update a preset configuration rule so as to generate a second configuration file after receiving information that the middleware installation package fed back by the target machine completes installation, and sending the second configuration file to the target machine; and
and the deployment module is used for deploying the middleware on the target machine according to the second configuration file.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, which includes a middleware management program, and when the middleware management program is executed by a processor, the middleware management program can implement any step in the middleware management method as described above.
The middleware management method, the electronic device and the computer readable storage medium generate a deployment request of the middleware by receiving the IP address of a target machine selected by a user on a setting interface and the operation of the middleware to be deployed; according to the deployment request of the middleware, sending a deployment instruction containing a middleware installation package corresponding to the deployment request of the middleware to a target machine corresponding to the IP address of the target machine, and installing the middleware installation package to the target machine; after receiving information that the middleware installation package fed back by the target machine completes installation, acquiring a preset first configuration file from the middleware installation package, updating a preset configuration rule to generate a second configuration file, and sending the second configuration file to the target machine; finally, the middleware is deployed on the target machine according to the second configuration file. The middleware is installed in the target machine selected by the user for configuration, the second configuration file is generated, and the middleware is deployed on the corresponding target machine, so that uniform and efficient management of the middleware is ensured.
Drawings
FIG. 1 is a diagram of an electronic device according to a preferred embodiment of the present invention;
FIG. 2 is a block diagram of a preferred embodiment of the middleware manager of FIG. 1;
FIG. 3 is a flowchart of a preferred embodiment of a middleware management method according to the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the 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.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Referring to fig. 1, a schematic diagram of an electronic device according to a preferred embodiment of the invention is shown. The electronic apparatus 1 is a device capable of automatically performing numerical calculation and/or information processing in accordance with a command set or stored in advance. The electronic device 1 may be a computer, or may be a single network server, a server group composed of a plurality of network servers, or a cloud composed of a large number of hosts or network servers based on cloud computing, where cloud computing is one of distributed computing and is a super virtual computer composed of a group of loosely coupled computers.
In the present embodiment, the electronic device 1 may include, but is not limited to, a memory 11, a processor 12, and a network interface 13, which are communicatively connected to each other through a system bus, and the memory 11 stores a middleware management program 10 that can run on the processor 12. It is noted that fig. 1 only shows the electronic device 1 with components 11-13, but it is to be understood that not all shown components are required to be implemented, and that more or less components may be implemented instead.
The storage 11 includes a memory and at least one type of readable storage medium. The memory provides cache for the operation of the electronic device 1; the readable storage medium may be a non-volatile storage medium such as flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the readable storage medium may be an internal storage unit of the electronic apparatus 1, such as a hard disk of the electronic apparatus 1; in other embodiments, the non-volatile storage medium may also be an external storage device of the electronic apparatus 1, such as a plug-in hard disk provided on the electronic apparatus 1, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. In this embodiment, the readable storage medium of the memory 11 is generally used for storing an operating system and various application software installed in the electronic device 1, such as storing the middleware management program 10 in an embodiment of the present invention. Further, the memory 11 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 12 is generally used for controlling the overall operation of the electronic apparatus 1, such as performing control and processing related to data interaction or communication with the other devices. In this embodiment, the processor 12 is configured to run the program code stored in the memory 11 or process data, for example, run the middleware management program 10.
The network interface 13 may comprise a wireless network interface or a wired network interface, and the network interface 13 is generally used for establishing a communication connection between the electronic apparatus 1 and other electronic devices.
The middleware management program 10 is stored in the memory 11, and includes computer readable instructions stored in the memory 11, which can be executed by the processor 12 to implement the methods of the embodiments of the present application.
In one embodiment, the middleware management program 10 implements the following steps when executed by the processor 12:
a receiving step: receiving the IP address of a target machine selected by a user on a setting interface and the operation of the middleware to be deployed, and generating a deployment request of the middleware, wherein the deployment request comprises middleware identification information and target machine identification information.
The middleware identification information includes a middleware name and version information. The target machine identification information includes a target machine IP address. In this embodiment, a mapping relationship between the middleware and the target machine is pre-established, and the corresponding target machine is determined according to the middleware identification information.
In an embodiment, when the deployment request of the middleware is initiated by a user, the user may select (or input) a target machine IP address and the middleware to be deployed in a setting interface according to actual needs, after the setting is completed, a deployment request of the middleware including middleware identification information and target machine identification information is generated according to an operation of the user on the setting interface, and after the deployment request of the middleware is received, a middleware installation task is deployed according to the deployment request of the middleware.
Further, the operation of receiving the target machine IP address and the middleware to be deployed selected by the user on the setting interface includes:
receiving a real-time service request input by a user, and generating a deployment request of the middleware according to middleware identification information and target machine identification information corresponding to the real-time service request.
In one embodiment, the real-time service request received from the user input may be a status request or a configuration request. The state request is used for changing the running state of the middleware on the target machine, and the configuration request is used for changing the configuration parameters of the middleware on the target machine.
The installation step: and sending a deployment instruction containing a middleware installation package corresponding to the deployment request of the middleware to a target machine corresponding to the IP address of the target machine according to the deployment request of the middleware, and installing the middleware installation package to the target machine.
In one embodiment, a corresponding target machine is determined according to an IP address of the target machine, a deployment instruction is sent to the determined target machine according to a deployment request of the middleware, the deployment instruction includes a middleware installation package, and the middleware installation package is installed to the determined target machine.
Further, the target machine is a virtual machine or a physical host;
when the target machine is a virtual machine, the deployment instruction comprises an establishing instruction, a remote copying instruction and an installation instruction;
when the target machine is a physical host machine, the deployment instruction comprises a remote copy instruction and an installation instruction.
In one embodiment, the corresponding deployment instructions are executed according to different target machines. When the target machine is a virtual machine, the electronic device sends a deployment instruction to the virtual machine, the electronic device firstly sends a building instruction to the virtual machine of the middleware, the virtual machine is built according to the identification information of the target machine, then a remote copy instruction is sent to the virtual machine for copying a middleware installation package to the virtual machine, and then the electronic device sends an installation instruction to the virtual machine and executes the middleware installation package to be installed to the virtual machine.
In a preferred embodiment, the electronic device sends an scp (Secure copy) instruction to a virtual machine of the middleware through a Secure Shell (SSH) protocol to implement Secure copy of the middleware installation package, transmits the middleware installation package to a corresponding virtual machine by using an automated operation and maintenance tool (ansable), and finally sends an installation instruction to the virtual machine of the middleware to implement installation of the middleware to the target machine.
In another embodiment, when the target machine is a physical host, the electronic device sends a deployment instruction to the virtual machine, and the electronic device sends a remote copy instruction to the corresponding physical host according to the identification information of the target machine, so that the middleware installation package is transmitted to the physical host, and then the electronic device sends an installation instruction to the physical host, and executes the middleware installation package to be installed to the physical host.
A configuration step: and after receiving the information that the middleware installation package fed back by the target machine completes installation, acquiring a preset first configuration file from the middleware installation package, updating a preset configuration rule to generate a second configuration file, and sending the second configuration file to the target machine.
In this embodiment, the first configuration file is a preset general version configuration file, after the middleware installation package is installed, the first configuration file is acquired from the installation package, the first configuration file is updated according to a preset configuration rule, a second configuration file containing a data record is generated, the second configuration file is sent to the target machine, and the second configuration file can trace back version information of the middleware according to the data record.
Further, the updating of the preset configuration rule includes:
objectifying the first configuration file to obtain at least one configuration parameter contained in each configuration object in the first configuration file;
receiving a configuration value input by a user in a configuration object of a setting interface, generating a second configuration file, and storing the second configuration file to a preset configuration library, wherein the second configuration file comprises data record information of the configuration object.
For example, reverse proxy services of the Nginx middleware are configured. The conventional method is that a corresponding server block is found in a configuration file, a location block is found or added from the server block, and a (proxy _ set _ header proxy _ pass) equal key value pair is filled in the location block; when load balancing is configured, a corresponding upstream configuration block needs to be newly established, a plurality of key value pairs of the server block need to be configured, and a plurality of corresponding balancing strategies need to be written. In the embodiment, the first configuration file is objectified, and the user only needs to input the URL, the dynamically balanced IP address and the configuration value of the reverse proxy electronic device, then selects the load balancing policy, generates the second configuration file, and can complete the configuration operation, thereby realizing the simplification of the configuration file and the high efficiency and convenience.
In this embodiment, the generated second configuration file includes data record information of the configuration object, and records configuration time of each configuration file configured and updated to distinguish different configuration files, and performs configuration file version backtracking according to the recorded configuration time.
Deployment step: deploying the middleware on the target machine according to the second configuration file.
It should be noted that the same middleware may be deployed on a plurality of different target machines, and different middleware may be deployed on different target machines.
Referring to FIG. 2, a block diagram of the middleware management program 10 of FIG. 1 according to an embodiment is shown.
A middleware management apparatus comprising a middleware management program 10, in one embodiment, the middleware management program 10 comprising: a receiving module 101, an installation module 102, a configuration module 103, and a deployment module 104. The functions or operation steps implemented by the modules 101 and 104 are similar to those of the above-mentioned picture object replacing method, and are not detailed here, for example, wherein:
the system comprises a receiving module 101, a configuration module and a configuration module, wherein the receiving module 101 is used for receiving an IP address of a target machine selected by a user on a setting interface and an operation of a middleware to be deployed and generating a deployment request of the middleware, and the deployment request comprises middleware identification information and target machine identification information;
the installation module 102 is configured to send a deployment instruction including a middleware installation package corresponding to the deployment request of the middleware to a target machine corresponding to the IP address of the target machine according to the deployment request of the middleware, and install the middleware installation package to the target machine;
the configuration module 103 is configured to, after receiving information that the middleware installation package is installed and fed back by the target machine, obtain a preset first configuration file from the middleware installation package, perform preset configuration rule update to generate a second configuration file, and send the second configuration file to the target machine; and
a deployment module 104, configured to deploy the middleware on the target machine according to the second configuration file.
Referring to FIG. 3, a flowchart of a middleware management method according to a preferred embodiment of the present invention is shown. The invention discloses a middleware management method. The method is applied to the electronic device and comprises the following steps:
step S210, receiving the operation of the target machine IP address and the middleware to be deployed selected by the user on the setting interface, and generating a deployment request of the middleware, wherein the deployment request comprises middleware identification information and target machine identification information.
The middleware identification information includes a middleware name and version information. The target machine identification information includes a target machine IP address. In this embodiment, a mapping relationship between the middleware and the target machine is pre-established, and the corresponding target machine is determined according to the middleware identification information.
In an embodiment, when the deployment request of the middleware is initiated by a user, the user may select (or input) a target machine IP address and the middleware to be deployed in a setting interface according to actual needs, after the setting is completed, a deployment request of the middleware including middleware identification information and target machine identification information is generated according to an operation of the user on the setting interface, and after the deployment request of the middleware is received, a middleware installation task is deployed according to the deployment request of the middleware.
Further, the operation of the target machine IP address and the middleware to be deployed selected by the user on the setting interface includes:
receiving a real-time service request input by a user, and generating a deployment request of the middleware according to middleware identification information and target machine identification information corresponding to the real-time service request.
In one embodiment, the real-time service request received from the user input may be a status request or a configuration request. The state request is used for changing the running state of the middleware on the target machine, and the configuration request is used for changing the configuration parameters of the middleware on the target machine.
Step S220, according to the deployment request of the middleware, sending a deployment instruction containing a middleware installation package corresponding to the deployment request of the middleware to a target machine corresponding to the IP address of the target machine, and installing the middleware installation package to the target machine.
In one embodiment, a corresponding target machine is determined according to an IP address of the target machine, a deployment instruction is sent to the determined target machine according to a deployment request of the middleware, the deployment instruction includes a middleware installation package, and the middleware installation package is installed to the determined target machine.
Further, the target machine is a virtual machine or a physical host;
when the target machine is a virtual machine, the deployment instruction comprises an establishing instruction, a remote copying instruction and an installation instruction;
when the target machine is a physical host machine, the deployment instruction comprises a remote copy instruction and an installation instruction.
In one embodiment, the corresponding deployment instructions are executed according to different target machines. When the target machine is a virtual machine, the electronic device sends a deployment instruction to the virtual machine, firstly sends a building instruction to the virtual machine of the middleware of the electronic device, builds the virtual machine according to the identification information of the target machine, then sends a remote copy instruction to the virtual machine for copying a middleware installation package to the virtual machine, and then sends an installation instruction to the virtual machine to execute the installation of the middleware installation package to the virtual machine.
In a preferred embodiment, the electronic device sends an scp (Secure copy) instruction to a virtual machine of the middleware through a Secure Shell (SSH) protocol to implement Secure copy of the middleware installation package, transmits the middleware installation package to a corresponding virtual machine by using an automated operation and maintenance tool (ansable), and finally sends an installation instruction to the virtual machine of the middleware to implement installation of the middleware to the target machine.
In another embodiment, when the target machine is a physical host, the electronic device sends a deployment instruction to the virtual machine, and the electronic device sends a remote copy instruction to the corresponding physical host according to the identification information of the target machine, so that the middleware installation package is transmitted to the physical host, and then the electronic device sends an installation instruction to the physical host, and executes the middleware installation package to be installed to the physical host.
Step S230, after receiving feedback information that the middleware installation package completes installation, which is fed back by the target machine, obtaining a preset first configuration file from the middleware installation package, performing preset configuration rule update to generate a second configuration file, and sending the second configuration file to the target machine.
In this embodiment, the first configuration file is a preset general version configuration file, after the middleware installation package is installed, the first configuration file is acquired from the installation package, the first configuration file is updated according to a preset configuration rule, a second configuration file containing a data record is generated, the second configuration file is sent to the target machine, and the second configuration file can trace back version information of the middleware according to the data record.
Further, the updating of the preset configuration rule includes:
objectifying the first configuration file to obtain at least one configuration parameter contained in each configuration object in the first configuration file;
receiving a configuration value input by a user in a configuration object of a setting interface, generating a second configuration file, and storing the second configuration file to a preset configuration library, wherein the second configuration file comprises data record information of the configuration object.
For example, reverse proxy services of the Nginx middleware are configured. The conventional method is that a corresponding server block is found in a configuration file, a location block is found or added from the server block, and a (proxy _ set _ header proxy _ pass) equal key value pair is filled in the location block; when load balancing is configured, a corresponding upstream configuration block needs to be newly established, a plurality of key value pairs of the server block need to be configured, and a plurality of corresponding balancing strategies need to be written. In the embodiment, the first configuration file is objectified, and the user only needs to input the URL, the dynamically balanced IP address and the configuration value of the reverse proxy electronic device, then selects the load balancing policy, generates the second configuration file, and can complete the configuration operation, thereby realizing the simplification of the configuration file and the high efficiency and convenience.
In this embodiment, the generated second configuration file includes data record information of the configuration object, and records configuration time of each configuration file configured and updated to distinguish different configuration files, and performs configuration file version backtracking according to the recorded configuration time.
Step S240, deploying the middleware on the target machine according to the second configuration file.
It should be noted that the same middleware may be deployed on a plurality of different target machines, and different middleware may be deployed on different target machines.
With reference to the above embodiments, the present invention is based on a deployment request of a middleware; determining a corresponding target machine through the middleware identification information, sending a deployment instruction containing a middleware installation package to the determined target machine according to the deployment request, and executing the middleware installation package to be installed to the target machine; and then, acquiring a preset first configuration file from the installation package, updating the first configuration file according to a preset configuration rule, generating a second configuration file containing data record information, and sending the second configuration file to the target machine to complete deployment of the middleware. The middleware is installed in the target machine selected by the user for configuration, the second configuration file is generated, and the middleware is deployed on the corresponding target machine, so that uniform and efficient management of the middleware is ensured.
Further, the middleware management method further includes:
receiving an information state change request for starting, stopping or restarting contained in the middleware, and changing the running state of the middleware on a corresponding target machine according to the information state change request of the middleware.
For example, by changing the middleware in a stopped state to a started state to start the middleware, or by changing the middleware in operation to a restart/stop state, the middleware can be managed in a unified and efficient manner in a plurality of states.
It should be noted that the middleware information state in this embodiment includes, but is not limited to, start, stop, or restart, and the middleware information state further includes a change of the middleware identification information to change the corresponding middleware target machine.
Furthermore, the present invention also provides a computer-readable storage medium, which includes a middleware management program, and when the middleware management program is executed by a processor, the middleware management program can implement the following operations:
receiving an IP address of a target machine selected by a user on a setting interface and an operation of a middleware to be deployed, and generating a deployment request of the middleware, wherein the deployment request comprises middleware identification information and target machine identification information;
according to the deployment request of the middleware, sending a deployment instruction containing a middleware installation package corresponding to the deployment request of the middleware to a target machine corresponding to the IP address of the target machine, and installing the middleware installation package to the target machine;
after receiving feedback information that the middleware installation package fed back by the target machine completes installation, acquiring a preset first configuration file from the middleware installation package, updating a preset configuration rule to generate a second configuration file, and sending the second configuration file to the target machine; and
deploying the middleware on the target machine according to the second configuration file.
The embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the middleware management method and the electronic device, and will not be described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A middleware management method applied to an electronic device is characterized by comprising the following steps:
receiving an IP address of a target machine selected by a user on a setting interface and an operation of a middleware to be deployed, and generating a deployment request of the middleware, wherein the deployment request comprises middleware identification information and target machine identification information;
according to the deployment request of the middleware, sending a deployment instruction containing a middleware installation package corresponding to the deployment request of the middleware to a target machine corresponding to the IP address of the target machine, and installing the middleware installation package to the target machine;
after receiving information that the middleware installation package fed back by the target machine completes installation, acquiring a preset first configuration file from the middleware installation package, updating a preset configuration rule to generate a second configuration file, and sending the second configuration file to the target machine; and
deploying the middleware on the target machine according to the second configuration file.
2. The middleware management method according to claim 1, wherein the operation of receiving the target machine IP address and the middleware to be deployed selected by the user in the setting interface comprises:
receiving a real-time service request input by a user, and generating a deployment request of the middleware according to middleware identification information and target machine identification information corresponding to the real-time service request.
3. A middleware management method according to claim 1, wherein said target machine is a virtual machine or a physical host;
when the target machine is a virtual machine, the deployment instruction comprises an establishing instruction, a remote copying instruction and an installation instruction;
when the target machine is a physical host machine, the deployment instruction comprises a remote copy instruction and an installation instruction.
4. The middleware management method according to claim 1, wherein the updating of the preset configuration rule includes:
objectifying the first configuration file to obtain at least one configuration parameter contained in each configuration object in the first configuration file;
receiving a configuration value input by a user in a configuration object of a setting interface, generating a second configuration file, and storing the second configuration file to a preset configuration library, wherein the second configuration file comprises data record information of the configuration object.
5. The middleware management method according to any one of claims 1 to 4, characterized in that the method further comprises:
receiving an information state change request for starting, stopping or restarting contained in the middleware, and changing the running state of the middleware on a corresponding target machine according to the received information state change request of the middleware.
6. An electronic device comprising a memory and a processor, the memory having stored therein a middleware management program operable on the processor, the middleware management program when executed by the processor implementing the steps of:
receiving an IP address of a target machine selected by a user on a setting interface and an operation of a middleware to be deployed, and generating a deployment request of the middleware, wherein the deployment request comprises middleware identification information and target machine identification information;
according to the deployment request of the middleware, sending a deployment instruction containing a middleware installation package corresponding to the deployment request of the middleware to a target machine corresponding to the IP address of the target machine, and installing the middleware installation package to the target machine;
after receiving information that the middleware installation package fed back by the target machine completes installation, acquiring a preset first configuration file from the middleware installation package, updating a preset configuration rule to generate a second configuration file, and sending the second configuration file to the target machine; and
deploying the middleware on the target machine according to the second configuration file.
7. The electronic device of claim 6, wherein the operation of receiving the IP address of the target machine and the middleware to be deployed selected by the user in the setting interface comprises:
receiving a real-time service request input by a user, and generating a deployment request of the middleware according to middleware identification information and target machine identification information corresponding to the real-time service request.
8. The electronic device of claim 6, wherein the preset configuration rule update comprises:
objectifying the first configuration file to obtain at least one configuration parameter contained in each configuration object in the first configuration file;
receiving a configuration value input by a user in a configuration object of a setting interface, generating a second configuration file, and storing the second configuration file to a preset configuration library, wherein the second configuration file comprises data record information of the configuration object.
9. A middleware management apparatus, characterized by comprising:
the system comprises a receiving module, a deployment module and a deployment module, wherein the receiving module is used for receiving the operation of a target machine IP address and a middleware to be deployed, which are selected by a user on a setting interface, and generating a deployment request of the middleware, and the deployment request comprises middleware identification information and target machine identification information;
the installation module is used for sending a deployment instruction containing a middleware installation package corresponding to the deployment request of the middleware to a target machine corresponding to the IP address of the target machine according to the deployment request of the middleware, and installing the middleware installation package to the target machine;
the configuration module is used for acquiring a preset first configuration file from the middleware installation package to update a preset configuration rule so as to generate a second configuration file after receiving information that the middleware installation package fed back by the target machine completes installation, and sending the second configuration file to the target machine; and
and the deployment module is used for deploying the middleware on the target machine according to the second configuration file.
10. A computer-readable storage medium, comprising a middleware management program, which when executed by a processor, implements the middleware management method according to any one of claims 1 to 5.
CN201910971540.7A 2019-10-12 2019-10-12 Middleware management method, electronic device and storage medium Pending CN110855746A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910971540.7A CN110855746A (en) 2019-10-12 2019-10-12 Middleware management method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910971540.7A CN110855746A (en) 2019-10-12 2019-10-12 Middleware management method, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN110855746A true CN110855746A (en) 2020-02-28

Family

ID=69596373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910971540.7A Pending CN110855746A (en) 2019-10-12 2019-10-12 Middleware management method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN110855746A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111722945A (en) * 2020-06-22 2020-09-29 重庆忽米网络科技有限公司 Industrial Internet application system realized based on middleware and realization method
CN112114833A (en) * 2020-09-21 2020-12-22 中国建设银行股份有限公司 Device and method for determining middleware installation and deployment
CN112130871A (en) * 2020-09-27 2020-12-25 平安医疗健康管理股份有限公司 Method and device for remotely deploying middleware, computer equipment and storage medium
CN112764826A (en) * 2020-12-30 2021-05-07 中国人寿保险股份有限公司上海数据中心 tuxedo resource batch processing method, system, equipment and medium
CN113590169A (en) * 2021-09-30 2021-11-02 武汉四通信息服务有限公司 Application deployment method, application deployment system, and computer-readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007207013A (en) * 2006-02-02 2007-08-16 Toshiba Corp Information processor and information sharing program
EP2063682A1 (en) * 2007-11-21 2009-05-27 Telefonaktiebolaget L M Ericsson (Publ) Technique for platform-to-platform communication
CN102158432A (en) * 2011-03-07 2011-08-17 候万春 Telecom operator network middleware device prior to being embedded to terminal operating system
CN107885539A (en) * 2016-09-28 2018-04-06 平安科技(深圳)有限公司 A kind of middleware management method and server
CN109614110A (en) * 2018-11-19 2019-04-12 中国银行股份有限公司 A kind of method and apparatus that message-oriented middleware concentrates deployment
CN110198231A (en) * 2018-05-08 2019-09-03 腾讯科技(深圳)有限公司 Capacitor network management method and system and middleware for multi-tenant

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007207013A (en) * 2006-02-02 2007-08-16 Toshiba Corp Information processor and information sharing program
EP2063682A1 (en) * 2007-11-21 2009-05-27 Telefonaktiebolaget L M Ericsson (Publ) Technique for platform-to-platform communication
CN102158432A (en) * 2011-03-07 2011-08-17 候万春 Telecom operator network middleware device prior to being embedded to terminal operating system
CN107885539A (en) * 2016-09-28 2018-04-06 平安科技(深圳)有限公司 A kind of middleware management method and server
CN110198231A (en) * 2018-05-08 2019-09-03 腾讯科技(深圳)有限公司 Capacitor network management method and system and middleware for multi-tenant
CN109614110A (en) * 2018-11-19 2019-04-12 中国银行股份有限公司 A kind of method and apparatus that message-oriented middleware concentrates deployment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111722945A (en) * 2020-06-22 2020-09-29 重庆忽米网络科技有限公司 Industrial Internet application system realized based on middleware and realization method
CN112114833A (en) * 2020-09-21 2020-12-22 中国建设银行股份有限公司 Device and method for determining middleware installation and deployment
CN112130871A (en) * 2020-09-27 2020-12-25 平安医疗健康管理股份有限公司 Method and device for remotely deploying middleware, computer equipment and storage medium
CN112764826A (en) * 2020-12-30 2021-05-07 中国人寿保险股份有限公司上海数据中心 tuxedo resource batch processing method, system, equipment and medium
CN113590169A (en) * 2021-09-30 2021-11-02 武汉四通信息服务有限公司 Application deployment method, application deployment system, and computer-readable storage medium

Similar Documents

Publication Publication Date Title
CN110855746A (en) Middleware management method, electronic device and storage medium
EP3170071B1 (en) Self-extending cloud
CN109194538B (en) Testing method, device, server and storage medium based on distributed coordination
CN108494771B (en) Electronic device, firewall opening verification method and storage medium
CN112506617B (en) Mirror image updating method and device for side car containers in Kubernetes cluster
US11323317B1 (en) Software capabilities management from a service provider environment
CN109391673A (en) A kind of method, system and the terminal device of management update file
CN111654399B (en) Networking method, device, equipment and storage medium based on SD-WAN
US11132191B2 (en) Software and firmware updates of computing systems
CN111045854A (en) Method, apparatus and computer program product for managing service containers
CN111683114A (en) Method and device for upgrading equipment program, terminal equipment and storage medium
CN113821226A (en) ONIE system installation method, apparatus, device and medium
WO2016029774A1 (en) Virtualization based application storage method and execution method, device and system
CN107301053B (en) Picture configuration method and device and electronic terminal
US11431795B2 (en) Method, apparatus and storage medium for resource configuration
CN113596151A (en) Plug-in management method and device, and data processing method and device
CN116450165A (en) Method, system, terminal and storage medium for quickly building environment and deploying program
CN111654398B (en) Configuration updating method and device, computer equipment and readable storage medium
CN115758334A (en) Cloud application access method and device, electronic equipment and storage medium
JP5884566B2 (en) Batch processing system, progress confirmation device, progress confirmation method, and program
CN115658221A (en) State detection method, service virtual machine, equipment and medium
CN115048187A (en) Operator-based pvc file importing method, device and storage medium
CN114489711A (en) Terminal upgrading method and device and storage medium
CN111431951B (en) Data processing method, node equipment, system and storage medium
CN113268254A (en) Cluster system installation method and device, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200228