CN103984573B - The installation method and device of application program - Google Patents

The installation method and device of application program Download PDF

Info

Publication number
CN103984573B
CN103984573B CN201410225025.1A CN201410225025A CN103984573B CN 103984573 B CN103984573 B CN 103984573B CN 201410225025 A CN201410225025 A CN 201410225025A CN 103984573 B CN103984573 B CN 103984573B
Authority
CN
China
Prior art keywords
installation
file
destination server
version
installation steps
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410225025.1A
Other languages
Chinese (zh)
Other versions
CN103984573A (en
Inventor
聂波
唐芳芳
王辉
沈力
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201410225025.1A priority Critical patent/CN103984573B/en
Publication of CN103984573A publication Critical patent/CN103984573A/en
Application granted granted Critical
Publication of CN103984573B publication Critical patent/CN103984573B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a kind of installation method of application program and device, wherein, this method includes:Obtain the installation file of the application program of the destination server to be installed into operation system, wherein, it has been pre-configured with the erection sequence of each installation steps in the installation file and each installation steps is compressed according to the address of destination server, the variate-value in each installation steps is configured according to the demand of destination server;The application program is attached in the corresponding destination server of operation system according to each installation steps in the installation file.The present invention is solved in the prior art, error rate is higher caused by needing manually to configure parameter during application program is installed, the technical problem that the reliability of software installation is difficult to ensure that, has reached the purpose for effectively improving application program installation reliability.

Description

The installation method and device of application program
Technical field
The present invention relates to application program mounting technique field, the installation method and device of more particularly to a kind of application program.
Background technology
Information technology system is generally all very huge, the application program of each operation system in Information technology system Actual installation mode have nothing in common with each other, be normally applied program and be all made up of multiple complicated functional units, each functional unit is more It is related to different destination servers, while the configuration for parameter between different operation systems can be related to substantial amounts of maintenance Operation, traditional version mounting means needs attendant to carry out substantial amounts of maintenance by hand when mounted and configure, due to artificial Operation inevitably causes error, also, the period for needing to shut down in business is installed and updated to the version of application program Interior to complete, the time is more nervous, will certainly so increase the error rate of configuration, so that application program after installation is complete can In the presence of very big operation risk.
The content of the invention
The embodiments of the invention provide a kind of installation method of application program, application program installation reliability is improved to reach Purpose, this method includes:
The installation file of the application program of the destination server to be installed into operation system is obtained, wherein, it is described that text is installed The erection sequence and each installation steps item of each installation steps have been pre-configured with part according to the ground of destination server Location is compressed, the variate-value in each installation steps is configured according to the demand of destination server;
It is corresponding that operation system is attached to according to each installation steps in the installation file by the application program In destination server.
In one embodiment, in the installation file installation steps include:File transmits item and script performs item, Wherein, the file transmission item is used to trigger the file download in the version medium of application program to corresponding destination service Device, the script, which performs item, to be used to trigger the specific installation procedure to destination server.
In one embodiment, the application program is attached to according to each installation steps in the installation file In the corresponding destination server of operation system, including:
Order obtains an installation steps from the installation file;
If the installation steps obtained, which are scripts, performs item, the destination server corresponding to the installation steps is sent out File execute instruction is sent, triggering destination server performs the execute instruction;
If the installation steps obtained are file transmission items, the destination server corresponding to the installation steps is sent out File is sent to preserve instruction, triggering destination server preserves the version file carried in the preservation instruction to the target mesh of setting Record;
It is determined that whether current installation steps are final item, if it is not, then continue to obtain next installation steps, Until current installation steps are final item.
In one embodiment, the execute instruction includes:Overlay file, and/or, perform file.
In one embodiment, triggering destination server performs the execute instruction, including:Trigger the destination server In agent side server perform the execute instruction;
Triggering destination server preserves the version file carried in the preservation instruction to the target directory of setting, bag Include:The agent side server triggered in the destination server preserves the version file carried in the preservation instruction to setting Target directory.
In one embodiment, before installation file is obtained, methods described also includes:
Obtain by the version installation process by the application program in operation system, be converted to multiple by installation steps The step of composition combination;
Obtain address and the variable-value of the corresponding destination server of each step;
The version file of the application program is decompressed, is replaced with the variable-value of acquisition in the version file after decompression Variable, be compressed according to the address of the corresponding destination server of each step to replacing the version file after variable, it is raw Into installation file corresponding with the destination server in operation system.
In one embodiment, the corresponding purpose of each step in each step combination is stored using EXCEL modes The address of server and variable-value.
The embodiments of the invention provide a kind of erecting device of application program, application program installation reliability is improved to reach Purpose, the device includes:
First acquisition module, the installation text of the application program for obtaining the destination server to be installed into operation system Part, wherein, the erection sequence and each installation steps item of each installation steps have been pre-configured with the installation file Address according to destination server is compressed, the variate-value in each installation steps enters according to the demand of destination server Row configuration;
Module is installed, for the application program to be attached into industry according to each installation steps in the installation file In the corresponding destination server of business system.
In one embodiment, in the installation file installation steps include:File transmits item and script performs item, Wherein, the file transmission item is used to trigger the file download in the version medium of application program to corresponding destination service Device, the script, which performs item, to be used to trigger the specific installation procedure to destination server.
In one embodiment, the installation module includes:
Acquiring unit, an installation steps are obtained for order from the installation file;
First trigger element, for being in the case that script performs item, to the installation steps in the installation steps of acquisition Destination server corresponding to sends file execute instruction, and triggering destination server performs the execute instruction;
Second trigger element, in the case of being file transmission item in the installation steps of acquisition, to the installation steps Destination server corresponding to sends file and preserves instruction, triggers destination server by the version for preserving and being carried in instruction File is preserved to the target directory of setting;
Determining unit, for determining whether current installation steps are final item, if it is not, then continuing to obtain next Individual installation steps, until current installation steps are final item.
In one embodiment, the execute instruction includes:Overlay file, and/or, perform file.
In one embodiment, first trigger element takes specifically for the agent side triggered in the destination server Business device performs the execute instruction;
Second trigger element preserves the version file carried in instruction specifically for triggering destination server by described Preserve to the target directory of setting, including:The agent side server triggered in the destination server is preserved described in instruction The version file of carrying is preserved to the target directory of setting.
In one embodiment, in addition to:Second acquisition module, for before installation file is obtained, obtaining by by institute State version installation process of the application program in operation system, be converted to it is multiple by installation steps item constitute the step of combination;
3rd acquisition module, address and variable-value for obtaining the corresponding destination server of each step;
Decompression module, the version file for decompressing the application program is replaced with the variable-value of acquisition and decompressed The variable in version file after contracting, according to the address of the corresponding destination server of each step to replacing the version after variable File is compressed, and generates installation file corresponding with the destination server in operation system.
In one embodiment, the corresponding purpose of each step in each step combination is stored using EXCEL modes The address of server and variable-value.
In embodiments of the present invention, because being pre-configured with the peace of each installation steps in the installation file obtained Dress is sequentially and each installation steps are compressed according to the address of the destination server in operation system, each is installed Variate-value in step is configured according to the demand of destination server, therefore, without carrying out again during installation Parameter configuration, and because having specified destination server, each step directly can be installed to corresponding destination service In device, solve through the above way in the prior art, need manually to match somebody with somebody parameter during application program is installed Error rate is higher caused by putting, the technical problem that the reliability of software installation is difficult to ensure that, has reached and has effectively improved application The purpose of program installation reliability.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, not Constitute limitation of the invention.In the accompanying drawings:
Fig. 1 is the method flow diagram of the installation method of the application program of the embodiment of the present invention;
Fig. 2 is the structural representation of the automation installation system of the application version of the embodiment of the present invention;
Fig. 3 is the structural representation of the management server of the embodiment of the present invention;
Fig. 4 is the structural representation of the Agent end server of the embodiment of the present invention;
Fig. 5 is the structural representation of the erecting device of the application program of the embodiment of the present invention.
Embodiment
It is right with reference to embodiment and accompanying drawing for the object, technical solutions and advantages of the present invention are more clearly understood The present invention is described in further details.Here, the exemplary embodiment of the present invention and its illustrating to be used to explain the present invention, but simultaneously It is not as a limitation of the invention.
Inventor considers because the artificial parameter configuration that carries out is easy to mistake occur during installation, further, The configuration that quantity of parameters is carried out in short time has more aggravated the possibility of wrong generation, therefore can be in advance in installation file Parameter is configured, during installation, and system directly obtains these installation files for having carried out parameter configuration and entered automatically Row is installed.
In embodiments of the present invention there is provided a kind of installation method of application program, as shown in figure 1, comprising the following steps:
Step 101:The installation file of the application program of the destination server to be installed into operation system is obtained, wherein, institute State the erection sequence that each installation steps have been pre-configured with installation file and each installation steps item takes according to target The address of business device is compressed, the variate-value in each installation steps is configured according to the demand of destination server;
Step 102:The application program is attached to business system according to each installation steps in the installation file Unite in corresponding destination server.
In the above-described embodiments, because being pre-configured with the installation of each installation steps in the installation file obtained Sequentially and each installation steps is compressed according to the address of the destination server in operation system, each installs step Variate-value in rapid item is configured according to the demand of destination server, therefore, without being joined again during installation Number configuration, and because having specified destination server, each step directly can be installed to corresponding destination server In, solve through the above way in the prior art, need manually to configure parameter during application program is installed Caused by error rate it is higher, the technical problem that the reliability of software installation is difficult to ensure that has reached to effectively improve and has applied journey The purpose of sequence installation reliability.
Before above-mentioned steps 101, the automatic mount request for receiving application version can also be included, i.e., pacified at this Fill the version installation that application program is carried out under the triggering of request.
Because install application program during, it is necessary to it is documentary transmission and file installation, therefore, above-mentioned peace Installation steps in dress file can include:File transmits item and script performs item, wherein, file transmission item is used for triggering will File download in the version medium of application program is to corresponding destination server, and script, which performs item, to be used to trigger to destination service The specific installation procedure of device.
Different operating systems are often assembled with the different destination server of operation system, in order to realize Software on different target server is installed automatically, can use and Agent (agency) journey is all installed on every destination server The mode of sequence, the reception and execution of installation steps are completed by Agent, and the server of centralized management is only needed to and Agent Communicated, just can realize cross-platform installation version.In one embodiment, according to each installation in the installation file The application program is attached in the corresponding destination server of operation system and can included by step:Order installs text from described An installation steps are obtained in part;If the installation steps obtained, which are scripts, performs item, to the installation steps, institute is right The Agent end server for the destination server answered sends file execute instruction, triggers and is held described in the Agent end server execution Row instruction, wherein, it can include in the execute instruction:Overlay file, execution file;If the installation steps obtained are texts Part transmits item, then the Agent end server of the destination server corresponding to the installation steps sends file and preserves instruction, touches Send out Agent end server described and preserve the version file that is carried in instruction of preserving to the target directory of setting;It is determined that working as Whether preceding installation steps are final item, if it is not, then continuing to obtain next installation steps, until current installation Step is final item.
Above-mentioned installation file needs to previously generate, specifically, generating above-mentioned installation file can include:Will be described Version installation process of the application program in operation system, be converted to it is multiple by installation steps item constitute the step of combination, really Determine and store the address of the corresponding destination server of each step and variable-value in each step combination;Receive and install File generated is asked, and decompresses the version file of the application program, and the version after decompression is replaced with the variable-value of acquisition Variable in file, is pressed replacing the version file after variable according to the address of the corresponding destination server of each step Contracting, generates installation file corresponding with the destination server in operation system.That is, each step that is stored with systems in advance The address of corresponding server, and the value that variable corresponds to needed for the server are combined, so application program is being got Version file after, gone with the corresponding variable-value obtained from system replace each variable value so that generate correspondence Variable in the installation file of destination server, the installation file of this when has been just the variable for setting variable-value , and the address with corresponding destination server is bound, because corresponding destination service can be immediately sent to In device.
Measured for the address and change of the corresponding destination server of each step in above-mentioned each step combination Value can be stored using EXCEL modes.
The above embodiment of the present invention is specifically described with reference to a specific embodiment, however it is noticeable It is that the specific embodiment is not merely to effective description present invention, constitutes inappropriate limitation of the present invention.
In this example there is provided a kind of application program installation method and system for realizing version automation installation, specifically, The version installation process of all operation systems is abstracted into unified basis action, by the way that these basis actions are combined into tool The operation system of body, so as to realize that the version of any operation system is installed automatically.
For single operation system, the action sequence between different editions substantially can be by simply editing progress Reuse, the order between multiple versions can be customized easily, so that the mass automation for completing version is installed.Pass through Version configuration is kept completely separate with version actual installation process, by the control of substantial amounts of configuration work in the advance in installation process OK, and verified.By the configuration of parameter particular value, for same medium, peace of the generation for actual installation server Dress bag, so that same medium is realized, the effect that many places are installed.
The installation method for the application program that this example is provided, can dispose the operation system group for operating in different operating system In part.
In order to realize mass, it is cross-platform, application version is fully automatically installed, mainly including following steps:
1) the automatic transformation installed atomic operation, realize installation automation is carried out
Need to analyze the installation process of operation system version, extract various installation steps in each operation system General character, mainly includes two generic operations:
One class is that the file in version medium is reached to the server for implementing to install under Central Management Server, these texts Part includes:Program, script, executable file etc.;
Another kind of specifically operated in server to be installed, and these operations mainly include:Perform database pin Sheet, operation program, create directory, copied files etc..
During mounting design is automated, above-mentioned two generic operation can be named as to file transmission item and script is performed , wherein, file transmission item is comprising key element:The file storing path (source path) of management end server, Agent end (target) File storing path (destination path), file owners, file permission, coded format of server etc., for more detailed Key element needs the explanation in configuration file, and script performs item and is comprising key element:Script execution route, content for script, report an error statistics Keyword etc..
Using above-mentioned two as ground atom, by the sequence to ground atom, by the version of all operation systems, pin To different type server (for example:Database server, application server, bulk service device etc.) specific installation procedure transformation To meet the step of definition is installed in automation combination.The element information of combination and items is recorded in background data base, can be with Imported or exported with Excel forms, operation system is during actual installation version, according to each determined in combination Order installed.
Because the file of Excel forms is maintained easily, developer very easily can be assembled by existing combined copy Cheng Xin combination, so as to quickly realize the customization of installation process between multiple versions.
2) realize that cross-platform multicompartment is installed by Agent
Each component of financial service system often all corresponds to different server groups, and these servers are often fitted with Different operating system.For example:Edition data storehouse part needs to be arranged on (AIX system), application program in database server Part needs to be arranged in apps server (being solaris system).
In this example by disposing Agent programs on the destination server of installation, management service is come to complete to receive The action such as the instruction of device and record back information, wherein, Agent programs to the equal released version of different platform, management server with Agent is communicated, and execute instruction is transmitted and performs processing, realizes cross-platform installation version.
3) realized by defined variable and automatically generate configuration file, and the flexible and changeable of item content is installed
Because operation system is sufficiently complex, the component of many operation systems is required for being arranged on many physical machines On, and with portion configuration file in version, it is possible to specific configuration has been required for each machine (for example:Some parameter is It is required that the IP address of configuration the machine), while being also what is had differences, such as between many physical machines:In A machines, version Source program is arranged on the catalogue of C disks 1, and in B machines, source program is possibly mounted at the catalogue of D disks 2.
In this example, by defined variable so that file transmission item and script perform the fundamental of item and apply journey Variable is supported to set in all configuration files of sequence, the variable form used can be defined as:$ # { parameterName }, area Not in all already present variable forms at present.Same variable, can be directed to different environment, different server address, Multiple different particular values are set, and these information are recorded in background data base, importing and exporting for Excel forms is supported.
Variable, which is set, once to come into force, and secondary to use, the variable of each operation system after set-up is complete, subsequently carries out version During this installation, it is not necessary to re-start editor again, so as to farthest reduce configuration work amount.
During being passed under version, by management end program by all variables, the particular machine recorded according to system Information, replaces with the particular value set, so that the real complete installation information for each server is generated, and completely Configuration file, when performing version and installing, use is the content for having replaced completion, it is achieved thereby that version is situated between Matter, the purpose that many places are installed automatically.
4) version configuration is installed with version and separated
Because financial service system is in large scale, the upgrading of business each time can all be related to up to a hundred operation systems, one Operation system may be needed to be arranged on hundreds physical server, and the installation of all operation systems and all versions is all concentrated In limited time window, the configuration file in version is related to substantial amounts of maintenance by hand and configured, therefore artificial operation can Error can be caused, operation risk is caused.
In this example, by the way that version is configured, version installation process separated, install version handing-over after, formally Before installation starts, you can allow attendant to fulfil the setting of variate-value ahead of schedule on the management server, installation task is generated, Now, by replacing variable, generation automatically for the particular version of server, configuration preparation has been finished, in version peace It in the period of dress, only need to start installation task, installation action is performed on each server of Agent end.
Because the manual maintenance of configuration file is pulled out from version installation process, and fulfil ahead of schedule, so that maximum Simplify to degree the work in version set-up time window, it is ensured that high efficiency and high reliability that version is installed.
In this example, whole version automation installation system can be as shown in Figure 2:By management server 201, Web service Device 202, database server 203, version repository servers 204, pc client 205, LAN 206, Agent end server 208 Composition, the function that each several part is realized mainly includes:
Management server 201 is a master control server, be responsible for automatic version making, down pass, configure and install All management functions;
Web server 202 is responsible for processing forward request in the front end of version repository servers 204;
Database server 203 preserves version medium information, version installation steps information, the variable letter of each operation system Breath, biography record, installation steps perform record etc. under version, the preparation installed for version and perform and provide data;
Version repository servers 204 are the storage devices of automatic version, wherein storage has the automatic version of all operation systems, Management server 201 obtains version when responding user version transmission request from version server 204;
Pc client 205 is the human-computer interaction interface that version automates installation system, and user completes automatic by the device The various interactions installed, mainly include:Initiate various requests (for example:Automation version, completion automation version correlation is made to match somebody with somebody Put, perform pre-download, start installation task, count and check installation situation etc.), triggering version automation installation procedure.
LAN 206 is used to connect management end server with all Agent end servers 208.
Agent end server 208 is the server for being mounted with Agent end program 207, it can be several operation systems, The machine of type is (for example:Database server, application server, Web server etc.), management service is received by Agent207 Instruction that device 201 is sent, execute instruction, by implementation procedure log and return information, pass through Web server 202 and obtain industry Business system version, also obtains the redaction of itself to complete to automatically update.
The inside of above-mentioned management server 201 can with as shown in figure 3, including:Version gatherer 301, version install step Rapid producing device 302, database access interface 303, version install task generating device 304, version and install execution control device 305th, lower floor's communication interface 306, wherein, version gatherer 301 is responsible for maintenance release file, by version file according to belonging to it The storage of operation system Names Catalogue structure, version installation steps producing device 302 is responsible for the making that version installs automatically, combination Deng operation, version installs task generating device 304 and is responsible for handling version file, including:Compressed version file, completion are replaced The operations such as transformation amount, generation particular server version, version is installed execution control device 305 and initiated to version repository servers 204 The request of version medium is transmitted, version file related transmitting information is received by lower floor's communication interface 306, is connect by lower floor's communication Mouth 306, which is sent, performs automatic installation steps instruction, receives the back information from Agent end server 208, each device passes through Database access interface device 303 is communicated with database server 203, completes inquiry, the renewal etc. of database information.
Above-mentioned Agent207 built-in systems are constituted as shown in figure 4, leading to including version installation steps performs device 402, upper strata Communication interface 401 and log recording conveyer 403, wherein, version installation steps performs device 402 is used to connect by upper strata communication Mouth 401 is received and version file of the processing from version repository servers 204, installation steps of the reception from management server 201 Execute instruction, and dependent instruction is performed, the action that log recording conveyer 403 is responsible in record transmission and installation process is defeated Go out, and log information is sent to management server 201 by upper strata communication interface 401.
For single version, since version whole to final automatic installation being uploaded to version librarian Individual process, including:Version file is uploaded to version repository servers 204 from pc client 205, carried out in management server 201 Automatic configuration, transmission version to Agent end server 208 simultaneously implements the three phases such as automatic installation.Separately below to above-mentioned Three phases are illustrated:
Stage 1:Upload version is to version repository servers 204
Operating personnel are by the management program page of the Access Management Access server 201 of pc client 205, and being transmitted by FTP will Version is uploaded to version repository servers 204, initiates version and imports request.
Version gatherer 301 in management server 201 is responsible for maintenance release file, and version file solution is depressed into version Storehouse server, reads and parses the Excel file such as the variable installed and used automatically and the combination of automatic step, connect by database access Mouthful, version, variable and step are combined into information record to database server.Now pc client the management program page It can be seen that the version of the operation system, variable, automatic Step Information, it is seen that release status to have imported.
Stage 2:Automatic configuration is carried out in management server 201, generation is automatic to install task
Operating personnel complete the automatic configuration for installing correlation by the management program page of pc client:For example configure certainly Server address, the default value of each variable and the value for particular server that each component of dynamic version is finally installed, correlation letter Breath is recorded in database server 203 by database access interface 303.
Automatic related all configurations (server address, variate-value etc.) are all once to come into force above, are used for multiple times.One The configuration of operation system, no matter subsequently carrying out how many times version installation, edlin need not be entered again after first time completes, So as to farthest reduce configuration work amount.
After all configurations are completed, operating personnel initiate generation and install version request automatically, and management server 201 is read please Step information in asking, task generating device 304 is installed by version, version file is obtained from version repository servers 204, to version The setting of file download items, is handled item by item during this document is combined according to automatic installation steps.By version in each processing Variable in file is replaced according to the default value or particular value of setting, while by corresponding version file in every source path Server address according to the final installation of configuration handles compression, so as to generate the actual installation version for target Agent machines This content, now the configuration file in version is to be distinguished according to download items, is configured with the particular case of each target machine Finish.The release status now seen in the management program page of pc client is to have initialized.
Stage 3:Version is installed in Agent server ends 208
This stage is the stage that version really performs installation, and installation process is carried out in window between when mounted, operator Member starts version mount request by the management program page of pc client.
The version of management server 201 installs control performs device and starts to read item by item by database access interface 303 The information of installation steps in this version file, determines whether that script performs item.
Item is performed if script, then by the instruction being set in this (such as overlay file, execution file), is led to This installation of transferring performs control device 305 and sent, and Agent end server 208 is received after instruction by upper strata communication interface 401, Controlled to perform this instruction by version installation steps performs device 402, and implementing result is remembered by log recording transmitting device 403 Record is got off, and management end is back to by upper strata communication interface 401.
Item is performed if not script, then is judged as that file transmits item, management server is installed by version and performs control Device 305 initiates instruction, and the Agent207 response instruction of version installation steps performs device 402 will complete the version of configuration This document, is preserved to the target directory of setting, and implementing result is back into management end by upper strata communication interface 401.
Management server 201 records implementing result in database server by database access interface 303, and leads to This installation of transferring performs control device 305 and implementing result is further processed:If result is failure, version is installed eventually Only;If result is successfully, continuation judges whether this is final item, if NO, then continues to read the next item down installation step Rapid information, until this is final item, then version installation.
In the above-described embodiments, the problem of numerous operation system edition upgradings are safeguarded is efficiently solved, because operation system Numerous and complicated, each operation system Various Functions, component is different, and installation process is also substantially different, and the present invention passes through installation steps Combination, realize a kind of automation mounting means for being common to all operation systems, the file installed and used automatically is used Excel forms are preserved, and are maintained easily, and are pacified so as to be rapidly completed in same operation system between multiple versions of application program The customization of dress process.
Each component of operation system often all corresponds to different server groups, and these servers are often all installed different Operating system, the present invention realizes cross-platform version and installed by disposing Agent programs in destination server.
Operation system is due to externally undertaking corresponding business service, and upgrading every time has strict time restriction, it is necessary to Completed in a few hours, but due in large scale, up to a hundred operation systems, thousands of servers, the present invention are directed to every time By by action of configuration early excise during edition upgrading, it is to avoid carried out within the limited set-up time it is substantial amounts of safeguard by hand and Configuration, reduces manual operation, it is ensured that the high efficient and reliable of version installation process as far as possible.
Based on same inventive concept, a kind of erecting device of application program is additionally provided in the embodiment of the present invention, it is such as following Embodiment described in.Because the principle that the erecting device of application program solves problem is similar to the installation method of application program, because The implementation of the erecting device of this application program may refer to the implementation of the installation method of application program, repeats part and repeats no more. Used below, term " unit " or " module " can realize the combination of the software and/or hardware of predetermined function.Although with Device described by lower embodiment is preferably realized with software, but hardware, or the combination of software and hardware realization May and it be contemplated.Fig. 5 is a kind of structured flowchart of the erecting device of the application program of the embodiment of the present invention, such as Fig. 5 institutes Show, including:First acquisition module 501, installation module 502, are illustrated to the structure below.
First acquisition module 501, the installation of the application program for obtaining the destination server to be installed into operation system File, wherein, the erection sequence and each installation steps of each installation steps have been pre-configured with the installation file It is compressed according to the address of destination server, the variate-value in each installation steps is according to the demand of destination server Configured;
Module 502 is installed, for the application program being installed according to each installation steps in the installation file Into the corresponding destination server of operation system.
In one embodiment, in above-mentioned installation file installation steps include:File transmits item and script performs item, Wherein, the file transmission item is used to trigger the file download in the version medium of application program to corresponding destination service Device, the script, which performs item, to be used to trigger the specific installation procedure to destination server.
In one embodiment, installing module 502 includes:Acquiring unit, is obtained for order from the installation file One installation steps;First trigger element, for being in the case that script performs item, to the peace in the installation steps of acquisition Fill the destination server corresponding to step and send file execute instruction, triggering destination server performs the execute instruction;The Two trigger elements, in the case of being file transmission item in the installation steps of acquisition, corresponding to the installation steps Destination server sends file and preserves instruction, triggering destination server by it is described preserve the version file that carries in instruction preserve to The target directory of setting;Determining unit, for determining whether current installation steps are final item, if it is not, then continuing Next installation steps are obtained, until current installation steps are final item.
In one embodiment, the execute instruction includes:Overlay file, and/or, perform file.
In one embodiment, first trigger element takes specifically for the agent side triggered in the destination server Business device performs the execute instruction;Second trigger element takes described preserve specifically for triggering destination server in instruction The version file of band is preserved to the target directory of setting, including:Agent side server in the destination server is triggered by institute The version file carried in preservation instruction is stated to preserve to the target directory of setting.In one embodiment, in addition to:Second obtains Module, for before installation file is obtained, obtaining by the version installation process by the application program in operation system, turns Be changed to it is multiple by installation steps item constitute the step of combination;3rd acquisition module, for obtaining the corresponding mesh of each step Server address and variable-value;Decompression module, the version file for decompressing the application program, with acquisition Variable-value replace variable in the version file after decompression, according to the address of the corresponding destination server of each step It is compressed to replacing the version file after variable, generates installation file corresponding with the destination server in operation system.
In one embodiment, the corresponding purpose of each step in each step combination is stored using EXCEL modes The address of server and variable-value.
In another embodiment, a kind of software is additionally provided, the software is used to perform above-described embodiment and preferred real Apply the technical scheme described in mode.
In another embodiment, a kind of storage medium is additionally provided, be stored with above-mentioned software in the storage medium, should Storage medium includes but is not limited to:CD, floppy disk, hard disk, scratch pad memory etc..
As can be seen from the above description, the embodiment of the present invention realizes following technique effect:Because the installation obtained The erection sequence and each installation steps item of each installation steps have been pre-configured with file according in operation system In destination server address be compressed, the variate-value in each installation steps enters according to the demand of destination server Row configuration, therefore, can be with without carry out parameter configuration again during installation, and because having specified destination server Directly each step is installed in corresponding destination server, solved through the above way in the prior art, in application Program needs error rate caused by manually being configured to parameter higher during installing, the reliability hardly possible of software installation With the technical problem of guarantee, the purpose for effectively improving application program installation reliability has been reached.
Obviously, those skilled in the art should be understood that each module or each step of the above-mentioned embodiment of the present invention can be with Realized with general computing device, they can be concentrated on single computing device, or be distributed in multiple computing devices On the network constituted, alternatively, the program code that they can be can perform with computing device be realized, it is thus possible to by it Store and performed in the storage device by computing device, and in some cases, can be to be held different from order herein They, are either fabricated to each integrated circuit modules or will be multiple in them by the shown or described step of row respectively Module or step are fabricated to single integrated circuit module to realize.So, the embodiment of the present invention is not restricted to any specific hard Part and software are combined.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the embodiment of the present invention can have various modifications and variations.Within the spirit and principles of the invention, made Any modification, equivalent substitution and improvements etc., should be included in the scope of the protection.

Claims (10)

1. a kind of installation method of application program, it is characterised in that including:
The installation file that server obtains the application program of the destination server to be installed into operation system is installed, wherein, it is described The erection sequence and each installation steps item of each installation steps have been pre-configured with installation file according to destination service The address of device is compressed, the variate-value in each installation steps is configured according to the demand of destination server;
The application program is attached to business by the server of installing according to each installation steps in the installation file In the corresponding destination server of system;
Wherein, in the installation file installation steps include:File transmits item and script performs item, wherein, the file Transmitting item is used to trigger by the file download in the version medium of application program to corresponding destination server, and the script is performed Item is used to trigger the specific installation procedure to destination server;
Wherein, to be attached to operation system by the application program according to each installation steps in the installation file corresponding In destination server, including:
Order obtains an installation steps from the installation file;
If the installation steps obtained, which are scripts, performs item, the destination server corresponding to the installation steps sends text Part execute instruction, triggering destination server performs the execute instruction;
If the installation steps obtained are file transmission items, the destination server corresponding to the installation steps sends text Part preserves instruction, and triggering destination server preserves the version file carried in the preservation instruction to the target directory of setting;
It is determined that whether current installation steps are final item, if it is not, then continue to obtain next installation steps, until Current installation steps are final item.
2. the method as described in claim 1, it is characterised in that the execute instruction includes:Overlay file, and/or, perform File.
3. method as claimed in claim 1 or 2, it is characterised in that:
Trigger destination server and perform the execute instruction, including:The agent side server triggered in the destination server is held The row execute instruction;
Triggering destination server preserves the version file carried in the preservation instruction to the target directory of setting, including:Touch Agent side server in sending out destination server described preserves the version file that is carried in instruction of preserving to the mesh of setting Heading is recorded.
4. the method as described in claim 1, it is characterised in that before installation file is obtained, methods described also includes:
Obtain by the version installation process by the application program in operation system, be converted to and multiple be made up of installation steps The step of combination;
Obtain address and the variable-value of the corresponding destination server of each step;
The version file of the application program is decompressed, the change in the version file after decompression is replaced with the variable-value of acquisition Amount, is compressed according to the address of the corresponding destination server of each step to replacing the version file after variable, generation with The corresponding installation file of destination server in operation system.
5. method as claimed in claim 4, it is characterised in that each in each step combination is stored using EXCEL modes The address of the corresponding destination server of step and variable-value.
6. a kind of erecting device of application program, it is characterised in that in installation server, including:
First acquisition module, the installation file of the application program for obtaining the destination server to be installed into operation system, its In, be pre-configured with the installation file erection sequence and each installation steps item of each installation steps according to The address of destination server is compressed, the variate-value in each installation steps is matched somebody with somebody according to the demand of destination server Put;
Module is installed, for the application program to be attached into business system according to each installation steps in the installation file Unite in corresponding destination server;
Wherein, in the installation file installation steps include:File transmits item and script performs item, wherein, the file Transmitting item is used to trigger by the file download in the version medium of application program to corresponding destination server, and the script is performed Item is used to trigger the specific installation procedure to destination server;
The installation module includes:
Acquiring unit, an installation steps are obtained for order from the installation file;
First trigger element, for being in the case that script performs item, to the installation steps institute in the installation steps of acquisition Corresponding destination server sends file execute instruction, and triggering destination server performs the execute instruction;
Second trigger element, in the case of being file transmission item in the installation steps of acquisition, to the installation steps institute Corresponding destination server sends file and preserves instruction, the version file that triggering destination server will be carried in the preservation instruction Preserve to the target directory of setting;
Determining unit, for determining whether current installation steps are final item, if it is not, then continuing to obtain next peace Step is filled, until current installation steps are final item.
7. device as claimed in claim 6, it is characterised in that the execute instruction includes:Overlay file, and/or, perform File.
8. device as claimed in claims 6 or 7, it is characterised in that:
First trigger element refers to specifically for the agent side server execution execution triggered in the destination server Order;
Second trigger element preserves the version file carried in instruction that preserves specifically for triggering destination server To the target directory of setting, including:The agent side server triggered in the destination server carries described preserve in instruction Version file preserve to the target directory of setting.
9. device as claimed in claim 6, it is characterised in that also include:
Second acquisition module, for before installation file is obtained, obtaining by the version by the application program in operation system This installation process, be converted to it is multiple by installation steps item constitute the step of combination;
3rd acquisition module, address and variable-value for obtaining the corresponding destination server of each step;
Decompression module, the version file for decompressing the application program is replaced after decompression with the variable-value of acquisition Version file in variable, according to the address of the corresponding destination server of each step to replacing the version file after variable It is compressed, generates installation file corresponding with the destination server in operation system.
10. device as claimed in claim 9, it is characterised in that each in each step combination is stored using EXCEL modes The address of the corresponding destination server of step and variable-value.
CN201410225025.1A 2014-05-26 2014-05-26 The installation method and device of application program Active CN103984573B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410225025.1A CN103984573B (en) 2014-05-26 2014-05-26 The installation method and device of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410225025.1A CN103984573B (en) 2014-05-26 2014-05-26 The installation method and device of application program

Publications (2)

Publication Number Publication Date
CN103984573A CN103984573A (en) 2014-08-13
CN103984573B true CN103984573B (en) 2017-09-22

Family

ID=51276566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410225025.1A Active CN103984573B (en) 2014-05-26 2014-05-26 The installation method and device of application program

Country Status (1)

Country Link
CN (1) CN103984573B (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572189A (en) * 2014-12-25 2015-04-29 深圳联友科技有限公司 Method for rapidly deploying multiple application programs
CN105204898A (en) * 2015-09-16 2015-12-30 浪潮通用软件有限公司 Application deployment system and method and control server
CN105404528A (en) * 2015-09-28 2016-03-16 高新兴科技集团股份有限公司 Distributed automatic deployment system
CN106095509B (en) * 2016-06-20 2019-05-03 深圳前海微众银行股份有限公司 Differential variable dissemination method and device
CN107704278A (en) * 2016-08-08 2018-02-16 北京京东尚科信息技术有限公司 Application upgrade method and apparatus
CN106506217A (en) * 2016-11-14 2017-03-15 天闻数媒科技(湖南)有限公司 A kind of application software installation method and system
CN107846302A (en) * 2016-12-21 2018-03-27 贵州电网有限责任公司信息中心 A kind of self-adaptive agent dispositions method
CN107846303A (en) * 2016-12-21 2018-03-27 贵州电网有限责任公司信息中心 A kind of monitored object automatic identification is with finding method
CN107544830A (en) * 2017-09-21 2018-01-05 郑州云海信息技术有限公司 A kind of method and device of automatic installation database
CN107908414A (en) * 2017-11-22 2018-04-13 中国银行股份有限公司 A kind of method, apparatus and system of the deployment of application server version
CN107870774A (en) * 2017-11-24 2018-04-03 武汉精测电子集团股份有限公司 A kind of system for AOI system software version management
CN108845876B (en) * 2018-04-09 2022-03-04 创新先进技术有限公司 Service distribution method and device
CN108959086B (en) * 2018-06-29 2023-02-03 北京金山数字娱乐科技有限公司 Program package testing deployment method, device, system, electronic equipment and storage medium
CN109491705B (en) * 2018-11-16 2022-02-18 中国银行股份有限公司 Delivery method and device
CN110515629A (en) * 2019-08-09 2019-11-29 广东浪潮大数据研究有限公司 A kind of script dispositions method, device, equipment and computer readable storage medium
CN111740863A (en) * 2020-06-19 2020-10-02 国网信息通信产业集团有限公司 Configuration method and system for intelligent distribution transformer terminal
CN112947949B (en) * 2020-09-22 2024-07-23 深圳市明源云科技有限公司 Application program installation method and device and electronic equipment
CN112947951A (en) * 2021-03-26 2021-06-11 深圳云之家网络有限公司 Software installation method and related equipment
CN113821229A (en) * 2021-10-29 2021-12-21 北京光启元数字科技有限公司 Program installation method, device, equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788917A (en) * 2010-02-26 2010-07-28 浪潮(北京)电子信息产业有限公司 Deployment method of utility software and the system thereof
CN102707971A (en) * 2012-04-26 2012-10-03 广东电子工业研究院有限公司 Method for automatically acquiring and installing software in virtual machine

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8938735B2 (en) * 2007-08-31 2015-01-20 Thomson Reuters Global Resources Bootstrapper and software download manager
CN101699400B (en) * 2009-09-03 2013-02-27 中兴通讯股份有限公司 Method and system for generating and running installation program of client
CN102262545A (en) * 2010-05-28 2011-11-30 纬创资通股份有限公司 Program installing method and device
CN101984410B (en) * 2010-11-12 2015-06-10 中兴通讯股份有限公司 Method and device for generating and unloading software installation package
CN102375753B (en) * 2011-10-08 2014-06-18 宇龙计算机通信科技(深圳)有限公司 Mobile terminal application presetting method and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788917A (en) * 2010-02-26 2010-07-28 浪潮(北京)电子信息产业有限公司 Deployment method of utility software and the system thereof
CN102707971A (en) * 2012-04-26 2012-10-03 广东电子工业研究院有限公司 Method for automatically acquiring and installing software in virtual machine

Also Published As

Publication number Publication date
CN103984573A (en) 2014-08-13

Similar Documents

Publication Publication Date Title
CN103984573B (en) The installation method and device of application program
TWI493465B (en) Method and system for distributed application stack deployment
CN111142903B (en) Configuration file interactive updating method and device based on file comparison
CN101179429B (en) Remote exhibition and real-time edition method of configuration file
CN110221841B (en) Web-based interactive application deployment and delivery method and system
CN104657174A (en) Method and device for dynamically realizing application function
CN105393250A (en) Dynamic migration script management
CN101216773A (en) Embedded Linux system firmware downloading method and device
US20110209144A1 (en) Application runtime expert for deployment of an application on multiple computer systems
Hall Ansible configuration management
CN105743680A (en) Cluster disposition method and disposition device
US20160134476A1 (en) Method for controlling changes in a computer system
US20130198333A1 (en) Method and device for recording and reproducing web operation
CN107632829A (en) A kind of App automation continuous integration systems and method based under iOS system
CN112084008A (en) Method for rapidly deploying cloud pipe system based on container technology
CN113064630A (en) Mobile terminal APP automatic packaging method and system, electronic device and storage medium
CN106569863B (en) Resource and code modularization-based android app resource updating and repairing method
CN106020896A (en) Automatic program publishing method based on private cloud
CN105391763A (en) Method and server for reinforcing a plurality of apk files
CN113360143B (en) Remote software development method, device, storage medium and processor
CN108074058B (en) Storage management method and device
CN104917633A (en) Method and device simulating FOTA upgrade
CN110647349B (en) Method for realizing continuous delivery of iOS APP
JP5958444B2 (en) Information processing apparatus, information processing system, control method thereof, and program
US12014195B2 (en) System for providing an adaptable plugin framework for application transformation to cloud

Legal Events

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