[go: up one dir, main page]

CN113986270B - Distributed application deployment method and device, storage medium and electronic equipment - Google Patents

Distributed application deployment method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113986270B
CN113986270B CN202111358113.5A CN202111358113A CN113986270B CN 113986270 B CN113986270 B CN 113986270B CN 202111358113 A CN202111358113 A CN 202111358113A CN 113986270 B CN113986270 B CN 113986270B
Authority
CN
China
Prior art keywords
deployed
distributed
deployment
target
distributed server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111358113.5A
Other languages
Chinese (zh)
Other versions
CN113986270A (en
Inventor
陈定玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qianhai Feisuan Yunzhi Software Technology Shenzhen Co ltd
Original Assignee
Qianhai Feisuan Yunzhi Software Technology Shenzhen 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 Qianhai Feisuan Yunzhi Software Technology Shenzhen Co ltd filed Critical Qianhai Feisuan Yunzhi Software Technology Shenzhen Co ltd
Priority to CN202111358113.5A priority Critical patent/CN113986270B/en
Publication of CN113986270A publication Critical patent/CN113986270A/en
Application granted granted Critical
Publication of CN113986270B publication Critical patent/CN113986270B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure relates to a distributed application deployment method, a distributed application deployment device, a storage medium and electronic equipment, and solves the technical problem of complex deployment process or failed deployment caused by incompatibility of a distributed server and distributed application to be deployed in the related art. The method comprises the following steps: generating target deployment information according to the deployment requirement of the distributed application to be deployed; judging whether the distributed server to be deployed supports installation of the distributed application to be deployed or not according to the target deployment information, generating a detection result, and displaying the detection result through a WEB interface; under the condition that the detection result is that the distributed server to be deployed does not support installation of the distributed application to be deployed, responding to configuration operation of a user through the WEB interface, and determining a target distributed server; and distributing the installation package of the distributed application to be deployed to the target distributed server to complete the deployment of the distributed application.

Description

Distributed application deployment method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of location-based storage information technology, and in particular, to a distributed application deployment method and apparatus, a storage medium, and an electronic device.
Background
When the distributed application is deployed in the traditional manner, a professional operation and maintenance worker generally packages the deployment package and then uploads the deployment package to each server respectively, decompresses the deployment package and then places the decompression package on each server respectively, and generally modifies and edits various configuration parameters through a VIM tool, and then debugs and applies the deployment package so as to achieve the purpose that the distributed service can work cooperatively.
However, the deployment process is complex or the deployment fails due to the fact that the key operating system or part of system components of the distributed server are incompatible with the distributed application to be deployed, and the number of servers involved in the deployment is large, and the applications to be deployed of each server may be different, so that the manual work is difficult to complete in a short time, and the accuracy of the configuration result cannot be ensured.
Disclosure of Invention
The disclosure aims to provide a distributed application deployment method, a distributed application deployment device, a storage medium and electronic equipment, and solves the technical problems of complex deployment process or failed deployment caused by incompatibility of a distributed server and distributed application to be deployed in the related art.
In order to achieve the above object, in a first aspect, the present disclosure provides a method for deploying an application, where the method includes:
generating target deployment information according to the deployment requirement of the distributed application to be deployed;
judging whether the distributed server to be deployed supports installation of the distributed application to be deployed or not according to the target deployment information, generating a detection result, and displaying the detection result through a WEB interface;
under the condition that the detection result is that the distributed server to be deployed does not support installation of the distributed application to be deployed, responding to configuration operation of a user through the WEB interface, and determining a target distributed server;
and distributing the installation package of the distributed application to be deployed to the target distributed server to complete the deployment of the distributed application.
Optionally, the method further comprises:
generating a program package through preset detection deployment software;
copying the program package to a distributed server to be deployed;
running the program package to install a detection program in the distributed server to be deployed;
the determining, according to the target deployment information, whether the distributed server to be deployed supports installation of the distributed application to be deployed, and generating a detection result includes:
judging whether the distributed server to be deployed supports installation of the distributed application to be deployed or not according to the target deployment information through the detection program, and generating a detection result;
the distributing the installation package of the distributed application to be deployed to the target distributed server includes:
and distributing the installation package of the distributed application to be deployed to the target distributed server through the detection program.
Optionally, the generating the package by the preset detection deployment software includes: and generating a program package by combining a SHELL script and a batch processing script through a preset detection deployment program developed by a JAVA language.
Optionally, the generating target deployment information according to the deployment requirement of the distributed application to be deployed includes:
generating target deployment information according to the configuration requirements of the application to be distributed;
the configuration requirements comprise operating systems, installation environments and supported component versions on which the application to be distributed depends.
Optionally, the determining, by the detection program, whether the distributed server to be deployed supports installation of the distributed application to be deployed according to the target deployment information includes:
responding to the input operation of a user through the WEB interface, and acquiring first configuration information;
determining a distributed server to be deployed according to the first configuration information;
and judging whether the operating system, the installation environment and the supported component version of the distributed server to be deployed all meet the configuration requirement of the distributed application to be deployed through a detection program.
Optionally, the determining a target distributed server in response to the configuration operation of the user through the WEB interface includes:
and responding to the configuration operation of the user through the WEB interface, acquiring second configuration information, and determining a target distributed server according to the second configuration information.
Optionally, the method further includes:
displaying the working log of the target distributed server through the WEB interface;
the work log comprises the running state and the hardware resource consumption state of the target distributed server.
In a second aspect, the present disclosure provides a distributed application deployment apparatus, the apparatus comprising:
the generating module is configured to generate target deployment information according to deployment requirements of the distributed application to be deployed;
the judging module is configured to judge whether the distributed server to be deployed supports installation of the distributed application to be deployed according to the target deployment information, generate a detection result and display the detection result through a WEB interface;
the execution module is configured to respond to the configuration operation of a user through the WEB interface and determine a target distributed server;
and the deployment module is configured to distribute the installation package of the distributed application to be deployed to the target distributed server to complete the deployment of the distributed application.
In a third aspect, the present disclosure provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the distributed application deployment method described above.
In a fourth aspect, the present disclosure provides an electronic device comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the distributed application deployment method described above.
According to the technical scheme, the distributed server to be deployed which does not support installation of the distributed application to be deployed is determined through the target deployment information, the distributed server to be deployed is debugged in response to configuration operation of a user through a WEB interface, the target distributed server is determined, the installation package of the distributed application to be deployed is sent to the target distributed server, and deployment of the distributed application is achieved. The complexity of the deployment process or the failure of the deployment caused by the incompatibility of the distributed applications to be deployed by the distributed server is avoided.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure, but do not constitute a limitation of the disclosure. In the drawings:
FIG. 1 is a flowchart illustrating a method of distributed application deployment in accordance with an exemplary embodiment;
FIG. 2 is another flow chart diagram illustrating a method of distributed application deployment in accordance with an exemplary embodiment;
FIG. 3 is a block diagram illustrating a distributed application deployment apparatus in accordance with an exemplary embodiment;
FIG. 4 is a block diagram of an electronic device shown in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure.
It should be noted that in the present disclosure, the terms "S101", "S102" and the like in the description and claims and the drawings are used for distinguishing the steps, and are not necessarily to be construed as performing the method steps in a specific order or sequence.
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
As the background art shows, since an operating system, an operating environment, or a part of system components of a distributed server are incompatible with a distributed application to be deployed, various abnormal problems occur in the deployment process, which results in a deployment failure, and structural problem analysis of operation and maintenance personnel requiring a lot of professional experience with respect to the various abnormal problems, and the specific reasons for the problems are located through a SHELL command or a script, so that the abnormal problems are solved, the whole process is time-consuming, and it cannot be guaranteed that all the abnormal problems can be solved.
In the process of distributed deployment, because the number of related servers is large, and applications to be deployed on different servers may be different, it is difficult to complete the deployment of distributed applications in a short time only by manpower, and there is also a failure in deployment caused by a certain configuration error of a server.
In view of this, the present disclosure provides a distributed application deployment method, apparatus, storage medium, and electronic device, which do not need to be deployed by manpower, shorten deployment time, and avoid complex deployment process or deployment failure caused by incompatibility of distributed applications that need to be deployed by a distributed server.
Fig. 1 is a flow chart illustrating a distributed application deployment method according to an example embodiment, with reference to fig. 1, the method comprising:
in step S101, target deployment information is generated according to a deployment requirement of the distributed application to be deployed.
In step S102, it is determined whether the distributed server to be deployed supports installation of the distributed application to be deployed according to the target deployment information, a detection result is generated, and the detection result is displayed through a WEB interface.
In step S103, in a case that the detection result indicates that the distributed server to be deployed does not support installation of the distributed application to be deployed, a target distributed server is determined in response to a configuration operation of a user through the WEB interface.
In step S104, the installation package of the distributed application to be deployed is distributed to the target distributed server, and deployment of the distributed application is completed.
Furthermore, a WEB interface is started through the browser, so that a user can conveniently operate through the WEB interface and obtain a test result.
The method comprises the steps of determining a distributed server to be deployed which does not support installation of the distributed application to be deployed through target deployment information, debugging the distributed server to be deployed in response to configuration operation of a user through a WEB interface, determining the target distributed server, and sending an installation package of the distributed application to be deployed to the target distributed server to achieve deployment of the distributed application. The deployment is not needed through manpower, the deployment time is shortened, and the complexity of the deployment process or the failure of the deployment caused by the incompatibility of distributed applications needing to be deployed by the distributed server is avoided.
The following detailed description illustrates the above steps in order to enable those skilled in the art to better understand the distributed application deployment method provided by the present disclosure.
In one embodiment, the method further comprises:
generating a program package through preset detection deployment software;
copying the program package to a distributed server to be deployed;
running the program package to install a detection program in the distributed server to be deployed;
judging whether the distributed server to be deployed supports installation of the distributed application to be deployed according to the target deployment information, and generating a detection result, wherein the detection result comprises the following steps:
judging whether the distributed server to be deployed supports installation of the distributed application to be deployed or not according to the target deployment information through the detection program, and generating a detection result;
distributing the installation package of the distributed application to be deployed to the target distributed server, wherein the installation package comprises:
and distributing the installation package of the distributed application to be deployed to the target distributed server through the detection program.
The preset detection deployment software is an environment detection and distributed deployment program developed through a JAVA language, the environment detection and distributed deployment program is an existing program, and the description of the program is omitted in the present disclosure.
Further, the program package is copied to any node in the distributed server to be deployed, so that the detection program is installed on the distributed server to be deployed.
According to the method and the device, the detection program is installed in the distributed server to be deployed, and the compatibility of the distributed server to be deployed and the distributed application to be deployed is judged through the detection program, so that the complex deployment process or the failure of deployment caused by the incompatibility of the distributed server and the distributed application to be deployed are avoided.
In one embodiment, the generating the package by the pre-set detection deployment software includes: and generating a program package by combining a SHELL script and a batch processing script through a preset detection deployment program developed by a JAVA language.
Further, an environment detection + distributed deployment program developed by JAVA language is combined with a SHELL (SHELL) script and a BAT (Batch) script to generate a package.
In an embodiment, generating the target deployment information according to the deployment requirement of the distributed application to be deployed includes:
generating target deployment information according to the configuration requirements of the application to be distributed;
the configuration requirements include the operating system, installation environment, supported component version on which the application to be distributed depends.
Further, different applications have different configuration requirements, and the configuration requirements may be preset according to the applications to be distributed, which is not specifically limited by the present disclosure.
According to the method and the device, the target deployment information is generated according to the configuration requirement of the distributed application to be deployed, so that whether the distributed server to be deployed is compatible with the distributed application to be deployed or not is judged according to the target deployment information subsequently, the complex deployment process or the failed deployment caused by the incompatibility of the distributed server and the distributed application to be deployed is avoided, and the deployment success rate is improved.
In an embodiment, determining, by the detection program, whether the distributed server to be deployed supports installation of the distributed application to be deployed according to the target deployment information includes:
responding to the input operation of a user through the WEB interface, and acquiring first configuration information;
determining a distributed server to be deployed according to the first configuration information;
and judging whether the operating system, the installation environment and the supported component version of the distributed server to be deployed all meet the configuration requirement of the distributed application to be deployed through a detection program.
Further, the first configuration information includes IP information, hardware information, user account information, a login password, and the like of the distributed server to be deployed.
For example, in response to the IP information, the user account information, and the login password input by the user through the WEB interface, the distributed server to be deployed is determined, and the IP information, the user account information, and the login password of the distributed server to be deployed are respectively determined by the detection program, so as to determine whether the distributed server to be deployed meets the configuration requirement of the distributed application to be deployed.
According to the method and the device, the distributed servers to be deployed are determined according to the first configuration information input by the user through the WEB interface, so that whether the distributed servers to be deployed are compatible with the distributed applications or not is judged, the process deployment can be realized, the configuration of each distributed server can be quickly and accurately judged, the deployment efficiency is improved, and the deployment failure caused by the incompatibility of the distributed servers and the distributed applications is avoided.
In one embodiment, the determining the target distributed server in response to the configuration operation of the user through the WEB interface includes:
and responding to the configuration operation of the user through the WEB interface, acquiring second configuration information, and determining the target distributed server according to the second configuration information.
Further, under the condition that the distributed server to be deployed determined according to the first configuration information does not meet the configuration requirement of the distributed application to be deployed, responding to the configuration operation of the user through the WEB interface, obtaining second configuration information, and determining a target distributed server according to the second configuration information, wherein the second configuration information comprises an operating system, an installation environment and a supported component version of the target distributed server.
According to the method and the device, under the condition that the distributed server to be deployed determined according to the first configuration information does not meet the configuration requirement of the distributed application to be deployed, the user can carry out configuration operation through the WEB interface, dynamically modify the configuration information, avoid failure in deployment caused by incompatibility of the distributed server to be deployed and the distributed application to be deployed, and improve the deployment efficiency of the distributed application deployment.
In one embodiment, the method further comprises:
displaying the working log of the target distributed server through the WEB interface;
wherein the work log comprises the running state and the hardware resource consumption state of the target distributed server.
According to the method and the device, the operation state and the hardware resource consumption state of the deployed distributed server are displayed through the WEB interface, so that a user can visually manage the deployed distributed server application through the WEB interface, can quickly locate and find the abnormity, timely acquire the abnormal information when the distributed server has the abnormity problem, solve the abnormity problem according to the abnormal information, and reduce the technical requirements of non-professional operation and maintenance personnel.
Fig. 2 is another flow chart illustrating a distributed application deployment method according to an example embodiment, with reference to fig. 2, the method comprising:
in step S201, target deployment information is generated according to the deployment requirement of the distributed application to be deployed.
The deployment requirement of the distributed application to be deployed comprises an operating system, an installation environment, a supported component version and the like which are depended by the distributed application.
In step S202, the package is generated by presetting the detection deployment software.
The preset detection deployment software can be an environment detection and distributed deployment program developed through a JAVA language, and the environment detection and distributed deployment program is an existing program.
In step S203, the program is copied to the distributed server to be deployed, and the package is run to install the detection program in the distributed server to be deployed.
Further, the program package is copied to any node in the distributed server to be deployed, so that the detection program is installed on the distributed server to be deployed.
In step S204, it is determined whether the distributed server to be deployed supports installation of the distributed application to be deployed according to the target deployment information through the detection program.
Further, responding to the input operation of a user through a WEB interface, and acquiring first configuration information; determining a distributed server to be deployed according to the first configuration information; and judging whether the operating system, the installation environment and the supported component version of the distributed server to be deployed all meet the configuration requirement of the distributed application to be deployed through a detection program.
In step S205, when the to-be-deployed distributed server supports installation of the to-be-deployed distributed application, a detection result is generated, and the detection result is displayed through a WEB interface.
In step S206, the to-be-deployed distributed server is taken as a target distributed server.
In step S207, when the to-be-deployed distributed server supports installation of the to-be-deployed distributed application, a detection result is generated, and the detection result is displayed through a WEB interface.
In step S208, a target distributed server is determined in response to a configuration operation of the user via the WEB interface.
Further, responding to the configuration operation of the user through the WEB interface, acquiring second configuration information, and determining the target distributed server according to the second configuration information, wherein the second configuration information comprises an operating system, an installation environment and a supported component version of the target distributed server.
In step S209, the installation package of the application to be distributed is distributed to the target distributed server, and deployment of the distributed application is completed.
In step S210, the work log of the target distributed server is displayed through the WEB interface.
The work log comprises the running state and the hardware resource consumption state of the target distributed server.
The method and the device determine the distributed server to be deployed which does not support installation of the distributed application to be deployed through the target deployment information, debug the distributed server to be deployed in response to configuration operation of a user through a WEB interface, determine the target distributed server, and send an installation package of the distributed application to be deployed to the target distributed server to achieve deployment of the distributed application. The deployment is not needed through manpower, the deployment time is shortened, and the complexity of the deployment process or the failure of the deployment caused by the incompatibility of the distributed server and the distributed application to be deployed is avoided. The running state and the hardware resource consumption state of the target distributed server are displayed through the WEB interface, so that a user can visually manage deployed distributed server applications through the WEB interface, can quickly locate and find abnormality, timely acquire abnormal information when the distributed server has abnormal problems, solve the abnormal problems according to the abnormal information, and reduce the technical requirements of non-professional operation and maintenance personnel.
Based on the same inventive concept, the present disclosure further provides a distributed application deployment apparatus, referring to fig. 3, the apparatus 1300 includes a generation module 1301, a determination module 1302, an execution module 1303, and a deployment module 1304.
The generating module 1301 is configured to generate target deployment information according to a deployment requirement of the distributed application to be deployed.
The determining module 1302 is configured to determine whether the distributed server to be deployed supports installation of the distributed application to be deployed according to the target deployment information, generate a detection result, and display the detection result through a WEB interface.
The execution module 1303 is configured to determine a target distributed server in response to a configuration operation of a user through the WEB interface.
The deployment module 1304 is configured to distribute the installation package of the distributed application to be deployed to the target distributed server, and complete the deployment of the distributed application.
The method and the device determine the distributed server to be deployed which does not support installation of the distributed application to be deployed through the target deployment information, debug the distributed server to be deployed in response to configuration operation of a user through a WEB interface, determine the target distributed server, and send an installation package of the distributed application to be deployed to the target distributed server to achieve deployment of the distributed application. The deployment is not needed through manpower, the deployment time is shortened, and the complex deployment process or the failure of deployment caused by incompatibility of distributed applications needing to be deployed by a distributed server are avoided.
Further, the apparatus 1300 further includes an installation module configured to generate the package by presetting the detection deployment software;
copying the program package to a distributed server to be deployed;
running the program package to install a detection program in the distributed server to be deployed;
the determining module 1302 is configured to determine, by the detecting program according to the target deployment information, whether the distributed server to be deployed supports installation of the distributed application to be deployed, and generate a detection result;
the executing module 1303 is configured to distribute the installation package of the to-be-deployed distributed application to the target distributed server through the detecting program.
Further, the installation module is configured to generate a package by combining the SHELL script and the batch script through a preset detection deployment program developed by JAVA language.
Further, the generating module 1301 is configured to generate target deployment information according to a configuration requirement of the application to be distributed;
the configuration requirements include operating system, installation environment, supported component version on which the application to be distributed depends.
Further, the determining module 1302 is configured to obtain the first configuration information in response to an input operation of the user through the WEB interface;
determining a distributed server to be deployed according to the first configuration information;
and judging whether the operating system, the installation environment and the supported component version of the distributed server to be deployed all meet the configuration requirement of the distributed application to be deployed through a detection program.
Further, the executing module 1303 is configured to, in response to a configuration operation of the user through the WEB interface, obtain second configuration information, and determine a target distributed server according to the second configuration information.
Further, the apparatus 1300 further comprises a presentation module configured to present the work log of the target distributed server through the WEB interface;
wherein the work log comprises the running state and the hardware resource consumption state of the target distributed server.
Moreover, for convenience and simplicity of description, the embodiments described in the specification all belong to preferred embodiments, and the related parts are not necessarily essential to the present invention, for example, the generating module and the determining module may be independent apparatuses or may be the same apparatus in specific implementation, and the disclosure does not limit the present invention.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
Based on the same inventive concept, the present disclosure also provides a computer-readable storage medium having stored thereon computer program instructions, which, when executed by a processor, implement the steps of the distributed application deployment method provided by the present disclosure.
Specifically, the computer-readable storage medium may be a 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, a server, a public cloud server, and the like.
The steps of the method for performing tasks when the computer program stored on the computer readable storage medium is executed in the above embodiments are described in detail in the embodiments related to the method, and will not be described in detail herein.
Based on the same inventive concept, the present disclosure also provides an electronic device, including:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the distributed application deployment method described above.
The method and the device determine the distributed server to be deployed which does not support installation of the distributed application to be deployed through the target deployment information, debug the distributed server to be deployed in response to configuration operation of a user through a WEB interface, determine the target distributed server, and send an installation package of the distributed application to be deployed to the target distributed server to achieve deployment of the distributed application. The deployment is not needed through manpower, the deployment time is shortened, and the complex deployment process or the failure of deployment caused by incompatibility of distributed applications needing to be deployed by a distributed server are avoided.
Fig. 4 is a block diagram illustrating an electronic device 700 according to an example embodiment. As shown in fig. 4, the electronic device 700 may include: a processor 701 and a memory 702. The electronic device 700 may also include one or more of a multimedia component 703, an input/output (I/O) interface 704, and a communication component 705.
The processor 701 is configured to control the overall operation of the electronic device 700, so as to complete all or part of the steps in the distributed application deployment method. The memory 702 is configured to store various types of data to support operations at the electronic device 700, such as instructions for any application or method operating on the electronic device 700, and application-related data, such as deployment requirements, target deployment information, detection results, first configuration information, second configuration information, and so forth, for a distributed application to be deployed. The Memory 702 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk. The multimedia components 703 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 702 or transmitted through the communication component 705. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 704 provides an interface between the processor 701 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, which is not limited herein. The corresponding communication component 705 may thus include: Wi-Fi module, Bluetooth module, NFC module, etc.
In an exemplary embodiment, the electronic Device 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the distributed Application deployment method described above.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the distributed application deployment method described above when executed by the programmable apparatus.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure. Example (b)
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, various possible combinations will not be separately described in this disclosure.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (9)

1. A distributed application deployment method, the method comprising:
generating target deployment information according to the deployment requirement of the distributed application to be deployed;
judging whether the distributed server to be deployed supports installation of the distributed application to be deployed or not according to the target deployment information, generating a detection result, and displaying the detection result through a WEB interface;
under the condition that the detection result is that the distributed server to be deployed does not support installation of the distributed application to be deployed, responding to configuration operation of a user through the WEB interface, and determining a target distributed server;
distributing the installation package of the distributed application to be deployed to the target distributed server to complete the deployment of the distributed application;
the method further comprises the following steps:
generating a program package through preset detection deployment software;
copying the program package to a distributed server to be deployed;
running the program package to install a detection program in the distributed server to be deployed;
the determining, according to the target deployment information, whether the distributed server to be deployed supports installation of the distributed application to be deployed, and generating a detection result includes:
judging whether the distributed server to be deployed supports installation of the distributed application to be deployed or not according to the target deployment information through the detection program, and generating a detection result;
the distributing the installation package of the distributed application to be deployed to the target distributed server includes:
and distributing the installation package of the distributed application to be deployed to the target distributed server through the detection program.
2. The method of claim 1, wherein the deploying software generation package through preset detection comprises: and generating a program package by combining a SHELL script and a batch processing script through a preset detection deployment program developed by a JAVA language.
3. The method according to claim 1, wherein the generating target deployment information according to the deployment requirement of the distributed application to be deployed comprises:
generating target deployment information according to the configuration requirements of the application to be distributed;
the configuration requirements include operating systems, installation environments, and supported component versions on which the application to be distributed depends.
4. The method according to claim 3, wherein the determining, by the detection program, whether the distributed server to be deployed supports installation of the distributed application to be deployed according to the target deployment information includes:
responding to the input operation of a user through the WEB interface, and acquiring first configuration information;
determining a distributed server to be deployed according to the first configuration information;
and judging whether the operating system, the installation environment and the supported component version of the distributed server to be deployed all meet the configuration requirement of the distributed application to be deployed through a detection program.
5. The method of claim 1, wherein the determining a target distributed server in response to a configuration operation by a user via the WEB interface comprises:
and responding to the configuration operation of the user through the WEB interface, acquiring second configuration information, and determining a target distributed server according to the second configuration information.
6. The method of claim 1, further comprising:
displaying the working log of the target distributed server through the WEB interface;
the work log comprises the running state and the hardware resource consumption state of the target distributed server.
7. A distributed application deployment apparatus, the apparatus comprising:
the generating module is configured to generate target deployment information according to deployment requirements of the distributed application to be deployed;
the judging module is configured to judge whether the distributed server to be deployed supports installation of the distributed application to be deployed according to the target deployment information, generate a detection result, and display the detection result through a WEB interface;
the execution module is configured to respond to the configuration operation of a user through the WEB interface and determine a target distributed server;
the deployment module is configured to distribute the installation package of the distributed application to be deployed to the target distributed server to complete the deployment of the distributed application;
the apparatus further comprises an installation module configured to generate a package by the preset detection deployment software;
copying the program package to a distributed server to be deployed;
running the program package to install a detection program in the distributed server to be deployed;
the judging module is configured to judge whether the distributed server to be deployed supports installation of the distributed application to be deployed according to the target deployment information through the detection program, and generate a detection result;
the execution module is configured to distribute the installation package of the distributed application to be deployed to the target distributed server through the detection program.
8. A non-transitory computer-readable storage medium, on which a computer program is stored, which program, when executed by a processor, performs the steps of the method of any one of claims 1 to 6.
9. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 6.
CN202111358113.5A 2021-11-16 2021-11-16 Distributed application deployment method and device, storage medium and electronic equipment Active CN113986270B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111358113.5A CN113986270B (en) 2021-11-16 2021-11-16 Distributed application deployment method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111358113.5A CN113986270B (en) 2021-11-16 2021-11-16 Distributed application deployment method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113986270A CN113986270A (en) 2022-01-28
CN113986270B true CN113986270B (en) 2022-09-23

Family

ID=79748921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111358113.5A Active CN113986270B (en) 2021-11-16 2021-11-16 Distributed application deployment method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113986270B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114610378B (en) * 2022-03-11 2022-11-25 山东福生佳信科技股份有限公司 Server environment configuration method, system, storage medium and equipment
CN114780397B (en) * 2022-04-13 2025-08-15 上海联影智元医疗科技有限公司 Software running environment detection method, device, computer equipment and storage medium
CN115514666A (en) * 2022-09-26 2022-12-23 郑州小鸟信息科技有限公司 Visual deployment method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108509203A (en) * 2018-03-13 2018-09-07 腾讯科技(深圳)有限公司 Across the cloud dispositions method of software, computer equipment and storage medium
CN111221564A (en) * 2018-11-26 2020-06-02 中国石油天然气股份有限公司 WEB application configuration deployment method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7356590B2 (en) * 2005-07-12 2008-04-08 Visible Measures Corp. Distributed capture and aggregation of dynamic application usage information
US8046692B2 (en) * 2007-10-26 2011-10-25 Microsoft Corporation User interface mapping modules to deployment targets
CN110362318B (en) * 2019-07-12 2025-05-27 北京百度网讯科技有限公司 Application deployment method, device, equipment and storage medium
CN111857749A (en) * 2020-07-07 2020-10-30 合肥森亿智能科技有限公司 Method, system and server for deploying application program by one key

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108509203A (en) * 2018-03-13 2018-09-07 腾讯科技(深圳)有限公司 Across the cloud dispositions method of software, computer equipment and storage medium
CN111221564A (en) * 2018-11-26 2020-06-02 中国石油天然气股份有限公司 WEB application configuration deployment method and device

Also Published As

Publication number Publication date
CN113986270A (en) 2022-01-28

Similar Documents

Publication Publication Date Title
CN111026645B (en) User interface automatic test method and device, storage medium and electronic equipment
CN113986270B (en) Distributed application deployment method and device, storage medium and electronic equipment
CN112416318B (en) Microservice development method, device, storage medium and electronic device
CN106415480B (en) High-speed application for installation on a mobile device to allow remote configuration of the mobile device
CN105302722B (en) CTS automatic testing method and device
CN113485918B (en) Test method, test device, electronic equipment and storage medium
CN110134612B (en) UI test data generation method, apparatus, equipment, and readable storage medium
US20170249126A1 (en) Easy storm topology design and execution
CN114168471A (en) Test method, device, electronic equipment and storage medium
CN111770174A (en) A cloud platform deployment method, apparatus, device and readable storage medium
CN115048313A (en) Automatic testing method and device, computer readable storage medium and electronic equipment
JP6891780B2 (en) Software quality judgment device, software quality judgment method, and software quality judgment program
CN105009006A (en) Programmable controller, programmable controller system and method for generating execution error information
CN113326184B (en) Interface testing method and device, storage medium and electronic equipment
CN113377468A (en) Script execution method and device, electronic equipment and storage medium
CN112631931B (en) Version testing method and device, storage medium and electronic equipment
CN115080431A (en) Code testing method, device, storage medium and equipment
US10216619B2 (en) System and method for test automation using a decentralized self-contained test environment platform
CN114840190A (en) Code generation method and device, computer equipment and storage medium
CN109446105A (en) Web application test method, device, readable medium and electronic equipment
CN113709243A (en) Equipment remote control method and device, electronic equipment and storage medium
CN114647565A (en) Android project testing method, storage medium and electronic device
US9298428B2 (en) Graphical user interface editor that displays live data during editing
CN112306723A (en) Operation information acquisition method and device applied to small program
CN106528402B (en) Method and system for testing terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant