[go: up one dir, main page]

CN112035124A - Application deployment method and device - Google Patents

Application deployment method and device Download PDF

Info

Publication number
CN112035124A
CN112035124A CN202010914367.XA CN202010914367A CN112035124A CN 112035124 A CN112035124 A CN 112035124A CN 202010914367 A CN202010914367 A CN 202010914367A CN 112035124 A CN112035124 A CN 112035124A
Authority
CN
China
Prior art keywords
deployed
application
file
program
production environment
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
CN202010914367.XA
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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202010914367.XA priority Critical patent/CN112035124A/en
Publication of CN112035124A publication Critical patent/CN112035124A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 an application program deployment method and device, wherein the method comprises the following steps: acquiring a program file of an application program to be deployed and a parameter file of a production environment to be deployed; acquiring a parameter file of the to-be-deployed production environment updated based on a program file of the to-be-deployed application program; generating a corresponding relation table of a program file of the application program to be deployed and a parameter file of the production environment to be deployed; uploading the corresponding relation table and the program file of the application program to be deployed to a file server; and sending an application program deployment instruction to the production environment to be deployed, so that the production nodes in the production environment to be deployed extract the corresponding relation table and the program file of the application program to be deployed from the file server according to the application program deployment instruction to perform application program deployment. The invention can realize the automatic deployment of the program files of the application program, and the application nodes are not required to be generated by direct operation, thereby reducing the safety risk.

Description

应用程序部署方法及装置Application deployment method and device

技术领域technical field

本发明涉及计算机技术领域,尤其涉及一种应用程序部署方法及装置。The present invention relates to the field of computer technologies, and in particular, to a method and device for deploying an application program.

背景技术Background technique

项目开发测试阶段往往存在大量的版本迭代,在版本迭代过程中伴随着针对不同版本的各种测试。在进行版本测试时,项目开发测试的效率与版本部署的效率息息相关。There are often a large number of version iterations in the project development and testing phase, and various tests for different versions are accompanied during the version iteration process. During version testing, the efficiency of project development and testing is closely related to the efficiency of version deployment.

现有技术在进行应用程序部署时,一般是利用自动化部署工具直接操作生产应用节点,如果出现误操作,会有很大的安全风险。在此过程中,通常要求工作人员手工修改参数文件中的某些参数。当参数文件分布在上百个节点上时,手工操作在短时间内已经无法完成修改任务,作业效率较低。When deploying an application program in the prior art, an automated deployment tool is generally used to directly operate the production application node. If a misoperation occurs, there will be a great security risk. During this process, the staff is usually required to manually modify some parameters in the parameter file. When the parameter file is distributed on hundreds of nodes, the manual operation cannot complete the modification task in a short time, and the operation efficiency is low.

此外,目前的自动化部署工具都需要每次操作的动作一致才可以工作,但现有技术中应用程序版本中提供的操作手册都是针对手工操作编写的,没有做到标准化,这样导致版本部署每次的动作不同,无法实现应用程序的自动化部署。In addition, the current automated deployment tools require consistent actions for each operation before they can work. However, the operation manuals provided in the application version in the prior art are all written for manual operations and are not standardized, which leads to the deployment of each version. The actions are different each time, and the automatic deployment of the application cannot be realized.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种应用程序部署方法,用以实现对应用程序的程序文件的自动化部署,并且无需直接操作生成应用节点,降低了安全风险,该方法包括:The embodiment of the present invention provides an application program deployment method, which is used to realize the automatic deployment of the program files of the application program, and does not need to directly operate the generated application node, thereby reducing the security risk. The method includes:

采集待部署应用程序的程序文件和待部署生产环境的参数文件;Collect program files of applications to be deployed and parameter files of production environments to be deployed;

获取基于待部署应用程序的程序文件更新后的待部署生产环境的参数文件;Obtain the updated parameter file of the production environment to be deployed based on the program file of the application to be deployed;

生成待部署应用程序的程序文件和待部署生产环境的参数文件的对应关系表;Generate a correspondence table between the program files of the application to be deployed and the parameter files of the production environment to be deployed;

将所述对应关系表和待部署应用程序的程序文件上传至文件服务器;uploading the correspondence table and the program file of the application to be deployed to the file server;

向待部署生产环境发送应用程序部署指令,使待部署生产环境中的生产节点根据应用程序部署指令自文件服务器中提取所述对应关系表和待部署应用程序的程序文件进行应用程序部署。Send an application deployment instruction to the production environment to be deployed, so that the production node in the production environment to be deployed extracts the corresponding relationship table and the program file of the application to be deployed from the file server according to the application deployment instruction to deploy the application.

可选的,向待部署生产环境发送应用程序部署指令,使待部署生产环境中的生产节点根据应用程序部署指令自文件服务器中提取所述对应关系表和待部署应用程序的程序文件进行应用程序部署之后,所述方法还包括:Optionally, send an application deployment instruction to the production environment to be deployed, so that the production node in the production environment to be deployed extracts the corresponding relationship table and the program file of the application to be deployed from the file server according to the application deployment instruction to execute the application. After deployment, the method further includes:

生成应用程序部署报告。Generate application deployment reports.

可选的,所述方法还包括:Optionally, the method further includes:

存储待部署生产环境的参数文件更新的历史记录;Store the history of parameter file updates of the production environment to be deployed;

以版本编号对所述历史记录进行命名。The history is named with a version number.

可选的,所述方法还包括:Optionally, the method further includes:

记录应用程序部署中的日志信息;Record log information in application deployment;

标记所述日志信息中的报错内容。Mark the error content in the log information.

本发明实施例还提供一种应用程序部署装置,用以实现对应用程序的程序文件的自动化部署,并且无需直接操作生成应用节点,降低了安全风险,该装置包括:The embodiment of the present invention also provides an application program deployment device, which is used to realize the automatic deployment of the program files of the application program, and does not need to directly operate and generate the application node, thereby reducing the security risk. The device includes:

文件采集模块,用于采集待部署应用程序的程序文件和待部署生产环境的参数文件;The file collection module is used to collect the program files of the application to be deployed and the parameter files of the production environment to be deployed;

文件更新模块,用于获取基于待部署应用程序的程序文件更新后的待部署生产环境的参数文件;A file update module, used to obtain the parameter file of the production environment to be deployed after updating the program file based on the application to be deployed;

关系表建立模块,用于生成待部署应用程序的程序文件和待部署生产环境的参数文件的对应关系表;A relationship table establishment module is used to generate a corresponding relationship table between the program file of the application to be deployed and the parameter file of the production environment to be deployed;

文件上传模块,用于将所述对应关系表和待部署应用程序的程序文件上传至文件服务器;a file uploading module for uploading the corresponding relationship table and the program file of the application to be deployed to the file server;

应用程序部署模块,用于向待部署生产环境发送应用程序部署指令,使待部署生产环境中的生产节点根据应用程序部署指令自文件服务器中提取所述对应关系表和待部署应用程序的程序文件进行应用程序部署。The application deployment module is used to send application deployment instructions to the production environment to be deployed, so that the production nodes in the production environment to be deployed extract the corresponding relationship table and the program files of the application to be deployed from the file server according to the application deployment instructions Do application deployment.

可选的,所述装置还包括:Optionally, the device further includes:

报告生成模块,用于生成应用程序部署报告。A report generation module for generating application deployment reports.

可选的,所述装置还包括:Optionally, the device further includes:

存储模块,用于存储待部署生产环境的参数文件更新的历史记录;The storage module is used to store the history of parameter file update of the production environment to be deployed;

命名模块,用于以版本编号对所述历史记录进行命名。A naming module for naming the history with a version number.

可选的,所述装置还包括:Optionally, the device further includes:

日志信息记录模块,用于记录应用程序部署中的日志信息;The log information recording module is used to record the log information in the application deployment;

标记模块,用于标记所述日志信息中的报错内容。The marking module is used to mark the error report content in the log information.

本发明实施例还提供一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述方法。An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and running on the processor, where the processor implements the above method when executing the computer program.

本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有执行上述方法的计算机程序。An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for executing the foregoing method.

本发明实施例中,通过采集待部署应用程序的程序文件和待部署生产环境的参数文件,获取基于待部署应用程序的程序文件更新后的待部署生产环境的参数文件,无需工作人员手工对参数文件进行修改,工作效率高。通过生成待部署应用程序的程序文件和待部署生产环境的参数文件的对应关系表,并将对应关系表和待部署应用程序的程序文件上传至文件服务器,向待部署生产环境发送应用程序部署指令,使待部署生产环境中的生产节点根据应用程序部署指令自文件服务器中提取对应关系表和待部署应用程序的程序文件进行应用程序部署,实现了对应用程序的程序文件的自动化部署,并且在此过程中无需直接操作生成应用节点,降低了安全风险。In the embodiment of the present invention, by collecting the program file of the application to be deployed and the parameter file of the production environment to be deployed, the updated parameter file of the production environment to be deployed based on the program file of the application to be deployed is obtained, and it is not necessary for staff to manually adjust the parameters The file is modified, and the work efficiency is high. By generating a correspondence table between the program file of the application to be deployed and the parameter file of the production environment to be deployed, and uploading the correspondence table and the program file of the application to be deployed to the file server, the application deployment instruction is sent to the production environment to be deployed , so that the production node in the production environment to be deployed extracts the corresponding relationship table and the program file of the application to be deployed from the file server according to the application deployment instruction to deploy the application program, and realizes the automatic deployment of the program file of the application program. In this process, there is no need to directly operate the generated application node, which reduces security risks.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts. In the attached image:

图1为本发明实施例中应用程序部署方法的流程图;1 is a flowchart of an application deployment method in an embodiment of the present invention;

图2为本发明实施例中应用程序部署方法的又一流程图;FIG. 2 is another flowchart of an application deployment method in an embodiment of the present invention;

图3为本发明实施例中应用程序部署方法的再一流程图;FIG. 3 is another flowchart of an application deployment method in an embodiment of the present invention;

图4为本发明实施例中应用程序部署装置的结构示意图;FIG. 4 is a schematic structural diagram of an application deployment apparatus in an embodiment of the present invention;

图5为本发明实施例中应用程序部署装置的又一结构示意图;FIG. 5 is another schematic structural diagram of an application program deployment apparatus in an embodiment of the present invention;

图6为本发明实施例中应用程序部署装置的再一结构示意图;FIG. 6 is still another schematic structural diagram of an application program deployment apparatus in an embodiment of the present invention;

图7是本发明实施例计算机设备示意图;7 is a schematic diagram of a computer device according to an embodiment of the present invention;

图8为本发明实施例中应用程序部署方法的应用示例图。FIG. 8 is a diagram of an example application of the method for deploying an application program in an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚明白,下面结合附图对本发明实施例做进一步详细说明。在此,本发明的示意性实施例及其说明用于解释本发明,但并不作为对本发明的限定。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention more clearly understood, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but not to limit the present invention.

图1为本发明实施例提供的一种应用程序部署方法的流程图,如图1所示,该方法包括:FIG. 1 is a flowchart of an application deployment method provided by an embodiment of the present invention. As shown in FIG. 1 , the method includes:

步骤101、采集待部署应用程序的程序文件和待部署生产环境的参数文件。Step 101: Collect program files of the application to be deployed and parameter files of the production environment to be deployed.

步骤102、获取基于待部署应用程序的程序文件更新后的待部署生产环境的参数文件。Step 102: Obtain the updated parameter file of the production environment to be deployed based on the program file of the application to be deployed.

具体实施时,可以通过web页面修改待部署生产环境的参数文件中的内容,并记录每次保存后的版本。During specific implementation, the content in the parameter file of the to-be-deployed production environment can be modified through the web page, and the saved version is recorded each time.

步骤103、生成待部署应用程序的程序文件和待部署生产环境的参数文件的对应关系表。Step 103: Generate a correspondence table between the program file of the application to be deployed and the parameter file of the production environment to be deployed.

具体实施时,读取待部署应用程序的版本包,输入该版本包目录与生产环境的对应关系,生成一张对照表,即待部署应用程序的程序文件和待部署生产环境的参数文件的对应关系表。In specific implementation, read the version package of the application to be deployed, input the corresponding relationship between the directory of the version package and the production environment, and generate a comparison table, that is, the correspondence between the program file of the application to be deployed and the parameter file of the production environment to be deployed Relational tables.

步骤104、将所述对应关系表和待部署应用程序的程序文件上传至文件服务器。Step 104: Upload the correspondence table and the program file of the application to be deployed to the file server.

步骤105、向待部署生产环境发送应用程序部署指令,使待部署生产环境中的生产节点根据应用程序部署指令自文件服务器中提取所述对应关系表和待部署应用程序的程序文件进行应用程序部署。Step 105: Send an application deployment instruction to the production environment to be deployed, so that the production node in the production environment to be deployed extracts the correspondence table and the program file of the application to be deployed from the file server according to the application deployment instruction to deploy the application .

具体实施时,从文件服务器下载更新后的应用程序版本包和生产环境的参数文件,按照输入的操作指令,一条一条执行。During specific implementation, the updated application version package and the parameter file of the production environment are downloaded from the file server, and are executed one by one according to the input operation instructions.

由图1可知,本发明实施例提供的应用程序部署方法,通过采集待部署应用程序的程序文件和待部署生产环境的参数文件,获取基于待部署应用程序的程序文件更新后的待部署生产环境的参数文件,无需工作人员手工对参数文件进行修改,工作效率高。通过生成待部署应用程序的程序文件和待部署生产环境的参数文件的对应关系表,并将对应关系表和待部署应用程序的程序文件上传至文件服务器,向待部署生产环境发送应用程序部署指令,使待部署生产环境中的生产节点根据应用程序部署指令自文件服务器中提取对应关系表和待部署应用程序的程序文件进行应用程序部署,实现了对应用程序的程序文件的自动化部署,并且在此过程中无需直接操作生成应用节点,降低了安全风险。As can be seen from FIG. 1 , the application deployment method provided by the embodiment of the present invention obtains an updated production environment to be deployed based on the program file of the application to be deployed by collecting the program file of the application to be deployed and the parameter file of the production environment to be deployed. There is no need for staff to modify the parameter file manually, and the work efficiency is high. By generating a correspondence table between the program file of the application to be deployed and the parameter file of the production environment to be deployed, and uploading the correspondence table and the program file of the application to be deployed to the file server, the application deployment instruction is sent to the production environment to be deployed , so that the production node in the production environment to be deployed extracts the corresponding relationship table and the program file of the application to be deployed from the file server according to the application deployment instruction to deploy the application program, and realizes the automatic deployment of the program file of the application program. In this process, there is no need to directly operate the generated application node, which reduces security risks.

为了便于工作人员查看应用程序部署情况,向待部署生产环境发送应用程序部署指令,使待部署生产环境中的生产节点根据应用程序部署指令自文件服务器中提取所述对应关系表和待部署应用程序的程序文件进行应用程序部署之后,所述方法还包括:In order to facilitate the staff to check the application deployment situation, the application deployment instruction is sent to the production environment to be deployed, so that the production node in the production environment to be deployed extracts the corresponding relationship table and the application to be deployed from the file server according to the application deployment instruction After the program file is deployed, the method further includes:

生成应用程序部署报告。Generate application deployment reports.

图2为本发明实施例提供的一种应用程序部署方法的又一流程图,为了便于对生产环境参数文件的历史记录进行存储及查找,如图2所示,该方法还包括:Fig. 2 is another flowchart of a method for deploying an application program provided by an embodiment of the present invention. In order to facilitate the storage and search of historical records of production environment parameter files, as shown in Fig. 2, the method further includes:

步骤201、存储待部署生产环境的参数文件更新的历史记录。Step 201: Store a history record of parameter file updates of the production environment to be deployed.

步骤202、以版本编号对所述历史记录进行命名。Step 202: Name the historical record with a version number.

图3为本发明实施例提供的一种应用程序部署方法的再一流程图,为了提醒工作人员日志信息中的报错内容,如图3所示,该方法还包括:FIG. 3 is another flowchart of an application deployment method provided by an embodiment of the present invention. In order to remind the staff of the error reporting content in the log information, as shown in FIG. 3 , the method further includes:

步骤301、记录应用程序部署中的日志信息。Step 301 , record log information in application deployment.

步骤302、标记所述日志信息中的报错内容。Step 302: Mark the error report content in the log information.

具体实施时,可以将日志信息中的报错内容标红,以提醒运维人员注意。During the specific implementation, the error content in the log information can be marked in red to remind the operation and maintenance personnel to pay attention.

综上,本发明通过将版本部署动作,放在运维服务器上,运维服务器与应用节点隔离,通过运维服务器将个性化的版本,转换成标准化的部署版本。如图8所示,具体实施步骤如下:To sum up, the present invention places the version deployment action on the operation and maintenance server, isolates the operation and maintenance server from the application node, and converts the personalized version into a standardized deployment version through the operation and maintenance server. As shown in Figure 8, the specific implementation steps are as follows:

在操作终端上将版本包中的应用程序文件上传到运维服务器上,通过打开运维服务器上的上传页面,填写参数,点击复制按钮即可完成。Upload the application file in the version package to the operation and maintenance server on the operation terminal, open the upload page on the operation and maintenance server, fill in the parameters, and click the copy button to complete.

加载生产节点的配置文件,运维服务器通知生产节点,收集生产节点全部的参数文件。Load the configuration file of the production node, the operation and maintenance server notifies the production node, and collects all the parameter files of the production node.

在运维服务器上编辑要更新的参数,保存后,会对比上一次的版本,确认后,准备发布,其中,运维服务器上保存了应用节点参数配置的历史记录,以版本编号命名。Edit the parameters to be updated on the operation and maintenance server. After saving, the previous version will be compared, and after confirmation, it is ready to be released. The operation and maintenance server saves the history of the parameter configuration of the application node, which is named after the version number.

在准备好程序包与修改好的参数文件后,填写好部署指令,点击发布,将要更新的内容发布到集群中的全部节点。After preparing the package and the modified parameter file, fill in the deployment instructions and click Publish to publish the content to be updated to all nodes in the cluster.

发布完成后,会显示完整的发布报告。After the release is complete, the full release report is displayed.

基于同一发明构思,本发明实施例中还提供了一种应用程序部署装置,如下面的实施例所述。由于应用程序部署装置解决问题的原理与应用程序部署方法相似,因此,应用程序部署装置的实施可以参见应用程序部署方法的实施,重复之处不再赘述。以下所使用的,术语“单元”或者“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。Based on the same inventive concept, an embodiment of the present invention also provides an apparatus for deploying an application program, as described in the following embodiments. Since the principle of the application deployment device for solving the problem is similar to that of the application deployment method, the implementation of the application deployment device may refer to the implementation of the application deployment method, and the repetition will not be repeated. As used below, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.

图4为本发明实施例提供的一种应用程序部署装置的结构示意图,如图4所示,该装置包括:FIG. 4 is a schematic structural diagram of an application deployment apparatus according to an embodiment of the present invention. As shown in FIG. 4 , the apparatus includes:

文件采集模块401,用于采集待部署应用程序的程序文件和待部署生产环境的参数文件。The file collection module 401 is configured to collect program files of the application to be deployed and parameter files of the production environment to be deployed.

文件更新模块402,用于获取基于待部署应用程序的程序文件更新后的待部署生产环境的参数文件。The file updating module 402 is configured to obtain a parameter file of the production environment to be deployed which is updated based on the program file of the application to be deployed.

关系表建立模块403,用于生成待部署应用程序的程序文件和待部署生产环境的参数文件的对应关系表。The relationship table establishment module 403 is configured to generate a corresponding relationship table between the program file of the application to be deployed and the parameter file of the production environment to be deployed.

文件上传模块404,用于将所述对应关系表和待部署应用程序的程序文件上传至文件服务器。The file uploading module 404 is configured to upload the correspondence table and the program file of the application to be deployed to the file server.

应用程序部署模块405,用于向待部署生产环境发送应用程序部署指令,使待部署生产环境中的生产节点根据应用程序部署指令自文件服务器中提取所述对应关系表和待部署应用程序的程序文件进行应用程序部署。The application deployment module 405 is used to send an application deployment instruction to the production environment to be deployed, so that the production node in the production environment to be deployed extracts the corresponding relationship table and the program of the application to be deployed from the file server according to the application deployment instruction file for application deployment.

在本发明实施例中,所述装置还包括:In an embodiment of the present invention, the device further includes:

报告生成模块,用于生成应用程序部署报告。A report generation module for generating application deployment reports.

图5为本发明实施例提供的一种应用程序部署装置的又一结构示意图,如图5所示,该装置还包括:FIG. 5 is another schematic structural diagram of an application deployment apparatus provided by an embodiment of the present invention. As shown in FIG. 5 , the apparatus further includes:

存储模块501,用于存储待部署生产环境的参数文件更新的历史记录。The storage module 501 is configured to store a history record of updating the parameter file of the production environment to be deployed.

命名模块502,用于以版本编号对所述历史记录进行命名。The naming module 502 is used to name the historical record with a version number.

图6为本发明实施例提供的一种应用程序部署装置的再一结构示意图,如图6所示,该装置还包括:FIG. 6 is another schematic structural diagram of an apparatus for deploying an application program according to an embodiment of the present invention. As shown in FIG. 6 , the apparatus further includes:

日志信息记录模块601,用于记录应用程序部署中的日志信息。The log information recording module 601 is configured to record log information in application deployment.

标记模块602,用于标记所述日志信息中的报错内容。The marking module 602 is configured to mark the error report content in the log information.

为了实现上述目的,根据本申请的另一方面,还提供了一种计算机设备。如图7所示,该计算机设备包括存储器、处理器、通信接口以及通信总线,在存储器上存储有可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述实施例方法中的步骤。In order to achieve the above object, according to another aspect of the present application, a computer device is also provided. As shown in FIG. 7 , the computer device includes a memory, a processor, a communication interface and a communication bus, and a computer program that can be run on the processor is stored in the memory, and the processor implements the above embodiments when executing the computer program steps in the method.

处理器可以为中央处理器(Central Processing Unit,CPU)。处理器还可以为其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等芯片,或者上述各类芯片的组合。The processor may be a central processing unit (Central Processing Unit, CPU). The processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other Chips such as programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above types of chips.

存储器作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态计算机可执行程序以及单元,如本发明上述方法实施例中对应的程序单元。处理器通过运行存储在存储器中的非暂态软件程序、指令以及模块,从而执行处理器的各种功能应用以及作品数据处理,即实现上述方法实施例中的方法。As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs, non-transitory computer-executable programs and units, such as program units corresponding to the above method embodiments of the present invention. The processor executes various functional applications of the processor and works data processing by running the non-transitory software programs, instructions and modules stored in the memory, that is, to implement the methods in the above method embodiments.

存储器可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储处理器所创建的数据等。此外,存储器可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器可选包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至处理器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system and an application program required by at least one function; the storage data area may store data created by the processor, and the like. Additionally, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory may optionally include memory located remotely from the processor, such remote memory being connectable to the processor via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

所述一个或者多个单元存储在所述存储器中,当被所述处理器执行时,执行上述实施例中的方法。The one or more units are stored in the memory, and when executed by the processor, perform the methods in the above-described embodiments.

本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有执行上述方法的计算机程序。An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for executing the foregoing method.

综上所述,本发明通过采集待部署应用程序的程序文件和待部署生产环境的参数文件,获取基于待部署应用程序的程序文件更新后的待部署生产环境的参数文件,无需工作人员手工对参数文件进行修改,工作效率高。通过生成待部署应用程序的程序文件和待部署生产环境的参数文件的对应关系表,并将对应关系表和待部署应用程序的程序文件上传至文件服务器,向待部署生产环境发送应用程序部署指令,使待部署生产环境中的生产节点根据应用程序部署指令自文件服务器中提取对应关系表和待部署应用程序的程序文件进行应用程序部署,实现了对应用程序的程序文件的自动化部署,并且在此过程中无需直接操作生成应用节点,降低了安全风险。To sum up, the present invention acquires the updated parameter file of the production environment to be deployed based on the program file of the application to be deployed by collecting the program file of the application to be deployed and the parameter file of the production environment to be deployed, without the need for staff to manually adjust the parameter file of the production environment to be deployed. The parameter file is modified, and the work efficiency is high. By generating a correspondence table between the program file of the application to be deployed and the parameter file of the production environment to be deployed, and uploading the correspondence table and the program file of the application to be deployed to the file server, the application deployment instruction is sent to the production environment to be deployed , so that the production node in the production environment to be deployed extracts the corresponding relationship table and the program file of the application to be deployed from the file server according to the application deployment instruction to deploy the application program, and realizes the automatic deployment of the program file of the application program. In this process, there is no need to directly operate the generated application node, which reduces security risks.

具体地,本发明是一种投入小,见效快的自动化部署改进方法。开发部门无需改变新有的版本包生成规范。也无需为了适应自动化部署工具做代码上的调整。本发明无需登录应用节点手工操作,尤其适合大规模应用节点的部署。当应用节点达到百台以上时,手工操作已经无法办到。Specifically, the present invention is an automatic deployment improvement method with low investment and quick effect. The development department does not need to change the new version package generation specification. There is also no need to make code adjustments to accommodate automated deployment tools. The present invention does not require manual operation of logging in to the application node, and is especially suitable for the deployment of large-scale application nodes. When the number of application nodes reaches more than 100, manual operation can no longer be done.

本发明在参数配置修改部分,比其他的工具灵活。支持不同的节点使用不同的配置参数。采用先收集,后编辑的模式,确保参数修改准确,防止使用错误的配置文件版本。The present invention is more flexible than other tools in the parameter configuration modification part. Different nodes are supported to use different configuration parameters. The mode of collecting first and editing later is adopted to ensure accurate parameter modification and prevent the use of wrong configuration file versions.

本发明安全可靠,不占用应用服务器的资源,无需额外开放用于部署的端口。通过部署与应用隔离,提高了应用系统的安全性。The invention is safe and reliable, does not occupy the resources of the application server, and does not need to open additional ports for deployment. By isolating deployment and application, the security of the application system is improved.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施例而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above-mentioned specific embodiments are only specific embodiments of the present invention, and are not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1.一种应用程序部署方法,其特征在于,包括:1. an application program deployment method, is characterized in that, comprises: 采集待部署应用程序的程序文件和待部署生产环境的参数文件;Collect program files of applications to be deployed and parameter files of production environments to be deployed; 获取基于待部署应用程序的程序文件更新后的待部署生产环境的参数文件;Obtain the updated parameter file of the production environment to be deployed based on the program file of the application to be deployed; 生成待部署应用程序的程序文件和待部署生产环境的参数文件的对应关系表;Generate a correspondence table between the program files of the application to be deployed and the parameter files of the production environment to be deployed; 将所述对应关系表和待部署应用程序的程序文件上传至文件服务器;uploading the correspondence table and the program file of the application to be deployed to the file server; 向待部署生产环境发送应用程序部署指令,使待部署生产环境中的生产节点根据应用程序部署指令自文件服务器中提取所述对应关系表和待部署应用程序的程序文件进行应用程序部署。Send an application deployment instruction to the production environment to be deployed, so that the production node in the production environment to be deployed extracts the corresponding relationship table and the program file of the application to be deployed from the file server according to the application deployment instruction to deploy the application. 2.如权利要求1所述的方法,其特征在于,向待部署生产环境发送应用程序部署指令,使待部署生产环境中的生产节点根据应用程序部署指令自文件服务器中提取所述对应关系表和待部署应用程序的程序文件进行应用程序部署之后,所述方法还包括:2. The method according to claim 1, wherein an application deployment instruction is sent to the production environment to be deployed, so that the production node in the production environment to be deployed extracts the correspondence table from the file server according to the application deployment instruction After the application is deployed with the program file of the application to be deployed, the method further includes: 生成应用程序部署报告。Generate application deployment reports. 3.如权利要求1所述的方法,其特征在于,还包括:3. The method of claim 1, further comprising: 存储待部署生产环境的参数文件更新的历史记录;Store the history of parameter file updates of the production environment to be deployed; 以版本编号对所述历史记录进行命名。The history is named with a version number. 4.如权利要求1所述的方法,其特征在于,还包括:4. The method of claim 1, further comprising: 记录应用程序部署中的日志信息;Record log information in application deployment; 标记所述日志信息中的报错内容。Mark the error content in the log information. 5.一种应用程序部署装置,其特征在于,包括:5. An application deployment device, comprising: 文件采集模块,用于采集待部署应用程序的程序文件和待部署生产环境的参数文件;The file collection module is used to collect the program files of the application to be deployed and the parameter files of the production environment to be deployed; 文件更新模块,用于获取基于待部署应用程序的程序文件更新后的待部署生产环境的参数文件;A file update module, used to obtain the parameter file of the production environment to be deployed after updating the program file based on the application to be deployed; 关系表建立模块,用于生成待部署应用程序的程序文件和待部署生产环境的参数文件的对应关系表;A relationship table establishment module is used to generate a corresponding relationship table between the program file of the application to be deployed and the parameter file of the production environment to be deployed; 文件上传模块,用于将所述对应关系表和待部署应用程序的程序文件上传至文件服务器;a file uploading module for uploading the corresponding relationship table and the program file of the application to be deployed to the file server; 应用程序部署模块,用于向待部署生产环境发送应用程序部署指令,使待部署生产环境中的生产节点根据应用程序部署指令自文件服务器中提取所述对应关系表和待部署应用程序的程序文件进行应用程序部署。The application deployment module is used to send application deployment instructions to the production environment to be deployed, so that the production nodes in the production environment to be deployed extract the corresponding relationship table and the program files of the application to be deployed from the file server according to the application deployment instructions Do application deployment. 6.如权利要求5所述的装置,其特征在于,所述装置还包括:6. The apparatus of claim 5, wherein the apparatus further comprises: 报告生成模块,用于生成应用程序部署报告。A report generation module for generating application deployment reports. 7.如权利要求5所述的装置,其特征在于,还包括:7. The apparatus of claim 5, further comprising: 存储模块,用于存储待部署生产环境的参数文件更新的历史记录;The storage module is used to store the history of parameter file update of the production environment to be deployed; 命名模块,用于以版本编号对所述历史记录进行命名。A naming module for naming the history with a version number. 8.如权利要求5所述的装置,其特征在于,还包括:8. The apparatus of claim 5, further comprising: 日志信息记录模块,用于记录应用程序部署中的日志信息;The log information recording module is used to record the log information in the application deployment; 标记模块,用于标记所述日志信息中的报错内容。The marking module is used to mark the error report content in the log information. 9.一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至4任一所述方法。9. A computer device comprising a memory, a processor and a computer program stored in the memory and running on the processor, wherein the processor implements any of claims 1 to 4 when the processor executes the computer program the method. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有执行权利要求1至4任一所述方法的计算机程序。10. A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing any one of the methods of claims 1 to 4.
CN202010914367.XA 2020-09-03 2020-09-03 Application deployment method and device Pending CN112035124A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010914367.XA CN112035124A (en) 2020-09-03 2020-09-03 Application deployment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010914367.XA CN112035124A (en) 2020-09-03 2020-09-03 Application deployment method and device

Publications (1)

Publication Number Publication Date
CN112035124A true CN112035124A (en) 2020-12-04

Family

ID=73591750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010914367.XA Pending CN112035124A (en) 2020-09-03 2020-09-03 Application deployment method and device

Country Status (1)

Country Link
CN (1) CN112035124A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626047A (en) * 2021-08-27 2021-11-09 中国银行股份有限公司 System and method for FLUME automatic deployment
CN114374688A (en) * 2022-01-12 2022-04-19 南方电网大数据服务有限公司 Application program deployment method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030182652A1 (en) * 2001-12-21 2003-09-25 Custodio Gabriel T. Software building and deployment system and method
US20120180024A1 (en) * 2011-01-07 2012-07-12 International Business Machines Corporation Synchronizing development code and deployed executable versioning within distributed systems
CN105912375A (en) * 2016-05-31 2016-08-31 乐视控股(北京)有限公司 Method and device for deploying application programs to servers
CN107766126A (en) * 2017-11-15 2018-03-06 腾讯科技(深圳)有限公司 Construction method, system, device and the storage medium of container mirror image
CN111324346A (en) * 2020-01-21 2020-06-23 中国科学院软件研究所 A serverless-based front-end application construction method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030182652A1 (en) * 2001-12-21 2003-09-25 Custodio Gabriel T. Software building and deployment system and method
US20120180024A1 (en) * 2011-01-07 2012-07-12 International Business Machines Corporation Synchronizing development code and deployed executable versioning within distributed systems
CN105912375A (en) * 2016-05-31 2016-08-31 乐视控股(北京)有限公司 Method and device for deploying application programs to servers
CN107766126A (en) * 2017-11-15 2018-03-06 腾讯科技(深圳)有限公司 Construction method, system, device and the storage medium of container mirror image
CN111324346A (en) * 2020-01-21 2020-06-23 中国科学院软件研究所 A serverless-based front-end application construction method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626047A (en) * 2021-08-27 2021-11-09 中国银行股份有限公司 System and method for FLUME automatic deployment
CN113626047B (en) * 2021-08-27 2024-04-19 中国银行股份有限公司 FLUME automatic deployment system and method
CN114374688A (en) * 2022-01-12 2022-04-19 南方电网大数据服务有限公司 Application program deployment method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN113595761B (en) Microservice component optimization method and medium for power system information and communication integrated dispatch platform
CN107291565B (en) Operation and maintenance visual automatic operation platform and implementation method
CN110019138B (en) Automatic transfer table space migration method and system based on Zabbix
CN113010385B (en) Task state updating method, device, equipment and medium
CN102799519A (en) Automatic test method for cluster file system
CN110943851B (en) Alarm processing method and device based on micro-service and electronic equipment
CN110784374A (en) Method, device, equipment and system for monitoring operation state of service system
CN112328481B (en) Automatic testing method, device, equipment and storage medium for multitasking scene
CN114744769A (en) Service processing method and system for power grid dispatching system
CN112035124A (en) Application deployment method and device
CN105843871B (en) Control and Management System of Distributed Application File
CN110795105A (en) Automatic compiling and deploying method and system for power distribution automation master station system
CN113971041B (en) Version synchronization method and device of cross-version control system
CN115208787A (en) Automatic testing method and system for switch
CN114115838A (en) Data interaction method and system based on distributed components and cloud platform
CN102609357B (en) Method for dynamically building test cases for automatic testing meeting AUTOSAR (automotive open system architecture) standards
CN113704790A (en) Abnormal log information summarizing method and computer equipment
CN115328928A (en) Method, device and equipment for updating kudu table and storage medium
CN104063294B (en) A kind of linux system backup and restoration methods
US20240362045A1 (en) Systems and methods for automatically generating guided user interfaces (guis) for tracking and migrating legacy networked resources within an enterprise during a technical migration
CN106951593A (en) A kind of method and apparatus for the configuration file for generating protection supervisory equipment
CN111610992B (en) Deployment component update processing method and device and storage medium
CN119088757A (en) A lightweight log archiving method and system
CN112069144A (en) Method and device for collecting system logs by multi-control cluster
CN116400987A (en) Continuous integration method, device, electronic equipment and storage medium

Legal Events

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

Application publication date: 20201204