CN110597520A - Server, deployment method thereof and computer-readable storage medium - Google Patents

Server, deployment method thereof and computer-readable storage medium Download PDF

Info

Publication number
CN110597520A
CN110597520A CN201910798795.8A CN201910798795A CN110597520A CN 110597520 A CN110597520 A CN 110597520A CN 201910798795 A CN201910798795 A CN 201910798795A CN 110597520 A CN110597520 A CN 110597520A
Authority
CN
China
Prior art keywords
deployment
server
file
application server
instruction
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
CN201910798795.8A
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.)
SHENZHEN STOCK EXCHANGE
Original Assignee
SHENZHEN STOCK EXCHANGE
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 SHENZHEN STOCK EXCHANGE filed Critical SHENZHEN STOCK EXCHANGE
Priority to CN201910798795.8A priority Critical patent/CN110597520A/en
Publication of CN110597520A publication Critical patent/CN110597520A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a server deployment method, which is applied to a deployment server and comprises the following steps: when a deployment instruction triggered by a user is received, displaying configuration information; when a selection instruction triggered by a user based on the configuration information is detected, acquiring a deployment file associated with the configuration information corresponding to the selection instruction; and sending prompt information to an application server associated with the configuration information corresponding to the selection instruction so that the application server acquires the deployment file and deploys according to the deployment file. The invention also discloses a server and a computer readable storage medium, the deployment configuration is displayed for the user to configure, the deployment file and the application server are determined according to the user configuration, and the deployment is carried out according to the deployment file and the application server, so that the purpose of automatically deploying the appointed server is realized, the manual deployment of the user is avoided, the server deployment is simpler, and the deployment efficiency of the server is improved.

Description

Server, deployment method thereof and computer-readable storage medium
Technical Field
The present invention relates to the field of server technologies, and in particular, to a server, a deployment method thereof, and a computer-readable storage medium.
Background
At present, deployment of servers is mainly realized by manually writing a large number of deployment scripts by a user and manually installing software programs in each server, however, a plurality of servers to be deployed usually exist, and if manually writing deployment scripts and manually deploying servers one by one, a large amount of time is spent, so that deployment efficiency of the servers is low.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a server, a deployment method thereof and a computer readable storage medium, aiming at displaying deployment configuration for a user to configure, determining a deployment file and an application server according to the user configuration, and deploying according to the deployment file and the application server, thereby realizing the purpose of automatically deploying a specified server, avoiding manual deployment of the user, simplifying the deployment of the server and improving the deployment efficiency of the server.
In order to achieve the above object, the present invention provides a server deployment method, which is applied to a deployment server, and the server deployment method includes the following steps:
when a deployment instruction triggered by a user is received, displaying configuration information;
when a selection instruction triggered by a user based on the configuration information is detected, acquiring a deployment file associated with the configuration information corresponding to the selection instruction;
and sending prompt information to an application server associated with the configuration information corresponding to the selection instruction so that the application server acquires the deployment file and deploys according to the deployment file.
Optionally, after the step of acquiring the deployment file associated with the configuration information corresponding to the selection instruction when the selection instruction triggered by the user based on the configuration information is detected, the method further includes:
displaying deployment sequence information in the deployment file;
and when a modification instruction triggered by a user based on the deployment sequence information is received, modifying the deployment sequence information according to the modification instruction, wherein the application server deploys the deployment file according to the modified deployment sequence information.
Optionally, after the step of sending the prompt information to the application server associated with the configuration information corresponding to the selection instruction, the server deployment method further includes:
receiving identity information fed back by the application server, wherein the identity information is prestored in the application server;
acquiring the authority of the application server according to the identity information;
and when the authority of the application server meets a preset condition, sending a reading instruction to the application server, wherein the application server reads the deployment file in the deployment server when receiving the reading instruction.
Optionally, after the step of sending the deployment file to the application server associated with the configuration information corresponding to the selection instruction, so that the application server deploys according to the deployment file, the method further includes:
when the deployment log information fed back by the application server is detected, outputting the deployment log information;
when receiving a check instruction triggered by the deployment log information by a user, sending the check instruction to the application server, wherein when receiving the check instruction, the application server compares the deployment file with a file generated by deployment according to the deployment file, and sends a comparison result to the deployment server;
and when a comparison result fed back by the application server based on the inspection instruction is received, outputting an inspection result according to the comparison result.
In addition, in order to achieve the above object, the present invention further provides a server deployment method, which is applied to an application server, and the server deployment method includes the following steps:
after receiving prompt information sent by a deployment server, acquiring a deployment file in the deployment server, wherein when the deployment server detects a selection instruction triggered by a user based on configuration information, the deployment file associated with the configuration information corresponding to the selection instruction is acquired, and the prompt information is sent to an application server associated with the configuration information corresponding to the selection instruction;
and deploying according to the deployment file.
Optionally, the step of acquiring the deployment file in the deployment server after receiving the prompt message sent by the deployment server includes:
after receiving the prompt message, acquiring prestored identity information;
feeding the identity information back to the deployment server, wherein the deployment server acquires the authority of the application server according to the identity information and sends a reading instruction to the application server when the authority of the application server meets a preset condition;
and when the reading instruction is received, reading the deployment file in the deployment server.
Optionally, after the step of deploying according to the deployment file, the method further includes:
generating deployment log information;
feeding the deployment log information back to the deployment server, wherein the deployment server outputs the deployment log information when detecting the deployment log information, and sends a check instruction to the application server when receiving the check instruction triggered by a user through the deployment log information;
when the check instruction is received, comparing the deployment file with a file generated by deployment according to the deployment file to generate a comparison result;
and sending the comparison result to the deployment server, wherein the deployment server outputs a check result according to the comparison result when receiving the comparison result.
Optionally, the deployment method of the server further includes:
after deployment is carried out according to the deployment file, the deployment file is saved;
when a redeployment instruction sent by the deployment server is received, acquiring a deployment file corresponding to the redeployment instruction, wherein the redeployment instruction is sent to the application server by the deployment server when the redeployment instruction triggered by a user is received;
and redeploying according to the deployment file corresponding to the redeployment instruction.
In addition, to achieve the above object, the present invention also provides a server, including: a memory, a processor and a deployment program of a server stored on the memory and operable on the processor, the deployment program of the server implementing the steps of the deployment method of the server as described in any one of the above when executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, having a deployment program of a server stored thereon, which, when executed by a processor, implements the steps of the deployment method of the server according to any one of the above.
According to the server, the deployment method and the computer-readable storage medium provided by the embodiment of the invention, when a deployment instruction triggered by a user is received, the configuration information is displayed, when a selection instruction triggered by the user based on the configuration information is detected, a deployment file associated with the configuration information corresponding to the selection instruction is acquired, and prompt information is sent to an application server associated with the configuration information corresponding to the selection instruction, so that the application server acquires the deployment file and deploys according to the deployment file. According to the method and the device, the deployment configuration is displayed for the user to configure, the deployment file and the application server are determined according to the user configuration, and the deployment is carried out according to the deployment file and the application server, so that the purpose of automatically deploying the appointed server is achieved, manual deployment of the user is avoided, the server deployment is simpler, and the deployment efficiency of the server is improved.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an embodiment of a server deployment method according to the present invention;
FIG. 3 is a flowchart illustrating a server deployment method according to another embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for deploying a server according to still another embodiment of the present invention;
fig. 5 is a detailed flowchart of step S40 in fig. 4.
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
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows:
when a deployment instruction triggered by a user is received, displaying configuration information;
when a selection instruction triggered by a user based on the configuration information is detected, acquiring a deployment file associated with the configuration information corresponding to the selection instruction;
and sending prompt information to an application server associated with the configuration information corresponding to the selection instruction so that the application server acquires the deployment file and deploys according to the deployment file.
In the prior art, the deployment of the servers is mainly realized by manually writing a large number of deployment scripts by a user and manually installing software programs in each server side, however, a plurality of servers to be deployed usually exist, and if the deployment scripts are manually written and manually deployed one by one, a large amount of time is spent, so that the deployment efficiency of the servers is low.
The invention provides a solution, which is characterized in that the deployment configuration is displayed for the user to configure, the deployment file and the application server are determined according to the user configuration, and the deployment is carried out according to the deployment file and the application server, so that the purpose of automatically deploying the appointed server is realized, the manual deployment of the user is avoided, the server deployment is simpler, and the deployment efficiency of the server is improved.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal in the embodiment of the invention is a server.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer-readable storage medium, may include therein a deployment program of an operating system, a network communication module, a user interface module, and a server.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke the deployment program of the server stored in the memory 1005 and perform the following operations:
when a deployment instruction triggered by a user is received, displaying configuration information;
when a selection instruction triggered by a user based on the configuration information is detected, acquiring a deployment file associated with the configuration information corresponding to the selection instruction;
and sending prompt information to an application server associated with the configuration information corresponding to the selection instruction so that the application server acquires the deployment file and deploys according to the deployment file.
Further, the processor 1001 may call the deployment program of the server stored in the memory 1005, and further perform the following operations:
displaying deployment sequence information in the deployment file;
and when a modification instruction triggered by a user based on the deployment sequence information is received, modifying the deployment sequence information according to the modification instruction, wherein the application server deploys the deployment file according to the modified deployment sequence information.
Further, the processor 1001 may call the deployment program of the server stored in the memory 1005, and further perform the following operations:
receiving identity information fed back by the application server, wherein the identity information is prestored in the application server;
acquiring the authority of the application server according to the identity information;
and when the authority of the application server meets a preset condition, sending a reading instruction to the application server, wherein the application server reads the deployment file in the deployment server when receiving the reading instruction.
Further, the processor 1001 may call the deployment program of the server stored in the memory 1005, and further perform the following operations:
when the deployment log information fed back by the application server is detected, outputting the deployment log information;
when receiving a check instruction triggered by the deployment log information by a user, sending the check instruction to the application server, wherein when receiving the check instruction, the application server compares the deployment file with a file generated by deployment according to the deployment file, and sends a comparison result to the deployment server;
and when a comparison result fed back by the application server based on the inspection instruction is received, outputting an inspection result according to the comparison result.
The processor 1001 may be configured to invoke a deployment program for a server stored in the memory 1005, and may further perform the following operations:
after receiving prompt information sent by a deployment server, acquiring a deployment file in the deployment server, wherein when the deployment server detects a selection instruction triggered by a user based on configuration information, the deployment file associated with the configuration information corresponding to the selection instruction is acquired, and the prompt information is sent to an application server associated with the configuration information corresponding to the selection instruction;
and deploying according to the deployment file.
Further, the processor 1001 may call the deployment program of the server stored in the memory 1005, and further perform the following operations:
after receiving the prompt message, acquiring prestored identity information;
feeding the identity information back to the deployment server, wherein the deployment server acquires the authority of the application server according to the identity information and sends a reading instruction to the application server when the authority of the application server meets a preset condition;
and when the reading instruction is received, reading the deployment file in the deployment server.
Further, the processor 1001 may call the deployment program of the server stored in the memory 1005, and further perform the following operations:
generating deployment log information;
feeding the deployment log information back to the deployment server, wherein the deployment server outputs the deployment log information when detecting the deployment log information, and sends a check instruction to the application server when receiving the check instruction triggered by a user through the deployment log information;
when the check instruction is received, comparing the deployment file with a file generated by deployment according to the deployment file to generate a comparison result;
and sending the comparison result to the deployment server, wherein the deployment server outputs a check result according to the comparison result when receiving the comparison result.
Further, the processor 1001 may call the deployment program of the server stored in the memory 1005, and further perform the following operations:
after deployment is carried out according to the deployment file, the deployment file is saved;
when a redeployment instruction sent by the deployment server is received, acquiring a deployment file corresponding to the redeployment instruction, wherein the redeployment instruction is sent to the application server by the deployment server when the redeployment instruction triggered by a user is received;
and redeploying according to the deployment file corresponding to the redeployment instruction.
Referring to fig. 2, in an embodiment, the deployment method of the server is applied to a deployment server, and includes the following steps:
step S10, when receiving a deployment instruction triggered by a user, displaying configuration information;
in this embodiment, the deployment server is configured to receive an instruction triggered by a user, and send information to the application server according to the instruction, so as to implement deployment of the server. The user may trigger the instruction at the deployment server or remotely access the deployment server via a client or browser web page to trigger the instruction. Specifically, the deployment server may be pre-installed with a deployment tool and configured to execute corresponding deployment steps according to the instructions. And when receiving a deployment instruction triggered by a user, the deployment server displays configuration information corresponding to a deployment process. Firstly, when a deployment instruction is received by a deployment server, information of a large number of stored files to be deployed is acquired from a deployment server locally or other file servers communicated with the deployment server, and a corresponding file list to be deployed is generated according to the acquired information, so that the displayed configuration information can include the file list to be deployed. The file list to be deployed can be sorted according to the creation time or the modification time of the files to be deployed, and the files to be deployed between specified dates can be displayed. Of course, the configuration information may further include a list corresponding to a plurality of application servers to be deployed, so that the deployment server may send the specified deployment file to the specified application server for deployment. The list corresponding to the application server may also be sorted according to the addition time of the application server.
Step S20, when a selection instruction triggered by the user based on the configuration information is detected, acquiring a deployment file associated with the configuration information corresponding to the selection instruction;
in this embodiment, when a selection instruction triggered by the user based on the configuration information is received, the file that the user wants to deploy may be determined. At this time, the deployment server may be controlled to obtain the deployment file associated with the configuration information corresponding to the selection instruction from the deployment server locally or other file servers communicated with the deployment server, and temporarily store the deployment file in a certain storage area in the deployment server, so that the user modifies the deployment file according to the deployment requirement. At the same time, a plurality of projects available for deployment usually exist, and the deployment file corresponding to each project usually exists in the same folder, so when a selection instruction triggered by a user is received, folder data corresponding to the deployment file is acquired according to the selection instruction, and if the selection instruction triggered by the user is not received within a preset time after the configuration information is displayed, the most recent folder data is created in the plurality of folders corresponding to the projects available for deployment as the deployment file.
In addition, the deployment file may further include deployment sequence information, which is used to determine which contents in the deployment file need to be deployed and in what order. The deployment sequence information may also include definitions of other deployment-related steps, such as database backup, start-stop service, registry modification, deletion of specified files, and the like. After the deployment file is acquired, the deployment sequence information can be displayed through the deployment server, so that a user can modify the deployment sequence according to the deployment requirement of the user, therefore, when the deployment server detects a modification instruction triggered by the user based on the deployment sequence information, the deployment sequence information is modified according to the modification instruction, wherein the modification instruction can comprise modification of step content, adjustment of step sequence, addition and deletion of steps and the like, so as to meet the diversified requirement of the user corresponding to server deployment. After modifying the deployment sequence information, the application server may deploy the deployment file according to the modified deployment sequence information. Of course, after the deployment file is obtained, other files in the deployment file may also be displayed by the deployment server, so that the user may adjust and modify the deployment file, for example, a file corresponding to the main installation content in the deployment file, a script execution file, and the like.
Step S30, sending a prompt message to the application server associated with the configuration information corresponding to the selection instruction, so that the application server obtains the deployment file and deploys according to the deployment file.
In this embodiment, there may be a plurality of application servers at the same time, and there may be a plurality of different types of application servers, for example, a web page (web) server, a Database (DB) server, and the like. The user can specify one or more servers to be deployed through the application server list in the configuration information, and further send the prompt information to the application server associated with the configuration information corresponding to the selection instruction, so that the specified servers acquire the deployment file and complete deployment according to the deployment file. The deployment server stores address information of a plurality of application servers which can be deployed by the deployment server, including IP addresses, hardware addresses and port numbers of the application servers, so that the deployment server can send prompt information to the application servers according to the address information of the application servers, and accurate sending of the prompt information is achieved. When the same software program project is deployed, the contents of deployment files required by different types of application servers may be different, so that the application servers can also obtain part of the deployment files corresponding to the types of the application servers in the deployment files, so as to reduce the data transmission quantity of the deployment files and improve the deployment efficiency. The prompt information may be a step instruction corresponding to the deployment sequence information in the deployment file, and the step instruction is sent to the application server, so that the application server directly reads a part of the deployment file corresponding to the step instruction from the deployment server, and performs a deployment action corresponding to the step instruction, wherein the step instruction can be sent to the plurality of application servers in a cyclic recursion manner, so as to ensure that each application server can accurately read the step instruction.
After the application server deploys according to the deployment file, feeding back deployment log information to the deployment server so as to feed back the deployment result of the application server to the deployment server. And when detecting the deployment log information fed back by the application server, the deployment server outputs the deployment log information to prompt a user whether the deployment of the application server is successful or not. Specifically, the deployment of the application server generally includes a plurality of steps, and after each step is completed, the application server may feed back deployment log information corresponding to the step to the deployment server, for example, the deployment log information may include types such as "success", "error", "warning", and the like, and different font colors are displayed according to different types, so as to prompt the user more obviously. The deployment server can judge the progress of the whole deployment process according to the deployment log information corresponding to each step, and display corresponding progress information to prompt the current deployment progress of a user. Moreover, deployment failure information corresponding to a certain step exists in the deployment log information, and a user generally needs to search and analyze the reason of the deployment failure so as to improve the deployment file in the following process, so that the user can trigger a check instruction through the deployment log information. When receiving a checking instruction triggered by a user, the deployment server sends the checking instruction to the corresponding application server, so that the application server searches for the reason of the failure deployment. Specifically, the application server compares the received deployment file with a file generated when the deployment is performed according to the deployment file according to a preset policy, and feeds back a comparison result to the deployment server, where the preset policy may be the number of files, the size of the files, the modification date, and the like. After the deployment server outputs the check result according to the comparison result, the user can analyze according to the check result to find the reason of the failure deployment, and further improve the deployment file in a targeted manner, so that the modification optimization of the server deployment is realized.
In the technical scheme disclosed in this embodiment, the deployment configuration is displayed for the user to configure, the deployment file and the application server are determined according to the user configuration, and the deployment is performed according to the deployment file and the application server, so that the purpose of automatically deploying the designated server is achieved, manual deployment by the user is avoided, the server deployment is simpler, and the deployment efficiency of the server is improved.
In another embodiment, as shown in fig. 3, based on the embodiment shown in fig. 2, the deployment method of the server further includes:
step S01, receiving identity information fed back by the application server, wherein the identity information is prestored in the application server;
step S02, acquiring the authority of the application server according to the identity information;
in this embodiment, in order to ensure the security of sending and receiving the deployment file, before the deployment of the application server, multiple rights authorization needs to be performed at the deployment server side and the application server side, respectively, so that the data can be accurately sent and received. In the prior art, a deployment server needs to acquire multiple permissions in an application server to realize multiple control operations of the deployment server on the application server, and in the process, the deployment server is a main part and needs to set environment information corresponding to the application server, such as an IP address, an account password and the like, so that the coupling degree of the deployment server on the application server is high, and when the deployment server has a security threat, a plurality of application servers also have potential safety hazards. Therefore, in this embodiment, the application server may be used as a main part in a reverse authorization manner, the application server obtains multiple permissions in the deployment server, and the application server only opens the port permission to the deployment server, so that dependence inversion of the server is achieved, the coupling degree of the deployment server to the application server is reduced, data can be transmitted and received, and meanwhile, the deployment server is prevented from storing key information such as an account password of the application server. Therefore, the port authority can be opened to the deployment server at the application server side in advance, so that before the deployment server sends the prompt message to the application server, the deployment server only needs to send the identity information prestored in the deployment server to the application server to perform the identity verification corresponding to the port authority. The pre-stored identity information is any information that can be used to identify the identity of the deployment server, for example, an identity token corresponding to the deployment server. And when the application server receives the identity information sent by the deployment server, the application server verifies the identity information, and when the identity verification is successful, the application server feeds back corresponding verification success information to the deployment server, so that the prompt information is successfully sent. After the application service receives the prompt message, the deployment file in the deployment server needs to be acquired, so that the authority verification is also performed before the deployment file is read. Specifically, the application server sends identity information prestored in the application server to the deployment server, and when receiving the identity information fed back by the application server, the deployment server obtains the authority corresponding to the application server according to the identity information, that is, whether the application server has the authority to read the deployment file is judged.
Step S03, when the authority of the application server meets a preset condition, sending a read instruction to the application server, where the application server reads the deployment file in the deployment server when receiving the read instruction.
In this embodiment, when the right corresponding to the application server meets the preset right for reading the deployment file, the storage location where the deployment file is located is opened to the application server, and a reading instruction is sent to the application server, so that the application server reads the deployment file from the storage location when receiving the reading instruction.
In the technical scheme disclosed in this embodiment, the authority of the application server is acquired according to the identity information fed back by the application server, and when the authority meets a preset condition, a read instruction is sent to the application server, so that the application server reads the deployment file in the deployment server, and the deployment of the application server is more reliable.
Referring to fig. 4, in a further embodiment, the deployment method of the server is applied to an application server, and includes the following steps:
step S40, after receiving the prompt message sent by the deployment server, obtaining the deployment file in the deployment server,
when detecting a selection instruction triggered by a user based on configuration information, the deployment server acquires a deployment file associated with the configuration information corresponding to the selection instruction, and sends the prompt information to an application server associated with the configuration information corresponding to the selection instruction;
in this embodiment, a plurality of software program projects for deployment are stored in a file server local to the deployment server or connected to the deployment server, and each project corresponds to one deployment file or a group of deployment files. Similarly, there may be a plurality of application servers at the same time, and there may be a plurality of different types of application servers, for example, a web page (web) server, a Database (DB) server, and the like. And the deployment server generates configuration information according to the acquired information of the plurality of deployment files and the information of the application servers available for deployment, and displays the configuration information. When receiving a selection instruction triggered by a user based on configuration information, the deployment server acquires a deployment file associated with the configuration information corresponding to the selection instruction, and sends prompt information to an application server associated with the configuration information corresponding to the selection instruction, so that the corresponding application server acquires the deployment file, and the purpose of deploying the specified application server according to the specified deployment file is achieved. The user can trigger the instruction at the deployment server side, or remotely access the deployment server through a client side or a browser webpage to trigger the instruction. The application server information may include address information of the application server, including an IP address, a hardware address, and a port number of the application server, and the deployment server transmits the prompt information to the application server through the address information.
And step S50, deploying according to the deployment file.
In this embodiment, each application server is preset with a deployment service, so that the application server receives the prompt information sent by the deployment server, and the deployment service can read the deployment file from the deployment server. And the deployment file comprises deployment sequence information used for determining which contents in the deployment file need to be deployed and in what sequence. The deployment sequence information may also include definitions of other deployment-related steps, such as database backup, start-stop service, registry modification, deletion of specified files, and the like. Firstly, after reading a deployment file, the deployment service converts deployment sequence information in the deployment file into specific tree-shaped memory data to generate corresponding step instructions, so that a deployment program can sequentially execute corresponding steps according to the step instructions to complete deployment tasks. It should be noted that the process of generating the step instructions according to the deployment sequence information may be executed at the deployment server or the application server, where, when the deployment server executes, after the deployment server obtains the deployment file, the step instructions are generated according to the deployment sequence information and sent to the application server as the prompt information, so that the application server reads a part of the deployment file corresponding to the step instructions from the deployment server and performs the deployment action corresponding to the step instructions, where the step instructions may be sent to multiple application servers in a cyclic recursion manner, so as to ensure that each application server can accurately read the step instructions. Because the application server is provided with the independent deployment service, interaction with other application servers is not needed in the deployment process, and the deployment efficiency of the application server is improved through the distributed architecture. And when a new application server is communicated with the deployment server, the deployment program is only required to be arranged in the newly added application server in advance, and the port authority corresponding to the deployment program is opened to the deployment server, so that the application server is more convenient to expand.
When the application server deploys according to the deployment file, after each step is executed, a corresponding execution result, namely deployment log information, can be generated, and the deployment log information is sent to the deployment server so as to prompt a user whether each deployment step is executed successfully or not. Specifically, the deployment of the application server generally includes a plurality of steps, and after each step is completed, the application server may feed back deployment log information corresponding to the step to the deployment server, for example, the deployment log information may include types such as "success", "error", "warning", and the like, and different font colors are displayed according to different types, so as to prompt the user more obviously. And the deployment server can judge the progress of the whole deployment process according to the deployment log information corresponding to each step and display corresponding progress information so as to prompt the current deployment progress of a user. When receiving an inspection instruction sent by a deployment server, an application server compares a received deployment file with a file generated after deployment according to the deployment file according to a preset strategy, generates a corresponding comparison result, and feeds the comparison result back to the deployment server, so that the deployment server outputs the inspection result to a user according to the comparison result, and the user can analyze the reason of failure in deployment according to the inspection result or can perform optimization and improvement steps in the deployment process, wherein the preset strategy can be the number of files, the size of the files, the modification date and the like. Because the user may need to redeploy the application server or backtrack the deployment version when the deployment of the application server fails, the application server may further store the deployment file as a historical deployment file after the deployment is performed according to the deployment file, so that when a redeployment instruction sent by the user through the deployment server is received, the application server may quickly obtain the deployment file corresponding to the redeployment instruction and redeploys the deployment file according to the redeployment instruction, so that the application server may quickly redeploy, or backtrack to a version corresponding to a certain historical deployment file.
In the technical scheme disclosed in this embodiment, the deployment file and the application server are determined according to the selection of the user on the configuration information, and the deployment is performed according to the deployment file and the application server, so that the purpose of automatically deploying the designated server is achieved, manual deployment by the user is avoided, the server deployment is simpler, and the deployment efficiency of the server is improved.
In still another embodiment, as shown in fig. 5, on the basis of the embodiment shown in fig. 4, the step S40 includes:
step S41, after receiving the prompt message, obtaining the pre-stored identity information;
step S42, feeding back the identity information to the deployment server,
the deployment server acquires the authority of the application server according to the identity information, and sends a reading instruction to the application server when the authority of the application server meets a preset condition;
in this embodiment, an operator opens, at the application server side, a port authority corresponding to a deployment program in the application server to the deployment server in advance, so that the deployment server can send prompt information to the deployment program in the application server, and the deployment program can read a deployment file at the deployment server side according to the prompt information and then deploy according to the deployment file. When the application server receives the prompt message, the application server acquires identity information prestored in the application server and feeds the identity information back to the deployment server, the deployment server acquires the authority corresponding to the application server according to the identity information, namely, whether the application server has the authority for reading the deployment file is judged, the authority corresponding to the application server meets the preset condition corresponding to the reading of the deployment file, the storage position where the deployment file is located is opened to the application server, and a reading instruction is sent to the application server. The identity information pre-stored in the application server is any information that can be used for identifying the identity of the application server, for example, an identity token corresponding to the application server.
Step S43, when receiving the reading instruction, reading the deployment file in the deployment server.
In this embodiment, when receiving the reading instruction, the application server may read the deployment file in the specified storage location in the deployment server according to the reading instruction, so as to deploy according to the read deployment file.
In the technical scheme disclosed in this embodiment, the identity information pre-stored by the application server is sent to the deployment server for permission verification, and the deployment file in the deployment server is read when the permission is satisfied, so that the deployment of the application server is more reliable.
In addition, an embodiment of the present invention further provides a server, where the server includes: the deployment program of the server is stored on the memory and can run on the processor, and when being executed by the processor, the deployment program of the server realizes the steps of the deployment method of the server according to the embodiment.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a deployment program of a server is stored on the computer-readable storage medium, and when executed by a processor, the deployment program of the server implements the steps of the deployment method of the server according to the above embodiment.
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, method, article, or system 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, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
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.
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, an air conditioner, 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 server deployment method is applied to a deployment server, and comprises the following steps:
when a deployment instruction triggered by a user is received, displaying configuration information;
when a selection instruction triggered by a user based on the configuration information is detected, acquiring a deployment file associated with the configuration information corresponding to the selection instruction;
and sending prompt information to an application server associated with the configuration information corresponding to the selection instruction so that the application server acquires the deployment file and deploys according to the deployment file.
2. The server deployment method according to claim 1, wherein after the step of acquiring, when a selection instruction triggered by the user based on the configuration information is detected, a deployment file associated with the configuration information corresponding to the selection instruction, the method further includes:
displaying deployment sequence information in the deployment file;
and when a modification instruction triggered by a user based on the deployment sequence information is received, modifying the deployment sequence information according to the modification instruction, wherein the application server deploys the deployment file according to the modified deployment sequence information.
3. The server deployment method according to claim 1, wherein after the step of sending the prompt message to the application server associated with the configuration information corresponding to the selection instruction, the server deployment method further includes:
receiving identity information fed back by the application server, wherein the identity information is prestored in the application server;
acquiring the authority of the application server according to the identity information;
and when the authority of the application server meets a preset condition, sending a reading instruction to the application server, wherein the application server reads the deployment file in the deployment server when receiving the reading instruction.
4. The server deployment method according to claim 1, wherein after the step of sending the deployment file to the application server associated with the configuration information corresponding to the selection instruction, so that the application server deploys according to the deployment file, the method further includes:
when the deployment log information fed back by the application server is detected, outputting the deployment log information;
when receiving a check instruction triggered by the deployment log information by a user, sending the check instruction to the application server, wherein when receiving the check instruction, the application server compares the deployment file with a file generated by deployment according to the deployment file, and sends a comparison result to the deployment server;
and when a comparison result fed back by the application server based on the inspection instruction is received, outputting an inspection result according to the comparison result.
5. A server deployment method is applied to an application server, and is characterized by comprising the following steps:
after receiving prompt information sent by a deployment server, acquiring a deployment file in the deployment server, wherein when the deployment server detects a selection instruction triggered by a user based on configuration information, the deployment file associated with the configuration information corresponding to the selection instruction is acquired, and the prompt information is sent to an application server associated with the configuration information corresponding to the selection instruction;
and deploying according to the deployment file.
6. The server deployment method according to claim 5, wherein the step of acquiring the deployment file in the deployment server after receiving the prompt message sent by the deployment server comprises:
after receiving the prompt message, acquiring prestored identity information;
feeding the identity information back to the deployment server, wherein the deployment server acquires the authority of the application server according to the identity information and sends a reading instruction to the application server when the authority of the application server meets a preset condition;
and when the reading instruction is received, reading the deployment file in the deployment server.
7. The server deployment method of claim 5, wherein after the step of deploying according to the deployment file, further comprising:
generating deployment log information;
feeding the deployment log information back to the deployment server, wherein the deployment server outputs the deployment log information when detecting the deployment log information, and sends a check instruction to the application server when receiving the check instruction triggered by a user through the deployment log information;
when the check instruction is received, comparing the deployment file with a file generated by deployment according to the deployment file to generate a comparison result;
and sending the comparison result to the deployment server, wherein the deployment server outputs a check result according to the comparison result when receiving the comparison result.
8. The method for deploying servers according to claim 5, further comprising:
after deployment is carried out according to the deployment file, the deployment file is saved;
when a redeployment instruction sent by the deployment server is received, acquiring a deployment file corresponding to the redeployment instruction, wherein the redeployment instruction is sent to the application server by the deployment server when the redeployment instruction triggered by a user is received;
and redeploying according to the deployment file corresponding to the redeployment instruction.
9. A server, characterized in that the server comprises: memory, a processor and a deployment program of a server stored on the memory and executable on the processor, the deployment program of the server implementing the steps of the deployment method of a server according to any one of claims 1 to 8 when executed by the processor.
10. A computer-readable storage medium, on which a deployment program of a server is stored, which, when executed by a processor, implements the steps of the deployment method of a server according to any one of claims 1 to 8.
CN201910798795.8A 2019-08-27 2019-08-27 Server, deployment method thereof and computer-readable storage medium Pending CN110597520A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910798795.8A CN110597520A (en) 2019-08-27 2019-08-27 Server, deployment method thereof and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910798795.8A CN110597520A (en) 2019-08-27 2019-08-27 Server, deployment method thereof and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN110597520A true CN110597520A (en) 2019-12-20

Family

ID=68855881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910798795.8A Pending CN110597520A (en) 2019-08-27 2019-08-27 Server, deployment method thereof and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN110597520A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112114939A (en) * 2020-09-04 2020-12-22 青岛海信网络科技股份有限公司 Distributed system deployment equipment and method
CN115361278A (en) * 2022-08-02 2022-11-18 青岛海尔科技有限公司 Cloud host deployment method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108270846A (en) * 2017-12-19 2018-07-10 西安电子科技大学 The mancarried device of secure operating system Dynamical Deployment is supported under a kind of cloud environment
CN108600029A (en) * 2018-05-09 2018-09-28 深圳壹账通智能科技有限公司 A kind of configuration file update method, device, terminal device and storage medium
CN108847950A (en) * 2018-04-02 2018-11-20 重庆金融资产交易所有限责任公司 Electronic device, cloud system software automatic deployment method and storage medium
CN109542462A (en) * 2018-10-17 2019-03-29 平安科技(深圳)有限公司 A kind of system environments dispositions method, storage medium and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108270846A (en) * 2017-12-19 2018-07-10 西安电子科技大学 The mancarried device of secure operating system Dynamical Deployment is supported under a kind of cloud environment
CN108847950A (en) * 2018-04-02 2018-11-20 重庆金融资产交易所有限责任公司 Electronic device, cloud system software automatic deployment method and storage medium
CN108600029A (en) * 2018-05-09 2018-09-28 深圳壹账通智能科技有限公司 A kind of configuration file update method, device, terminal device and storage medium
CN109542462A (en) * 2018-10-17 2019-03-29 平安科技(深圳)有限公司 A kind of system environments dispositions method, storage medium and server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王华阳: "跨域环境下安全基线的部署与监控技术研究", 《科技传播》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112114939A (en) * 2020-09-04 2020-12-22 青岛海信网络科技股份有限公司 Distributed system deployment equipment and method
CN115361278A (en) * 2022-08-02 2022-11-18 青岛海尔科技有限公司 Cloud host deployment method, device and equipment

Similar Documents

Publication Publication Date Title
US10127057B2 (en) Method and apparatus for dynamically implementing application function
US10298800B2 (en) Information processing apparatus and control method thereof
JP4974749B2 (en) Information processing apparatus, distribution method, and control program for executing the method
US8291405B2 (en) Automatic dependency resolution by identifying similar machine profiles
US8627343B2 (en) Information processing apparatus and data output managing system
US9009280B2 (en) Equipment management device, equipment management system, equipment management method, and recording medium
CN109766152B (en) Interaction method and device
CN112214714A (en) Request processing method, device and equipment based on configuration file and storage medium
CN110597520A (en) Server, deployment method thereof and computer-readable storage medium
CN110597662B (en) Backup data automatic verification method and device, user equipment and storage medium
KR20190062797A (en) User terminal for using cloud service, integrated security management server of user terminal and method thereof
CN112491813B (en) Instruction transmission control method and device and computer readable storage medium
US20140063520A1 (en) System, control method therefor, control method for information processing apparatus, and non-transitory computer-readable medium
CN107766068B (en) Application system patch installation method and device, computer equipment and storage medium
AU2014276026B2 (en) Information processing device, information processing method, and program
CN110196741B (en) Method for setting basic input/output system, terminal and computer storage medium
CN111104323A (en) Function test method, system, proxy server and storage medium of application program
US20110090532A1 (en) Image forming apparatus and program operating method
CN112882871B (en) Host conflict detection method, device, equipment and storage medium
CN112711430B (en) ADB-based non-network equipment upgrading method, system and readable storage medium
CN114237633A (en) Application configuration method, device, equipment and storage medium
US20190149614A1 (en) Storage medium, information processing device, and processing method
CN112104513A (en) Visual software load method, device, equipment and storage medium
CN111061630A (en) Product debugging method, debugging device and readable storage medium
CN112416409B (en) Vehicle-mounted computer software upgrading method, device, 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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20191220