CN103984573A - Installation method and device of application program - Google Patents

Installation method and device of application program Download PDF

Info

Publication number
CN103984573A
CN103984573A CN201410225025.1A CN201410225025A CN103984573A CN 103984573 A CN103984573 A CN 103984573A CN 201410225025 A CN201410225025 A CN 201410225025A CN 103984573 A CN103984573 A CN 103984573A
Authority
CN
China
Prior art keywords
item
installation
file
destination server
version
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.)
Granted
Application number
CN201410225025.1A
Other languages
Chinese (zh)
Other versions
CN103984573B (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 an installation method and device of an application program. The method comprises the following steps: acquiring an installation file of the application program to be installed to a target server in a business system, wherein the installation sequence of each installation step item is pre-configured in the installation file, each installation step item is compressed according to the address of the target server, and variable value of each installation step item is configured according to the demand of the target server; installing the application program into the corresponding target server of the business system according to each installation step item in the installation file. With the adoption of the installation method and device of the application program, the technical problems in the prior art that parameters are manually configured during installing the application program, which causes relatively high error rate and is difficult to ensure the reliability of software installation, are solved, and the purpose of effectively improving the installation reliability of the application program is reached.

Description

The installation method of application program and device
Technical field
The present invention relates to application program field engineering field, particularly a kind of installation method of application program and device.
Background technology
Information technology system is all very huge conventionally, in Information technology system, the actual installation mode of the application program of each operation system is had nothing in common with each other, general application program is all comprised of the functional module of a plurality of complexity, each functional module relates to different destination servers more, between different operation systems, the configuration for parameter can relate to a large amount of attended operations simultaneously, traditional version mounting means needs maintainer to carry out when mounted a large amount of manual maintenances and configuration, because manual operation inevitably can cause error, and, the version of application program is installed and is upgraded in the time period that need to shut down in business and completes, time is more nervous, will certainly increase the error rate of configuration like this, thereby make application program can have very large operation risk after installation.
Summary of the invention
The embodiment of the present invention provides a kind of installation method of application program, and to reach the object that improves application program installation reliability, the method comprises:
Obtain the installation file of the application program to destination server in operation system to be installed, wherein, in described installation file the erection sequence of pre-configured each installation steps item and each installation steps item according to the address of destination server compress, variate-value in each installation steps item is configured according to the demand of destination server;
According to each installation steps item in described installation file, described application program is mounted in destination server corresponding to operation system.
In one embodiment, installation steps item in described installation file comprises: file transfer item and script are carried out item, wherein, described file transfer item is downloaded to corresponding destination server for triggering by the file of the version medium of application program, and described script is carried out item for triggering the concrete installation procedure to destination server.
In one embodiment, according to each installation steps item in described installation file, described application program is mounted in destination server corresponding to operation system, comprises:
Order is obtained an installation steps item from described installation file;
If the installation steps item obtaining is script, carry out item, to the corresponding destination server Transmit message of this installation steps item, carry out instruction, trigger destination server and carry out described execution instruction;
If the installation steps item obtaining is file transfer item, to the corresponding destination server Transmit message of this installation steps item, hold instruction, trigger destination server and the version file carrying in described holding instruction is saved to the target directory of setting;
Determine whether current installation steps item is final, if not, continue to obtain next installation steps item, until current installation steps item is final.
In one embodiment, described execution instruction comprises: overlay file, and/or, execute file.
In one embodiment, trigger destination server and carry out described execution instruction, comprising: the agent side server triggering in described destination server is carried out described execution instruction;
Trigger destination server and the version file carrying in described holding instruction is saved to the target directory of setting, comprising: the agent side server triggering in described destination server is saved to the version file carrying in described holding instruction the target directory of setting.
In one embodiment, before obtaining installation file, described method also comprises:
Obtain by the version installation process in operation system by described application program, be converted to a plurality of step items that formed by installation steps item and combine;
Obtain address and the variable-value of the destination server of each step item correspondence;
The version file of the described application program that decompresses, with the variable-value obtaining, replace the variable in the version file after decompressing, according to the address of the destination server of each step item correspondence, the version file of replacing after variable is compressed, generate the installation file corresponding with destination server in operation system.
In one embodiment, adopt EXCEL mode to store address and the variable-value of the destination server of each step item correspondence in each step item combination.
The embodiment of the present invention provides a kind of erecting device of application program, and to reach the object that improves application program installation reliability, this device comprises:
The first acquisition module, for obtaining the installation file of the application program to operation system destination server to be installed, wherein, in described installation file the erection sequence of pre-configured each installation steps item and each installation steps item according to the address of destination server compress, variate-value in each installation steps item is configured according to the demand of destination server;
Installation module, is mounted to described application program in destination server corresponding to operation system for each installation steps item according to described installation file.
In one embodiment, installation steps item in described installation file comprises: file transfer item and script are carried out item, wherein, described file transfer item is downloaded to corresponding destination server for triggering by the file of the version medium of application program, and described script is carried out item for triggering the concrete installation procedure to destination server.
In one embodiment, described installation module comprises:
Acquiring unit, obtains an installation steps item for order from described installation file;
The first trigger element, for carrying out item in the situation that the installation steps item obtaining is script, carries out instruction to the corresponding destination server Transmit message of this installation steps item, triggers destination server and carries out described execution instruction;
The second trigger element, be used in the situation that the installation steps item obtaining is file transfer item, to the corresponding destination server Transmit message of this installation steps item, hold instruction, trigger destination server and the version file carrying in described holding instruction is saved to the target directory of setting;
Determining unit, for determining whether current installation steps item is final, if not, continue to obtain next installation steps item, until current installation steps item is final.
In one embodiment, described execution instruction comprises: overlay file, and/or, execute file.
In one embodiment, described the first trigger element is carried out described execution instruction specifically for the agent side server triggering in described destination server;
Described the second trigger element is saved to the version file carrying in described holding instruction the target directory of setting specifically for triggering destination server, comprising: the agent side server triggering in described destination server is saved to the version file carrying in described holding instruction the target directory of setting.
In one embodiment, also comprise: the second acquisition module, for before obtaining installation file, obtain by the version installation process in operation system by described application program, be converted to a plurality of step items that formed by installation steps item and combine;
The 3rd acquisition module, for obtaining address and the variable-value of the destination server of each step item correspondence;
Decompression module, version file for the described application program that decompresses, with the variable-value obtaining, replace the variable in the version file after decompressing, according to the address of the destination server of each step item correspondence, the version file of replacing after variable is compressed, generate the installation file corresponding with destination server in operation system.
In one embodiment, adopt EXCEL mode to store address and the variable-value of the destination server of each step item correspondence in each step item combination.
In embodiments of the present invention, because the pre-configured erection sequence of each installation steps item in the installation file of obtaining, and each installation steps item compresses according to the address of the destination server in operation system, variate-value in each installation steps item is configured according to the demand of destination server, therefore, in the process of installing without carrying out again parameter configuration, and because indicated destination server, can directly each step item be installed in corresponding destination server, solved by the way in prior art, the error rate that needs in the process of installing in application program manually parameter to be configured and cause is higher, the reliability that software is installed is difficult to the technical matters guaranteeing, reached the object of effective raising application program installation reliability.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, does not form limitation of the invention.In the accompanying drawings:
Fig. 1 is the method flow diagram of installation method of the application program of the embodiment of the present invention;
Fig. 2 is the structural representation of robotization 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 erecting device of the application program of the embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with embodiment and accompanying drawing, the present invention is described in further details.At this, exemplary embodiment of the present invention and explanation thereof are used for explaining the present invention, but not as a limitation of the invention.
Inventor considers because people is easy to occur mistake for carrying out parameter configuration in the process of installing, further, the configuration of carrying out quantity of parameters in short time has more increased the weight of the possibility of wrong generation, therefore can to the parameter in installation file, be configured in advance, in the process of installing, system is directly obtained these installation files of having carried out parameter configuration and is automatically installed.
In embodiments of the present invention, provide a kind of installation method of application program, as shown in Figure 1, comprised the following steps:
Step 101: the installation file of obtaining the application program to destination server in operation system to be installed, wherein, in described installation file the erection sequence of pre-configured each installation steps item and each installation steps item according to the address of destination server compress, variate-value in each installation steps item is configured according to the demand of destination server;
Step 102: described application program is mounted in destination server corresponding to operation system according to each installation steps item in described installation file.
In the above-described embodiments, because the pre-configured erection sequence of each installation steps item in the installation file of obtaining, and each installation steps item compresses according to the address of the destination server in operation system, variate-value in each installation steps item is configured according to the demand of destination server, therefore, in the process of installing without carrying out again parameter configuration, and because indicated destination server, can directly each step item be installed in corresponding destination server, solved by the way in prior art, the error rate that needs in the process of installing in application program manually parameter to be configured and cause is higher, the reliability that software is installed is difficult to the technical matters guaranteeing, reached the object of effective raising application program installation reliability.
Before above-mentioned steps 101, can also comprise the Auto-mounting request that receives application version, at this, version installation of carrying out application program under triggering of asking is installed.
Because in the process of set up applications, need the installation of documentary transmission and file, therefore, installation steps item in above-mentioned installation file can comprise: file transfer item and script are carried out item, wherein, file transfer item is downloaded to corresponding destination server for triggering by the file of the version medium of application program, and script is carried out item for triggering the concrete installation procedure to destination server.
Different operating system has often all been installed on the different destination server of operation system, in order to realize the software Auto-mounting on different target server, can adopt the mode that Agent (agency) program is all installed on every destination server, by Agent, complete reception and the execution of installation steps item, the server of centralized management only needs to carry out communication with Agent, just can realize cross-platform installation version.In one embodiment, according to each installation steps item in described installation file, described application program is mounted in destination server corresponding to operation system and can be comprised: order is obtained an installation steps item from described installation file; If being script, the installation steps item obtaining carries out item, to the Agent end server Transmit message of the corresponding destination server of this installation steps item, carry out instruction, trigger described Agent end server and carry out described execution instruction, wherein, in described execution instruction, can comprise: overlay file, execute file; If the installation steps item obtaining is file transfer item, to the Agent end server Transmit message of the corresponding destination server of this installation steps item, hold instruction, trigger described Agent end server and the version file carrying in described holding instruction is saved to the target directory of setting; Determine whether current installation steps item is final, if not, continue to obtain next installation steps item, until current installation steps item is final.
Above-mentioned installation file need to generate in advance, concrete, generating above-mentioned installation file can comprise: the version installation process by described application program in operation system, be converted to a plurality of step items that formed by installation steps item and combine, determine and store address and the variable-value of the destination server of each step item correspondence in each step item combination; Receive installation file and generate request, the version file of the described application program that decompresses, with the variable-value obtaining, replace the variable in the version file after decompressing, according to the address of the destination server of each step item correspondence, the version file of replacing after variable is compressed, generate the installation file corresponding with destination server in operation system., in system, store in advance the address that each step item combines corresponding server, and variable is corresponding to the required value of this server, like this after getting the version file of application program, the value of using the corresponding variable-value that obtains from system to remove to replace each variable, thereby generate the installation file corresponding to destination server, variable in the installation file in this time has been just to have set the variable of variable-value, and bind with the address of corresponding destination server, because can directly be sent in corresponding destination server.
Address and variable-value for the destination server of each step item correspondence in each above-mentioned step item combination can adopt EXCEL mode to store.
Below in conjunction with a specific embodiment, the above embodiment of the present invention is specifically described, yet it should be noted that this specific embodiment is only in order effectively to describe the present invention, not form inappropriate limitation of the present invention.
In this example, a kind of application program installation method and system that version robotization is installed that realize is provided, concrete, the version installation process of all operation systems is abstracted into unified basis action, by by the concrete operation system that is combined to of these basis actions, thereby realize the version Auto-mounting of any operation system.
For single operation system, the action sequence between different editions substantially can be by editing and be reused simply, and the order between a plurality of versions can customize easily, thereby complete the mass robotization installation of version.By version configuration is completely separated with version actual installation process, a large amount of configuration efforts was controlled at before installation process and is carried out, and verify.By the configuration of parameter particular value, for same medium, generate the installation kit for actual installation server, thereby realize same medium, the effect that install many places.
The installation method of the application program that this example provides, can dispose in the operation system assembly that operates in different operating system.
For realize mass, cross-platform, automatically application version is installed, mainly comprise following step:
1) carry out Auto-mounting atomic operation, realize the transformation that robotization is installed
Need to analyze the installation process of operation system version, extract the general character of various installation steps in each operation system, mainly comprise two generic operations:
One class be by the file in version medium by reaching the server of implement installing under Central Management Server, these files comprise: program, script, executable file etc.;
Another kind of is to carry out concrete operation at server to be installed, and these operations mainly comprise: performing database script, working procedure, create directory, copied files etc.
In the process of robotization mounting design, above-mentioned two generic operation called after file transfer items and script can be carried out to item, wherein, file transfer item comprises key element: the file storing path (destination path) of the file storing path (source path) of management end server, Agent end (target) server, the file owner, file permission, coded format etc., for more detailed key element, need in configuration file, illustrate, script execution comprises key element and is: script execution route, content for script, the statistics that reports an error key word etc.
Using above-mentioned two as ground atom, by the sequence to ground atom, by in the version of all operation systems, for the concrete installation procedure of dissimilar server (such as database server, application server, bulk service device etc.), transform as and meet the step item combination that definition is installed in robotization.Combination and every element information are recorded in background data base, can import or derive with Excel form, and operation system, in the process of actual installation version, is installed according to each the order of determining in combination.
Because the file of Excel form maintains easily, developer can be assembled into new combination by existing combined copy very easily, thereby realizes fast the customization of installation process between a plurality of versions.
2) by Agent, realizing cross-platform multicompartment installs
Each assembly of financial service system is corresponding different server groups all often, and these servers are often all provided with different operating system.For example: edition data storehouse part need to be arranged on (AIX system) in database server, application program part need to be arranged on (for solaris system) in apps server.
In this example by the destination server deploy Agent program of installing, complete reception from the instruction of management server and record the actions such as back information, wherein, Agent program is to the equal released version of different platform, management server and Agent communication, carry out command and carry out and process, having realized cross-platform installation version.
3) by defining variable, realize automatic generating configuration file, and the flexible and changeable of a content is installed
Because operation system is very complicated, the assembly of a lot of operation systems all needs to be arranged on many physical machines, and in version with a configuration file, likely each machine is all needed to have specific configuration (for example: certain parameter is the IP address of requirement configuration the machine), between many physical machines, also there are differences simultaneously, for example: at A machine, version source program is arranged on C and coils 1 catalogue, and at B machine, source program may be arranged on D and coil 2 catalogues.
In this example, by defining variable, make all to support variable set up in a fundamental that file transfer item and script carry out and all configuration files of application program, the variable form using can be defined as: $ #{parameterName}, is different from all current already present variable forms.Same variable, can be for different environment, and different server addresss arranges a plurality of different particular values, and these information are recorded in background data base, support importing and exporting of Excel form.
Variable set up once comes into force, inferior use, and the variable of each operation system is after setting completes, and the follow-up version that carries out while installing, does not need to re-start editor again, thereby has farthest reduced configuration effort amount.
In the process passing under version, by management end program by all variablees, according to the particular machine information of system log (SYSLOG), replace with the particular value setting, thereby generate the real complete installation item information for each server, and complete configuration file, when carrying out version installation, what adopt is the content of having replaced, thereby has realized a version medium, the object of many places Auto-mounting.
4) version configuration and version installation are carried out separated
Because financial service system is in large scale, the upgrading of business each time, capital relates to up to a hundred operation systems, an operation system may need to be arranged on hundreds of physical servers, and the installation of all operation systems and all versions all concentrates in limited time window, configuration file in version relates to a large amount of manual maintenances and configuration, and therefore artificial operation may cause error, causes operation risk.
In this example, by version configuration, version installation process are carried out to separation, after version handing-over is installed, before formal installation starts, can allow maintainer on management server, fulfil the setting of variate-value ahead of schedule, generate installation task, at this moment, by automatic replacement variable, generate the particular version for server, configuration preliminary work is all complete, in the time period of installing at version, only need to start installation task, at Agent, hold on each station server and carry out installation action.
Because the craft of configuration file is safeguarded and detached out, and fulfil ahead of schedule, thereby farthest simplified the work in version set-up time window, high-level efficiency and high reliability that version is installed have been guaranteed from version installation process.
In this example, whole version robotization installation system can be as shown in Figure 2: management server 201, Web server 202, database server 203, version repository servers 204, pc client 205, LAN (Local Area Network) 206, Agent end server 208, consist of, the function that each several part is realized mainly comprises:
Management server 201 is master control servers, is responsible for the making of automatic version, all management functions that pass, configure and install down;
Web server 202, at version repository servers 204 front ends, is responsible for processing forward request;
Biography record under the version medium information of database server 203 each operation systems of preservation, version installation steps information, variable information, version, installation steps executive logging etc., preparation and the execution of for version, installing provide data;
Version repository servers 204 is memory storages of automatic version, wherein deposits the automatic version of all operation systems, and management server 201, when response user version transmission request, obtains version from version server 204;
Pc client 205 is human-computer interaction interfaces of version robotization installation system, user completes the various mutual of Auto-mounting by this device, mainly comprise: initiate various requests (such as: make robotization version, complete robotization version relevant configuration, carry out pre-download, start installation task, statistics is checked installation situation etc.), trigger version robotization installation procedure.
LAN (Local Area Network) 206 is for coupling together management end server and all Agent end server 208.
Agent end server 208 is servers that Agent end program 207 has been installed, it can be the machine (such as database server, application server, Web server etc.) of several operation systems, type, the instruction sending by Agent207 receiving management server 201, carry out instruction, by implementation log return message, by Web server 202, obtain operation system version, also obtain the redaction of self to complete automatic renewal.
Above-mentioned management server 201 inside can be as shown in Figure 3, comprise: version gatherer 301, version installation steps producing device 302, database access interface 303, version is installed task generating apparatus 304, version is installed and is carried out control device 305, lower floor's communication interface 306, wherein, version gatherer 301 is responsible for maintenance release file, version file is deposited according to the operation system title bibliographic structure under it, version installation steps producing device 302 is responsible for the making of version Auto-mounting, the operations such as combination, version is installed task generating apparatus 304 and is responsible for version file to process, comprise: compressed version file, complete replacement variable, generate the operations such as particular server version, version is installed and is carried out control device 305 to the request of version repository servers 204 initiation transmission version media, by lower floor's communication interface 306, receive version file related transmitting information, by lower floor's communication interface 306, send and carry out the instruction of Auto-mounting step, reception is from the back information of Agent end server 208, each device is all by database access interface device 303 and database server 203 communications, complete the inquiry of database information, upgrade etc.
Above-mentioned Agent207 built-in system forms as shown in Figure 4, comprise version installation steps actuating unit 402, upper strata communication interface 401 and log recording conveyer 403, wherein, version installation steps actuating unit 402 is for receiving and process the version file from version repository servers 204 by upper strata communication interface 401, reception is carried out instruction from the installation steps of management server 201, and carry out dependent instruction, log recording conveyer 403 is responsible for the action output in record transmission and installation process, and log information is sent to management server 201 by upper strata communication interface 401.
For single version, version is from being uploaded to version repository manager, to the whole process that finally Auto-mounting completes, comprise: version file is uploaded to version repository servers 204 from pc client 205, at management server 201, carry out robotization configuration, transmission version is to Agent end server 208 and implement the three phases such as Auto-mounting.Respectively above-mentioned three phases is described below:
Stage 1: upload version is to version repository servers 204
Operating personnel, by the supervisory routine page of pc client 205 access management servers 201, are transmitted version are uploaded to version repository servers 204 by FTP, initiate version and import request.
Version gatherer 301 on management server 201 is responsible for maintenance release file, version file solution is depressed into version repository servers, read and resolve variable that Auto-mounting uses and the Excel file such as step combination automatically, by database access interface, version, variable and step combined information are recorded to database server.Now at the supervisory routine page of pc client, can see version, variable, the automatic Step Information of this operation system, the release status of seeing is for importing.
Stage 2: carry out robotization configuration on management server 201, generate Auto-mounting task
Operating personnel complete by the supervisory routine page of pc client the configuration that Auto-mounting is relevant: for example configure the final server address of installing of each assembly of automatic version, the default value of each variable and for the value of particular server, relevant information is all recorded in database server 203 by database access interface 303.
All configurations (server address, variate-value etc.) of being automatically correlated with are above all once to come into force, and repeatedly use.After being configured in an of operation system completes for the first time, no matter follow-up, carry out the installation of how many times version, all do not need to edit again, thereby farthest reduced configuration effort amount.
After all configurations complete, operating personnel initiate to generate Auto-mounting version request, Step Information in management server 201 read requests, by version, task generating apparatus 304 is installed, from version repository servers 204, obtain version file, version file, according to the setting of file download items in the combination of Auto-mounting step, is processed item by item.In every processing, the variable in version file is replaced according to default value or the particular value set, version file corresponding in every source path is processed to compression according to the server address of the final installation of configuration simultaneously, thereby generate the actual installation release content for target Agent machine, now the configuration file in version is distinguished according to download items, complete with the particular case configuration of each target machine.The release status of now seeing at the supervisory routine page of pc client is initialization.
Stage 3: version is installed at Agent server end 208
This one-phase is the stage that version is really carried out installation, and installation process is carried out in window when mounted, and the supervisory routine page of operating personnel by pc client starts version request is installed.
The version of management server 201 is installed control actuating unit and by database access interface 303, is started to read item by item the information of installation steps item in this version file, determines whether script execution.
Script is carried out item if, by the instruction (as overlay file, execute file etc.) being set in this, by version, execution control device 305 being installed sends, Agent end server 208 is accepted after instruction by upper strata communication interface 401, by version installation steps actuating unit 402, control and carry out this instruction, and execution result is recorded by log recording transmitting device 403, by upper strata communication interface 401, be back to management end.
If not script, carry out item, be judged as file transfer item, management server is installed and is carried out control device 305 initiation instructions by version, version installation steps actuating unit 402 response instructions of Agent207, the version file of configuration will be completed, be saved to the target directory of setting, and execution result is back to management end by upper strata communication interface 401.
Management server 201 is recorded in execution result in database server by database access interface 303, and is installed and carried out 305 pairs of execution results of control device and be for further processing by version: if result be unsuccessfully, and version installation termination; If result is successfully, continue to judge whether this is final, if NO, continues to read the next item down installation steps information, until this is final, version installation.
In the above-described embodiments, efficiently solve the problem that numerous operation system edition upgradings are safeguarded, because operation system numerous and complicated, each operation system Various Functions, assembly is different, installation process is also substantially different, the present invention is by the combination of installation steps item, realized a kind of robotization mounting means that is common to all operation systems, the file that Auto-mounting is used adopts Excel form to preserve, maintain easily, thereby can complete fast the customization of installation process between a plurality of versions of application program in same operation system.
Each assembly of operation system is corresponding different server groups all often, and these servers are often all installed different operating system, and the present invention, by dispose Agent program in destination server, has realized cross-platform version and installed.
Operation system is owing to externally bearing corresponding business service, each upgrading has strict time restriction, must within a few hours, complete, but due in large scale, all relate to up to a hundred operation systems, thousands of station servers at every turn, the action of configuration of the present invention when by edition upgrading implemented in advance, avoid a large amount of manual maintenances and configuration of carrying out within the limited set-up time, reduced as far as possible manual operation, guaranteed the high efficient and reliable of version installation process.
Based on same inventive concept, in the embodiment of the present invention, also provide a kind of erecting device of application program, as described in the following examples.Because the principle that the erecting device of application program is dealt with problems is similar to the installation method of application program, so the enforcement of the erecting device of application program can, referring to the enforcement of the installation method of application program, repeat part and repeat no more.Following used, term " unit " or " module " can realize the combination of software and/or the hardware of predetermined function.Although the described device of following examples is preferably realized with software, hardware, or the realization of the combination of software and hardware also may and be conceived.Fig. 5 is a kind of structured flowchart of erecting device of the application program of the embodiment of the present invention, as shown in Figure 5, comprising: the first acquisition module 501, installation module 502, describe this structure below.
The first acquisition module 501, for obtaining the installation file of the application program to operation system destination server to be installed, wherein, in described installation file the erection sequence of pre-configured each installation steps item and each installation steps item according to the address of destination server compress, variate-value in each installation steps item is configured according to the demand of destination server;
Installation module 502, is mounted to described application program in destination server corresponding to operation system for each installation steps item according to described installation file.
In one embodiment, installation steps item in above-mentioned installation file comprises: file transfer item and script are carried out item, wherein, described file transfer item is downloaded to corresponding destination server for triggering by the file of the version medium of application program, and described script is carried out item for triggering the concrete installation procedure to destination server.
In one embodiment, installation module 502 comprises: acquiring unit, obtains an installation steps item for order from described installation file; The first trigger element, for carrying out item in the situation that the installation steps item obtaining is script, carries out instruction to the corresponding destination server Transmit message of this installation steps item, triggers destination server and carries out described execution instruction; The second trigger element, be used in the situation that the installation steps item obtaining is file transfer item, to the corresponding destination server Transmit message of this installation steps item, hold instruction, trigger destination server and the version file carrying in described holding instruction is saved to the target directory of setting; Determining unit, for determining whether current installation steps item is final, if not, continue to obtain next installation steps item, until current installation steps item is final.
In one embodiment, described execution instruction comprises: overlay file, and/or, execute file.
In one embodiment, described the first trigger element is carried out described execution instruction specifically for the agent side server triggering in described destination server; Described the second trigger element is saved to the version file carrying in described holding instruction the target directory of setting specifically for triggering destination server, comprising: the agent side server triggering in described destination server is saved to the version file carrying in described holding instruction the target directory of setting.In one embodiment, also comprise: the second acquisition module, for before obtaining installation file, obtain by the version installation process in operation system by described application program, be converted to a plurality of step items that formed by installation steps item and combine; The 3rd acquisition module, for obtaining address and the variable-value of the destination server of each step item correspondence; Decompression module, version file for the described application program that decompresses, with the variable-value obtaining, replace the variable in the version file after decompressing, according to the address of the destination server of each step item correspondence, the version file of replacing after variable is compressed, generate the installation file corresponding with destination server in operation system.
In one embodiment, adopt EXCEL mode to store address and the variable-value of the destination server of each step item correspondence in each step item combination.
In another embodiment, also provide a kind of software, the technical scheme that this software is described for carrying out above-described embodiment and preferred implementation.
In another embodiment, also provide a kind of storage medium, stored above-mentioned software in this storage medium, this storage medium includes but not limited to: CD, floppy disk, hard disk, scratch pad memory etc.
From above description, can find out, the embodiment of the present invention has realized following technique effect: because the pre-configured erection sequence of each installation steps item in the installation file of obtaining, and each installation steps item compresses according to the address of the destination server in operation system, variate-value in each installation steps item is configured according to the demand of destination server, therefore, in the process of installing without carrying out again parameter configuration, and because indicated destination server, can directly each step item be installed in corresponding destination server, solved by the way in prior art, the error rate that needs in the process of installing in application program manually parameter to be configured and cause is higher, the reliability that software is installed is difficult to the technical matters guaranteeing, reached the object of effective raising application program installation reliability.
Obviously, those skilled in the art should be understood that, each module of the above-mentioned embodiment of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in memory storage and be carried out by calculation element, and in some cases, can carry out shown or described step with the order being different from herein, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.Like this, the embodiment of the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the embodiment of the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (14)

1. an installation method for application program, is characterized in that, comprising:
Obtain the installation file of the application program to destination server in operation system to be installed, wherein, in described installation file the erection sequence of pre-configured each installation steps item and each installation steps item according to the address of destination server compress, variate-value in each installation steps item is configured according to the demand of destination server;
According to each installation steps item in described installation file, described application program is mounted in destination server corresponding to operation system.
2. the method for claim 1, it is characterized in that, installation steps item in described installation file comprises: file transfer item and script are carried out item, wherein, described file transfer item is downloaded to corresponding destination server for triggering by the file of the version medium of application program, and described script is carried out item for triggering the concrete installation procedure to destination server.
3. method as claimed in claim 2, is characterized in that, according to each installation steps item in described installation file, described application program is mounted in destination server corresponding to operation system, comprising:
Order is obtained an installation steps item from described installation file;
If the installation steps item obtaining is script, carry out item, to the corresponding destination server Transmit message of this installation steps item, carry out instruction, trigger destination server and carry out described execution instruction;
If the installation steps item obtaining is file transfer item, to the corresponding destination server Transmit message of this installation steps item, hold instruction, trigger destination server and the version file carrying in described holding instruction is saved to the target directory of setting;
Determine whether current installation steps item is final, if not, continue to obtain next installation steps item, until current installation steps item is final.
4. method as claimed in claim 3, is characterized in that, described execution instruction comprises: overlay file, and/or, execute file.
5. the method as described in claim 3 or 4, is characterized in that:
Trigger destination server and carry out described execution instruction, comprising: the agent side server triggering in described destination server is carried out described execution instruction;
Trigger destination server and the version file carrying in described holding instruction is saved to the target directory of setting, comprising: the agent side server triggering in described destination server is saved to the version file carrying in described holding instruction the target directory of setting.
6. the method for claim 1, is characterized in that, before obtaining installation file, described method also comprises:
Obtain by the version installation process in operation system by described application program, be converted to a plurality of step items that formed by installation steps item and combine;
Obtain address and the variable-value of the destination server of each step item correspondence;
The version file of the described application program that decompresses, with the variable-value obtaining, replace the variable in the version file after decompressing, according to the address of the destination server of each step item correspondence, the version file of replacing after variable is compressed, generate the installation file corresponding with destination server in operation system.
7. method as claimed in claim 6, is characterized in that, adopts EXCEL mode to store address and the variable-value of the destination server of each step item correspondence in each step item combination.
8. an erecting device for application program, is characterized in that, comprising:
The first acquisition module, for obtaining the installation file of the application program to operation system destination server to be installed, wherein, in described installation file the erection sequence of pre-configured each installation steps item and each installation steps item according to the address of destination server compress, variate-value in each installation steps item is configured according to the demand of destination server;
Installation module, is mounted to described application program in destination server corresponding to operation system for each installation steps item according to described installation file.
9. device as claimed in claim 8, it is characterized in that, installation steps item in described installation file comprises: file transfer item and script are carried out item, wherein, described file transfer item is downloaded to corresponding destination server for triggering by the file of the version medium of application program, and described script is carried out item for triggering the concrete installation procedure to destination server.
10. device as claimed in claim 9, is characterized in that, described installation module comprises:
Acquiring unit, obtains an installation steps item for order from described installation file;
The first trigger element, for carrying out item in the situation that the installation steps item obtaining is script, carries out instruction to the corresponding destination server Transmit message of this installation steps item, triggers destination server and carries out described execution instruction;
The second trigger element, be used in the situation that the installation steps item obtaining is file transfer item, to the corresponding destination server Transmit message of this installation steps item, hold instruction, trigger destination server and the version file carrying in described holding instruction is saved to the target directory of setting;
Determining unit, for determining whether current installation steps item is final, if not, continue to obtain next installation steps item, until current installation steps item is final.
11. devices as claimed in claim 10, is characterized in that, described execution instruction comprises: overlay file, and/or, execute file.
12. devices as described in claim 10 or 11, is characterized in that:
Described the first trigger element is carried out described execution instruction specifically for the agent side server triggering in described destination server;
Described the second trigger element is saved to the version file carrying in described holding instruction the target directory of setting specifically for triggering destination server, comprising: the agent side server triggering in described destination server is saved to the version file carrying in described holding instruction the target directory of setting.
13. devices as claimed in claim 8, is characterized in that, also comprise:
The second acquisition module, for before obtaining installation file, obtains by the version installation process in operation system by described application program, is converted to a plurality of step items that are comprised of installation steps item and combines;
The 3rd acquisition module, for obtaining address and the variable-value of the destination server of each step item correspondence;
Decompression module, version file for the described application program that decompresses, with the variable-value obtaining, replace the variable in the version file after decompressing, according to the address of the destination server of each step item correspondence, the version file of replacing after variable is compressed, generate the installation file corresponding with destination server in operation system.
14. devices as claimed in claim 13, is characterized in that, adopt EXCEL mode to store address and the variable-value of the destination server of each step item correspondence in each step item combination.
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 true CN103984573A (en) 2014-08-13
CN103984573B 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)

Cited By (17)

* 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
CN106095509A (en) * 2016-06-20 2016-11-09 深圳前海微众银行股份有限公司 Differential variable dissemination method and device
CN106506217A (en) * 2016-11-14 2017-03-15 天闻数媒科技(湖南)有限公司 A kind of application software installation method and system
CN107544830A (en) * 2017-09-21 2018-01-05 郑州云海信息技术有限公司 A kind of method and device of automatic installation database
CN107704278A (en) * 2016-08-08 2018-02-16 北京京东尚科信息技术有限公司 Application upgrade method and apparatus
CN107846303A (en) * 2016-12-21 2018-03-27 贵州电网有限责任公司信息中心 A kind of monitored object automatic identification is with finding method
CN107846302A (en) * 2016-12-21 2018-03-27 贵州电网有限责任公司信息中心 A kind of self-adaptive agent dispositions method
CN107870774A (en) * 2017-11-24 2018-04-03 武汉精测电子集团股份有限公司 A kind of system for AOI system software version management
CN107908414A (en) * 2017-11-22 2018-04-13 中国银行股份有限公司 A kind of method, apparatus and system of the deployment of application server version
CN108845876A (en) * 2018-04-09 2018-11-20 阿里巴巴集团控股有限公司 A kind of method and device of traffic assignments
CN108959086A (en) * 2018-06-29 2018-12-07 北京金山数字娱乐科技有限公司 Program bag tests dispositions method, device, system, electronic equipment and storage medium
CN109491705A (en) * 2018-11-16 2019-03-19 中国银行股份有限公司 A kind of 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
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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090064135A1 (en) * 2007-08-31 2009-03-05 Thomson Corporation Bootstrapper and software download manager
CN101699400A (en) * 2009-09-03 2010-04-28 中兴通讯股份有限公司 Method and system for generating and running installation program of client
CN101788917A (en) * 2010-02-26 2010-07-28 浪潮(北京)电子信息产业有限公司 Deployment method of utility software and the system thereof
CN101984410A (en) * 2010-11-12 2011-03-09 中兴通讯股份有限公司 Method and device for generating and unloading software installation package
CN102262545A (en) * 2010-05-28 2011-11-30 纬创资通股份有限公司 Program installing method and device
CN102375753A (en) * 2011-10-08 2012-03-14 宇龙计算机通信科技(深圳)有限公司 Mobile terminal application presetting method and mobile terminal
CN102707971A (en) * 2012-04-26 2012-10-03 广东电子工业研究院有限公司 Method for automatically acquiring and installing software in virtual machine

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090064135A1 (en) * 2007-08-31 2009-03-05 Thomson Corporation Bootstrapper and software download manager
CN101699400A (en) * 2009-09-03 2010-04-28 中兴通讯股份有限公司 Method and system for generating and running installation program of client
CN101788917A (en) * 2010-02-26 2010-07-28 浪潮(北京)电子信息产业有限公司 Deployment method of utility software and the system thereof
CN102262545A (en) * 2010-05-28 2011-11-30 纬创资通股份有限公司 Program installing method and device
CN101984410A (en) * 2010-11-12 2011-03-09 中兴通讯股份有限公司 Method and device for generating and unloading software installation package
CN102375753A (en) * 2011-10-08 2012-03-14 宇龙计算机通信科技(深圳)有限公司 Mobile terminal application presetting method and mobile terminal
CN102707971A (en) * 2012-04-26 2012-10-03 广东电子工业研究院有限公司 Method for automatically acquiring and installing software in virtual machine

Cited By (18)

* 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
CN106095509A (en) * 2016-06-20 2016-11-09 深圳前海微众银行股份有限公司 Differential variable dissemination method and device
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
CN108845876A (en) * 2018-04-09 2018-11-20 阿里巴巴集团控股有限公司 A kind of method and device of traffic assignments
CN108959086A (en) * 2018-06-29 2018-12-07 北京金山数字娱乐科技有限公司 Program bag tests dispositions method, device, system, electronic equipment and storage medium
CN109491705A (en) * 2018-11-16 2019-03-19 中国银行股份有限公司 A kind of 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
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

Also Published As

Publication number Publication date
CN103984573B (en) 2017-09-22

Similar Documents

Publication Publication Date Title
CN103984573A (en) Installation method and device of application program
JP7011737B2 (en) Systems and methods for connector development and integrated channel deployment
CN101194233B (en) System and method of testing wireless component applications
CN105224351B (en) Rapid configuration implementation method and rapid configuration server
CN102609281B (en) Distributed software patch update method and system
CN108369532B (en) System and method for packaging tools for first and third party component deployment
CN110572436A (en) Multi-place cross-cluster server deployment method and system
CN101179429B (en) Remote exhibition and real-time edition method of configuration file
US10140103B2 (en) POS application development method and cloud server
CN104899047B (en) Web page frame dispositions method and system
US8806475B2 (en) Techniques for conditional deployment of application artifacts
CN105393250A (en) Dynamic migration script management
CN107688611B (en) Saltstack-based Redis key value management system and method
CN103297275A (en) Dynamic discovery and loading system and method for Web network management client module
CN105574369A (en) Method, device and system for re-signing application program
CN105072398B (en) A kind of device updating method and device
CN106569863B (en) Resource and code modularization-based android app resource updating and repairing method
CN109460358B (en) Configuration management method and system based on Cmdb
CN107395385A (en) Method for upgrading software and device
CN102223380A (en) Client terminal automatic updating frame based on Webservice and application thereof
CN103685567A (en) Virtual application server configuration method under cloud environment
CN113360160A (en) Method and device for deploying application, electronic equipment and storage medium
CN102868558A (en) Multi-device software upgrading method and multi-device software upgrading system
EP4130982A1 (en) Network-based solution module deployment platform
US11249742B1 (en) Systems and methods for zero-touch infrastructure build automation

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