CN111552523B - Automatic deployment method and device for configuration files - Google Patents
Automatic deployment method and device for configuration files Download PDFInfo
- Publication number
- CN111552523B CN111552523B CN202010353222.7A CN202010353222A CN111552523B CN 111552523 B CN111552523 B CN 111552523B CN 202010353222 A CN202010353222 A CN 202010353222A CN 111552523 B CN111552523 B CN 111552523B
- Authority
- CN
- China
- Prior art keywords
- file
- customized
- configuration
- files
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 238000012545 processing Methods 0.000 claims description 7
- 238000013515 script Methods 0.000 abstract description 18
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 6
- 238000011161 development Methods 0.000 description 5
- 238000012423 maintenance Methods 0.000 description 5
- 238000004519 manufacturing process Methods 0.000 description 3
- 241001178520 Stomatepia mongo Species 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000004883 computer application Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application provides a method and a device for automatically deploying configuration files, wherein the method comprises the following steps: obtaining a customized parameter configuration file; the customized parameter configuration file is a parameter configuration file customized according to the deployment environment; the customized parameter configuration file at least comprises information of one file to be configured; the information of the file to be configured comprises path information of the file to be configured and parameter configuration information corresponding to the file to be configured; then, searching to obtain each file to be configured according to the path information of each file to be configured; configuring the files to be configured according to parameter configuration information corresponding to the files to be configured aiming at each file to be configured to obtain customized configuration files; and finally, uploading each customized configuration file to a host computer to trigger the host computer to deploy each customized configuration file. Therefore, the aim of rapidly deploying database scripts, program packages, scripts, workflow files and the like is fulfilled.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for automatic deployment of a configuration file.
Background
With the continuous development of modern information technology, the world has straddled the Internet+big data age. Big data are deeply changing the thinking, production and life style of people; with the rapid development of big data, version replacement of big data is faster and faster, and the versions of big data that may be required by different users are also different in the process of processing big data.
At present, when version deployment is performed in the big data field, database scripts, program packages, scripts, workflow files and the like need to be customized and uploaded one by one according to deployment environments. Because database scripts, program packages, scripts, workflow files and the like are subjected to the operations of customization and uploading one by one, operation and maintenance personnel are required to carry out manual operation, time and labor are very consumed, and errors are more and more easy to occur in the operation process of the operation and maintenance personnel along with the increase of the files required to be customized and uploaded.
Thus, there is a need for a method that can automate the deployment of database scripts, packages, scripts, workflow files, and the like.
Disclosure of Invention
In view of this, the present application provides a method and apparatus for automatic deployment of configuration files, which are used to improve the efficiency of deploying database scripts, program packages, scripts, workflow files, and the like.
In order to achieve the above object, the present invention provides the following technical solutions:
the first aspect of the application provides a method for automatically deploying a configuration file, which comprises the following steps:
acquiring a customized parameter configuration file; the customized parameter configuration file is a parameter configuration file customized according to a deployment environment; the customized parameter configuration file at least comprises information of one file to be configured; the information of the file to be configured comprises path information of the file to be configured and parameter configuration information corresponding to the file to be configured;
searching and obtaining each file to be configured according to the path information of each file to be configured;
for each file to be configured, configuring the file to be configured according to parameter configuration information corresponding to the file to be configured to obtain a customized configuration file;
uploading each customized configuration file to a host to trigger the host to deploy each customized configuration file.
Optionally, the searching to obtain each to-be-configured file according to the path information of each to-be-configured file further includes:
and searching each file to be configured according to the path information of each file to be configured, and displaying the current searching progress in real time.
Optionally, after searching for each to-be-configured file according to the path information of each to-be-configured file, the method further includes:
if the to-be-configured file is not found according to the path information of the to-be-configured file, sending out alarm information; the alarm information is used for explaining that the path information of the file to be configured is not found.
Optionally, for each to-be-configured file, configuring the to-be-configured file according to parameter configuration information corresponding to the to-be-configured file to obtain a customized configuration file, and further includes:
and configuring the to-be-configured file according to the parameter configuration information corresponding to the to-be-configured file to obtain a customized configuration file, and displaying the current configuration progress in real time.
Optionally, the uploading each of the customized configuration files to a host to trigger the host to deploy each of the customized configuration files further includes:
uploading each customized configuration file to a host computer to trigger the host computer to deploy each customized configuration file, and displaying the current uploading progress in real time.
A second aspect of the present application provides an apparatus for automated deployment of a configuration file, comprising:
the acquisition unit is used for acquiring the customized parameter configuration file; the customized parameter configuration file is a parameter configuration file customized according to a deployment environment; the customized parameter configuration file at least comprises information of one file to be configured; the information of the file to be configured comprises path information of the file to be configured and parameter configuration information corresponding to the file to be configured;
the query unit is used for searching and obtaining each file to be configured according to the path information of each file to be configured;
the configuration unit is used for configuring the files to be configured according to the parameter configuration information corresponding to the files to be configured for each file to be configured to obtain customized configuration files;
and the uploading unit is used for uploading each customized configuration file to a host so as to trigger the host to deploy each customized configuration file.
Optionally, the query unit further includes:
the searching progress display unit is used for searching each file to be configured according to the path information of each file to be configured, and displaying the current searching progress in real time.
Optionally, the device for automatically deploying the configuration file further includes:
the alarm unit is used for sending alarm information if the to-be-configured file is not found according to the path information of the to-be-configured file; the alarm information is used for explaining that the path information of the file to be configured is not found.
Optionally, the configuration unit further includes:
the configuration progress display unit is used for configuring the files to be configured according to the parameter configuration information corresponding to the files to be configured, obtaining customized configuration files and displaying the current configuration progress in real time.
Optionally, the uploading unit further includes:
and the uploading progress display unit is used for uploading each customized configuration file to the host computer so as to trigger the host computer to deploy each customized configuration file and display the current uploading progress in real time.
According to the scheme, in the method and the device for automatically deploying the configuration file, the customized parameter configuration file is obtained; the customized parameter configuration file is a parameter configuration file customized according to a deployment environment; the customized parameter configuration file at least comprises information of one file to be configured; the information of the file to be configured comprises path information of the file to be configured and parameter configuration information corresponding to the file to be configured; then, searching and obtaining each file to be configured according to the path information of each file to be configured; configuring the files to be configured according to parameter configuration information corresponding to the files to be configured aiming at each file to be configured to obtain customized configuration files; and finally, uploading each customized configuration file to a host to trigger the host to deploy each customized configuration file. Therefore, the aim of rapidly deploying database scripts, program packages, scripts, workflow files and the like is fulfilled.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for automated deployment of a configuration file according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an apparatus for automated deployment of a configuration file according to another embodiment of the present application;
FIG. 3 is a schematic diagram of a query unit according to another embodiment of the present application;
FIG. 4 is a schematic diagram of an apparatus for automated deployment of a configuration file according to another embodiment of the present application;
FIG. 5 is a schematic diagram of a configuration unit according to another embodiment of the present application;
fig. 6 is a schematic diagram of an uploading unit according to another embodiment of the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that the terms "first," "second," and the like in this application are used merely to distinguish between different devices, modules, or units and are not intended to limit the order or interdependence of functions performed by such devices, modules, or units, but the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but also other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Firstly, it should be noted that, before executing the method for automatically deploying the configuration file disclosed in the embodiments of the present application, a customized parameter configuration file customized according to a deployment environment needs to be constructed, where the customized parameter configuration file includes at least one piece of information of a to-be-configured file, and the to-be-configured file includes path information of the to-be-configured file and parameter configuration information corresponding to the to-be-configured file. The files to be configured may be, but are not limited to, database scripts (mysql, hive, mongo, redis, etc.), program zip packages, shell scripts, workflow xml files, etc.
Wherein, hive is data warehouse software under a big data environment, can support pb-level super-big data volume management, and supports the development grammar of class sql; mongo is a database based on distributed file storage, is a product between a relational database and a non-relational database, and has the most abundant functions in the non-relational database but is most similar to the relational database; redis (full name: remote Dictionary Server remote dictionary service) is an open-source log-type, key-Value database written in ANSIC language, supporting network, and capable of being based on memory and being durable; mySQL is the most popular relational database management system, mySQL is one of the best RDBMS (Relational Database Management System: relational database management system) application software in WEB applications; xml files refer to the extended markup language (extensible markup language) used to describe data; workflow refers to the automation of part or all of a business process in a computer application environment. It is understood that this is an abstract, generalized description of the workflow and business rules between its operational steps.
Based on the customized parameter configuration file customized according to the deployment environment disclosed in the foregoing, the method for automatically deploying a configuration file provided in the embodiment of the present application may be performed, as shown in fig. 1, and includes:
s101, acquiring a customized parameter configuration file.
The customized parameter configuration file is a parameter configuration file customized according to the deployment environment; the customized parameter configuration file at least comprises information of one file to be configured; the information of the file to be configured comprises path information of the file to be configured and parameter configuration information corresponding to the file to be configured.
It should be noted that the deployment scenario may be, but is not limited to, development, testing, and production. The customized parameter configuration file can be customized according to the requirements of the client, the client can select and customize according to the actual application scene, the use habit and the like, and finally, the parameter configuration file is compiled and uploaded by an operation and maintenance person.
It should be further noted that the customized parameter configuration file may not only be a parameter configuration file preset according to an actual deployment scenario; the system can also be a self-defined parameter configuration file selected by a user.
Specifically, but not limited to, a simple data reading module is used for reading the customized parameter configuration file uploaded by the operation and maintenance personnel.
S102, searching and obtaining each file to be configured according to the path information of each file to be configured.
Specifically, but not limited to, a folder in which the to-be-configured file is located is found according to path information of the to-be-configured file, and then the to-be-configured file is found according to identification information of the to-be-configured file.
Optionally, in another embodiment of the present application, an implementation of step S102 further includes:
and searching each file to be configured according to the path information of each file to be configured, and displaying the current searching progress in real time.
Specifically, in the searching process, the searching progress can be displayed to the user through a preset display interface. For example, 5 files A, B, C, D and E to be configured need to be searched, when a file a to be configured has been searched, the display interface displays that the current searching progress is 20%, displays that the file a to be configured has been searched, and continues to search for files B, C, D and E to be configured.
Optionally, in another embodiment of the present application, an implementation after step S102 further includes:
and if the to-be-configured file is not found according to the path information of the to-be-configured file, sending out alarm information.
The alarm information is used for explaining that the path information passing through the file to be configured is not found. The warning device can be a simple page popup window prompt, can also be used for reminding a user by lighting an indicator lamp, has diversified warning modes and is not limited in the method.
S103, configuring the files to be configured according to the parameter configuration information corresponding to the files to be configured aiming at each file to be configured, and obtaining the customized configuration files.
Optionally, in another embodiment of the present application, step S103 is an implementation manner, further including:
and configuring the to-be-configured file according to the parameter configuration information corresponding to the to-be-configured file to obtain a customized configuration file, and displaying the current configuration progress in real time.
Specifically, when the to-be-configured file is configured according to the parameter configuration information corresponding to the to-be-configured file, the configuration progress can be displayed to the user in real time through a preset display interface. If errors occur in the configuration process, the user can terminate the current configuration operation, and after the fault processing is finished, the configuration of the files to be configured is continued from the termination position according to the parameter configuration information corresponding to the files to be configured, without the need of re-configuring the files to be configured according to the parameter configuration information corresponding to the files to be configured, according to the previously displayed configuration progress.
S104, uploading each customized configuration file to the host computer to trigger the host computer to deploy each customized configuration file.
Optionally, in another embodiment of the present application, an implementation of step S104 further includes:
uploading each customized configuration file to a host computer to trigger the host computer to deploy each customized configuration file, and displaying the current uploading progress in real time.
Specifically, when uploading each customized configuration file to the host, the uploading progress of the configuration files can be displayed to the user through a preset display interface. If an error occurs in the uploading process, and the uploading needs to be stopped immediately, the user can pause the operation, and after the fault processing is finished, the configuration file is continuously uploaded to the host from the termination position according to the uploading progress displayed before, and the configuration file is not required to be uploaded to the host again.
According to the scheme, in the method for automatically deploying the configuration file, the customized parameter configuration file is obtained; the customized parameter configuration file is a parameter configuration file customized according to the deployment environment; the customized parameter configuration file at least comprises information of one file to be configured; the information of the file to be configured comprises path information of the file to be configured and parameter configuration information corresponding to the file to be configured; then, searching to obtain each file to be configured according to the path information of each file to be configured; configuring the files to be configured according to parameter configuration information corresponding to the files to be configured aiming at each file to be configured to obtain customized configuration files; and finally, uploading each customized configuration file to the host computer to trigger the host computer to deploy each customized configuration file. Therefore, the aim of rapidly deploying database scripts, program packages, scripts, workflow files and the like is fulfilled.
Another embodiment of the present application provides an apparatus for automated deployment of a configuration file, as shown in fig. 2, including:
an obtaining unit 201, configured to obtain a customized parameter configuration file.
The customized parameter configuration file is a parameter configuration file customized according to the deployment environment; the customized parameter configuration file at least comprises information of one file to be configured; the information of the file to be configured comprises path information of the file to be configured and parameter configuration information corresponding to the file to be configured.
It should be noted that the deployment scenario may be, but is not limited to, development, testing, and production. The customized parameter configuration file can be customized according to the requirements of the client, the client can select and customize according to the actual application scene, the use habit and the like, and finally, the parameter configuration file is compiled and uploaded by an operation and maintenance person.
It should be further noted that the customized parameter configuration file may not only be a parameter configuration file preset according to an actual deployment scenario; the system can also be a self-defined parameter configuration file selected by a user.
And the query unit 202 is configured to search and obtain each file to be configured according to the path information of each file to be configured.
Optionally, in another embodiment of the present application, an implementation manner of the query unit 202, as shown in fig. 3, further includes:
the searching progress display unit 300 is configured to search each file to be configured according to the path information of each file to be configured, and display the current searching progress in real time.
Specifically, in the searching process, the searching progress may be displayed to the user through the searching progress display unit 300. For example, 5 to-be-configured files A, B, C, D and E need to be searched, and when to-be-configured file a has been searched, the search progress display unit 300 displays that the current search progress is 20%, displays that to-be-configured file a has been searched, and continues to search for to-be-configured files B, C, D and E.
The specific working process of the unit disclosed in the foregoing embodiments of the present application may refer to the content of the corresponding method embodiment, which is not described herein again.
Optionally, in another embodiment of the present application, an apparatus for automatic deployment of a configuration file, as shown in fig. 4, further includes:
and the alarm unit 400 is configured to send out alarm information if the to-be-configured file is not found according to the path information of the to-be-configured file.
The alarm information is used for explaining that the path information passing through the file to be configured is not found.
The specific working process of the unit disclosed in the foregoing embodiments of the present application may refer to the content of the corresponding method embodiment, which is not described herein again.
The configuration unit 203 is configured to configure the to-be-configured files according to the parameter configuration information corresponding to the to-be-configured files for each to-be-configured file, so as to obtain the customized configuration file.
Optionally, in another embodiment of the present application, an implementation manner of the configuration unit 203, as shown in fig. 5, further includes:
the configuration progress display unit 500 is configured to configure the to-be-configured file according to the parameter configuration information corresponding to the to-be-configured file, obtain a customized configuration file, and display the current configuration progress in real time.
Specifically, when the to-be-configured file is configured according to the parameter configuration information corresponding to the to-be-configured file, the configuration progress may be displayed to the user in real time through the configuration progress display unit 500. If an error occurs in the configuration process, the user may terminate the current configuration operation, and after the fault processing is finished, configure the to-be-configured file according to the parameter configuration information corresponding to the to-be-configured file from the termination position according to the configuration progress displayed by the previous configuration progress display unit 500, without having to reconfigure the to-be-configured file according to the parameter configuration information corresponding to the to-be-configured file.
The specific working process of the unit disclosed in the foregoing embodiments of the present application may refer to the content of the corresponding method embodiment, which is not described herein again.
And the uploading unit 204 is configured to upload each of the customized configuration files to the host, so as to trigger the host to deploy each of the customized configuration files.
The specific working process of the unit disclosed in the foregoing embodiments of the present application may refer to the content of the corresponding method embodiment, as shown in fig. 1, which is not repeated herein.
Optionally, in another embodiment of the present application, an implementation manner of the uploading unit 204, as shown in fig. 6, further includes:
the uploading progress displaying unit 600 is configured to upload each customized configuration file to the host, so as to trigger the host to deploy each customized configuration file, and display the current uploading progress in real time.
Specifically, when each customized configuration file is uploaded to the host, the uploading progress of the configuration file may be displayed to the user through the uploading progress display unit 600. If an error occurs in the uploading process, and the uploading needs to be stopped immediately, the user can pause the operation, and after the fault processing is finished, the uploading of the configuration file to the host computer is continued from the termination position according to the uploading progress displayed by the previous uploading progress display unit 600, without uploading the configuration file to the host computer again.
The specific working process of the unit disclosed in the foregoing embodiments of the present application may refer to the content of the corresponding method embodiment, which is not described herein again.
As can be seen from the above solutions, in the device for automatic deployment of a configuration file provided in the present application, a customized parameter configuration file is obtained through an obtaining unit 201; the customized parameter configuration file is a parameter configuration file customized according to the deployment environment; the customized parameter configuration file at least comprises information of one file to be configured; the information of the file to be configured comprises path information of the file to be configured and parameter configuration information corresponding to the file to be configured; then, searching to obtain each file to be configured by utilizing the query unit 202 according to the path information of each file to be configured; the configuration unit 203 configures the files to be configured according to the parameter configuration information corresponding to the files to be configured for each file to be configured to obtain customized configuration files; finally, each customized configuration file is uploaded to the host through the uploading unit 204 to trigger the host to deploy each customized configuration file. Therefore, the aim of rapidly deploying database scripts, program packages, scripts, workflow files and the like is fulfilled.
In the above embodiments of the disclosure, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus and method embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in various embodiments of the present disclosure may be integrated together to form a single portion, or each module may exist alone, or two or more modules may be integrated to form a single portion. The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in essence or a part contributing to the prior art or a part of the technical solution, or in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a live device, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In this application, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Those skilled in the art can make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method for automated deployment of a configuration file, comprising:
acquiring a customized parameter configuration file; the customized parameter configuration file is a parameter configuration file customized according to the user requirement; the customized parameter configuration file at least comprises information of one file to be configured; the information of the file to be configured comprises path information of the file to be configured, identification information of the file to be configured and parameter configuration information corresponding to the file to be configured;
searching to obtain folders in which each file to be configured is located according to the path information of each file to be configured, and searching to obtain the files to be configured according to the identification information of the files to be configured;
for each file to be configured, configuring the file to be configured according to parameter configuration information corresponding to the file to be configured to obtain a customized configuration file; if errors occur in the configuration process, the current configuration operation is terminated, and after the fault processing is finished, the configuration is continued from the termination position;
uploading each customized configuration file to a host to trigger the host to deploy each customized configuration file.
2. The method of claim 1, wherein the searching for the folder in which each of the files to be configured is located according to the path information of each of the files to be configured, and searching for the file to be configured according to the identification information of the file to be configured, further includes:
searching to obtain folders in which each file to be configured is located according to the path information of each file to be configured, searching to obtain files to be configured according to the identification information of the files to be configured, and displaying the current searching progress and the files to be configured which are already searched in real time.
3. The method of claim 1, wherein the searching for the folder in which each of the files to be configured is located according to the path information of each of the files to be configured, and searching for the file to be configured according to the identification information of the file to be configured, further comprises:
if the to-be-configured file is not found according to the path information of the to-be-configured file, sending out alarm information; the alarm information is used for explaining that the path information of the file to be configured is not found.
4. The method of claim 1, wherein for each of the to-be-configured files, configuring the to-be-configured file according to parameter configuration information corresponding to the to-be-configured file to obtain a customized configuration file, further comprises:
and configuring the to-be-configured file according to the parameter configuration information corresponding to the to-be-configured file to obtain a customized configuration file, and displaying the current configuration progress in real time.
5. The method of claim 1, wherein uploading each of the customized configuration files to a host to trigger the host to deploy each of the customized configuration files, further comprises:
uploading each customized configuration file to a host computer to trigger the host computer to deploy each customized configuration file, and displaying the current uploading progress in real time.
6. An apparatus for automated deployment of a configuration file, comprising:
the acquisition unit is used for acquiring the customized parameter configuration file; the customized parameter configuration file is a parameter configuration file customized according to a deployment environment; the customized parameter configuration file at least comprises information of one file to be configured; the information of the file to be configured comprises path information of the file to be configured, identification information of the file to be configured and parameter configuration information corresponding to the file to be configured;
the query unit is used for searching and obtaining folders in which each file to be configured is located according to the path information of each file to be configured, and searching and obtaining the files to be configured according to the identification information of the files to be configured;
the configuration unit is used for configuring the files to be configured according to the parameter configuration information corresponding to the files to be configured for each file to be configured to obtain customized configuration files; if errors occur in the configuration process, the current configuration operation is terminated, and after the fault processing is finished, the configuration is continued from the termination position;
and the uploading unit is used for uploading each customized configuration file to a host so as to trigger the host to deploy each customized configuration file.
7. The apparatus of claim 6, wherein the query unit further comprises:
the searching progress display unit is used for searching and obtaining folders in which each file to be configured is located according to the path information of each file to be configured, searching and obtaining the file to be configured according to the identification information of the file to be configured, and displaying the current searching progress and the searched file to be configured in real time.
8. The apparatus of claim 6, wherein the means for automated deployment of the configuration file further comprises:
the alarm unit is used for sending alarm information if the to-be-configured file is not found according to the path information of the to-be-configured file; the alarm information is used for explaining that the path information of the file to be configured is not found.
9. The apparatus of claim 6, wherein the configuration unit further comprises:
the configuration progress display unit is used for configuring the files to be configured according to the parameter configuration information corresponding to the files to be configured, obtaining customized configuration files and displaying the current configuration progress in real time.
10. The apparatus of claim 6, wherein the upload unit further comprises:
and the uploading progress display unit is used for uploading each customized configuration file to the host computer so as to trigger the host computer to deploy each customized configuration file and display the current uploading progress in real time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010353222.7A CN111552523B (en) | 2020-04-29 | 2020-04-29 | Automatic deployment method and device for configuration files |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010353222.7A CN111552523B (en) | 2020-04-29 | 2020-04-29 | Automatic deployment method and device for configuration files |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111552523A CN111552523A (en) | 2020-08-18 |
CN111552523B true CN111552523B (en) | 2024-02-23 |
Family
ID=71998390
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010353222.7A Active CN111552523B (en) | 2020-04-29 | 2020-04-29 | Automatic deployment method and device for configuration files |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111552523B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102299909A (en) * | 2009-09-24 | 2011-12-28 | 费希尔-罗斯蒙特系统公司 | Integrated unified threat management for a process control system |
CN104317610A (en) * | 2014-10-11 | 2015-01-28 | 福建新大陆软件工程有限公司 | Method and device for automatic installation and deployment of hadoop platform |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10042656B2 (en) * | 2011-08-01 | 2018-08-07 | Avocent Corporation | System and method for providing migrateable virtual serial port services |
US20130343379A1 (en) * | 2012-06-21 | 2013-12-26 | Jonathan Stroud | Ethernet-based internal device management |
-
2020
- 2020-04-29 CN CN202010353222.7A patent/CN111552523B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102299909A (en) * | 2009-09-24 | 2011-12-28 | 费希尔-罗斯蒙特系统公司 | Integrated unified threat management for a process control system |
CN104317610A (en) * | 2014-10-11 | 2015-01-28 | 福建新大陆软件工程有限公司 | Method and device for automatic installation and deployment of hadoop platform |
Also Published As
Publication number | Publication date |
---|---|
CN111552523A (en) | 2020-08-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8255899B2 (en) | Techniques for upgrade dependency management | |
US20210318851A1 (en) | Systems and Methods for Dataset Merging using Flow Structures | |
CN105324769B (en) | For generating the solution for being used for the set of scripts of automated data library migration | |
US10372492B2 (en) | Job-processing systems and methods with inferred dependencies between jobs | |
US20170220548A1 (en) | System and method for creation of templates | |
CN108491331A (en) | Method for testing software, device, equipment and computer storage media | |
CA2991150C (en) | Multi-stage network discovery | |
CN107643932B (en) | Data acquisition method, acquisition device and storage device | |
CN107329765B (en) | Program file processing method and device | |
CN105095074B (en) | Upgrade test method and device for configuration file | |
CN108182215A (en) | A kind of method and device of structured query language SQL performance statistics | |
US20230168888A1 (en) | Code analysis method and system, and computing device | |
CN109857630A (en) | Code detection method, system and equipment | |
CN111949607B (en) | Method, system and device for monitoring UDT file | |
CN110334326A (en) | A kind of method and system for identifying recipe file and being converted into XML file | |
CN105843871B (en) | Control and management system of distributed application files | |
CN114650167B (en) | Abnormality detection method, abnormality detection device, abnormality detection equipment and computer-readable storage medium | |
CN111552523B (en) | Automatic deployment method and device for configuration files | |
CN114490594A (en) | Database management method and device, electronic equipment and computer storage medium | |
CN104090780A (en) | Automatic configuration method and cloud compiling system | |
KR101974631B1 (en) | Method for providing customer supproting service using manual after auto-checking based on history log and ambient condition | |
WO2016206395A1 (en) | Weekly report information processing method and device | |
CN104978379A (en) | Method and device for building application program information station | |
CN108989074A (en) | Programme upgrade method and program upgrade apparatus | |
CN112817953A (en) | Data verification method and device, computer equipment and computer-readable 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |