CN104090799B - A kind of environment dispositions method and device - Google Patents

A kind of environment dispositions method and device Download PDF

Info

Publication number
CN104090799B
CN104090799B CN201410329069.9A CN201410329069A CN104090799B CN 104090799 B CN104090799 B CN 104090799B CN 201410329069 A CN201410329069 A CN 201410329069A CN 104090799 B CN104090799 B CN 104090799B
Authority
CN
China
Prior art keywords
module
disposed
version
destination host
control machine
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
CN201410329069.9A
Other languages
Chinese (zh)
Other versions
CN104090799A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201410329069.9A priority Critical patent/CN104090799B/en
Publication of CN104090799A publication Critical patent/CN104090799A/en
Application granted granted Critical
Publication of CN104090799B publication Critical patent/CN104090799B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiments of the invention provide a kind of environment dispositions method, including:According to the click location on environment templates and the environment templates, the behavior command of module to be disposed, the middle control machine information of the module to be disposed and the module to be disposed in being applied;Obtain the destination host information of input;According to module to be disposed, the middle control machine information of the module to be disposed, the behavior command of the module to be disposed and the destination host information, the environmental information of the application is obtained, the environmental information is used for the environment deployment for realizing the application;The embodiment of the present invention also provides a kind of environment deployment device.The technical scheme provided according to embodiments of the present invention, it is possible to achieve improve environment deployment efficiency, reduce environment lower deployment cost.

Description

A kind of environment dispositions method and device
【Technical field】
The present invention relates to field of computer technology, more particularly to a kind of environment dispositions method and device.
【Background technology】
Possess the huge and complicated application of a large amount of modules, its environment deployment requirements is varied, the topology of such as environment, Interconnection of interconnection, module and other application between module etc..
In the prior art, a variety of deployment requirements can not be met for the environment deployment tool of applied customization, if necessary to answer For other application, otherwise existing environment deployment tool is modified and reconfigured, otherwise customization environment is disposed again Instrument, can all cause environment lower deployment cost to increase and deployment efficiency comparison is low.
【The content of the invention】
In view of this, the embodiments of the invention provide a kind of environment dispositions method and device, it is possible to achieve improves Ministry of environment Efficiency is affixed one's name to, environment lower deployment cost is reduced.
The embodiments of the invention provide a kind of environment dispositions method, including:
It is module to be disposed in being applied, described according to the click location on environment templates and the environment templates The middle control machine information of module to be disposed and the behavior command of the module to be disposed;
Obtain the destination host information of input;
According to module to be disposed, the middle control machine information of the module to be disposed, the behavior of the module to be disposed Order and the destination host information, obtain the environmental information of the application, and the environmental information is used to realize the application Environment is disposed.
In the above method, the environment templates include the product old version of the application;It is described according to environment templates with And the click location on the environment templates, applied described in module to be disposed middle control machine information, including:
According to the click location on the product old version and the environment templates of the application of display, described answer is obtained With current product version;
The product version current according to the application, obtains the current version of the module to be disposed;
The version current according to the module to be disposed, obtains the middle control machine information of the module to be disposed, described Middle control machine information includes the middle control machine where the module to be disposed and the default path in the middle control machine.
It is in the above method, described according to the current product version of the application, obtain the module to be disposed current Version, including:
If the benchmark version of the module to be disposed is less than or equal to the current product version of the application, and described The discarded version of module to be disposed is more than or equal to the current product version of the application, the production current according to the application Minimum value in product version and the benchmark version of the module to be disposed, obtains the current version of the module to be disposed.
In the above method, methods described also includes:
According to the click location on the environment templates and the environment templates, custom variable is obtained;
The custom variable is write to the environmental variance of destination host;
According to the middle control machine information and destination host information, module to be disposed described in middle control machine is disposed In destination host;Wherein, the destination host information includes destination host and the institute that the module to be disposed needs to dispose State the deployment path in destination host;
The behavior command is run, to cause the environmental variance of the behavior command from the destination host to obtain self-defined Variable, and the custom variable is utilized, start the module on the destination host, to cause the mould on the destination host BOB(beginning of block) works.
It is described according to the middle control machine information and the destination host information in the above method, described in middle control machine Module to be disposed is deployed in destination host, including:
According to the middle control machine information and the destination host information, logged in using automatic interaction instrument described to be disposed Middle control machine and the destination host where module;
Secure copy order is run, to cause secure copy order to treat portion described under the default path of the middle control machine The module of administration is copied under the deployment path of the destination host.
The embodiment of the present invention also provides a kind of environment deployment device, including:
First acquisition unit, for the click location on foundation environment templates and the environment templates, in being applied The behavior command of module to be disposed, the middle control machine information of the module to be disposed and the module to be disposed;
Second acquisition unit, the destination host information for obtaining input;
Processing unit, for according to module to be disposed, the middle control machine information of the module to be disposed, described wait to dispose Module behavior command and the destination host information, obtain the environmental information of the application, the environmental information is used for real The environment deployment of the existing application.
In said apparatus, the environment templates include the product old version of the application;The first acquisition unit, tool Body is used for:
According to the click location on the product old version and the environment templates of the application of display, described answer is obtained With current product version;
The product version current according to the application, obtains the current version of the module to be disposed;
The version current according to the module to be disposed, obtains the middle control machine information of the module to be disposed, described Middle control machine information includes the middle control machine where the module to be disposed and the default path in the middle control machine.
It is in said apparatus, described according to the current product version of the application, obtain the module to be disposed current Version, is specifically included:
If the benchmark version of the module to be disposed is less than or equal to the current product version of the application, and described The discarded version of module to be disposed is more than or equal to the current product version of the application, the production current according to the application Minimum value in product version and the benchmark version of the module to be disposed, obtains the current version of the module to be disposed.
In said apparatus, described device also includes:
Preparatory unit is disposed, for according to the click location on the environment templates and the environment templates, being derived from Defined variable;
The deployment preparatory unit, is additionally operable to write the custom variable environmental variance of destination host;
Execution unit is disposed, for according to the middle control machine information and the destination host information, by the institute in middle control machine State module to be disposed and be deployed in destination host;Wherein, the destination host information, which includes the module to be disposed, needs portion Deployment path in the destination host of administration and the destination host;
The deployment execution unit, is additionally operable to run the behavior command, to cause the behavior command from the purpose The environmental variance of main frame obtains custom variable, and utilizes the custom variable, starts the module on the destination host, To cause the module on the destination host to start working.
It is described according to the middle control machine information and the destination host information in said apparatus, described in middle control machine Module to be disposed is deployed in destination host, specifically includes:
According to the middle control machine information and the destination host information, logged in using automatic interaction instrument described to be disposed Middle control machine and the destination host where module;
Secure copy order is run, to cause secure copy order to treat portion described under the default path of the middle control machine The module of administration is copied under the deployment path of the destination host.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantages that:
Technical scheme provided in an embodiment of the present invention can according to environment templates and click location, and input information, The environmental information of environment deployment applied is automatically generated for, compared with prior art, the environment templates can meet many Environment deployment requirements are planted, therefore the environment templates durability is higher, reduces the modification of environment deployment and reconfigures, therefore, it is possible to Environment lower deployment cost is reduced, environment deployment efficiency is improved.
【Brief description of the drawings】
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be attached to what is used required in embodiment Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this area For those of ordinary skill, without having to pay creative labor, it can also be obtained according to these accompanying drawings other attached Figure.
Fig. 1 is the schematic flow sheet for the environment dispositions method that the embodiment of the present invention is provided;
Fig. 2 is the first schematic diagram of the environment templates that the embodiment of the present invention is provided;
Fig. 3 is the second schematic diagram of the environment templates that the embodiment of the present invention is provided;
Fig. 4 is the stream of the method for the environment deployment that the foundation environmental information that the embodiment of the present invention is provided is applied automatically Journey schematic diagram;
Fig. 5 is that the foundation that the embodiment of the present invention is provided obtains module to be disposed currently using current product version The schematic flow sheet of the method for version;
Fig. 6 is the functional block diagram that the environment that the embodiment of the present invention is provided disposes device.
【Embodiment】
In order to be better understood from technical scheme, the embodiment of the present invention is retouched in detail below in conjunction with the accompanying drawings State.
It will be appreciated that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Base Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its Its embodiment, belongs to the scope of protection of the invention.
The term used in embodiments of the present invention is the purpose only merely for description specific embodiment, and is not intended to be limiting The present invention." one kind ", " described " and "the" of singulative used in the embodiment of the present invention and appended claims It is also intended to including most forms, unless context clearly shows that other implications.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, represent There may be three kinds of relations, for example, A and/or B, can be represented:Individualism A, while there is A and B, individualism B these three Situation.In addition, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determining " or " in response to detection ".Similarly, depending on linguistic context, phrase " if it is determined that " or " if detection (condition or event of statement) " can be construed to " when it is determined that when " or " in response to determine " or " when the detection (condition of statement Or event) when " or " in response to detection (condition or event of statement) ".
The embodiment of the present invention provides a kind of environment dispositions method, refer to Fig. 1, its ring provided by the embodiment of the present invention The schematic flow sheet of border dispositions method, as illustrated, this method comprises the following steps:
S101, according to the click location on environment templates and the environment templates, module to be disposed in being applied, The middle control machine information of the module to be disposed and the behavior command of the module to be disposed.
S102, obtains the destination host information of input.
S103, according to module to be disposed, the middle control machine information of the module to be disposed, the module to be disposed Behavior command and the destination host information, obtain the environmental information of the application, and the environmental information is used to realize described answer Environment is disposed.
It is preferred that, the environment templates include the product old version of the application;Foundation environment templates and the institute State the click location on environment templates, applied described in the method for middle control machine information of module to be disposed can include: According to the click location on the product old version and the environment templates of the application of display, described apply currently is obtained Product version;The product version current according to the application, obtains the current version of the module to be disposed;Treated according to described in The current version of the module of deployment, obtains the middle control machine information of the module to be disposed, and the middle control machine information includes described The default path in middle control machine and the middle control machine where module to be disposed.
Wherein, the product version current according to the application, the method for obtaining the current version of the module to be disposed It can include:If the benchmark version of the module to be disposed is less than or equal to the current product version of the application, and institute The discarded version for stating module to be disposed is more than or equal to the current product version of the application, is applied currently according to described Minimum value in product version and the benchmark version of the module to be disposed, obtains the current version of the module to be disposed This.
Optionally, in the above method, after the S103, it can also include:
According to the click location on environment templates and the environment templates, custom variable is obtained;
The custom variable is write to the environmental variance of destination host;
According to the middle control machine information and destination host information, module to be disposed described in middle control machine is disposed In destination host;Wherein, the destination host information includes destination host and the institute that the module to be disposed needs to dispose State the deployment path in destination host;
The behavior command is run, to cause the environmental variance of the behavior command from the destination host to obtain self-defined Variable, and the custom variable is utilized, start the module on the destination host, to cause the mould on the destination host BOB(beginning of block) works.
Wherein, it is described according to the middle control machine information and destination host information, it will wait to dispose described in middle control machine Module be deployed in the method for destination host and can include:
According to the middle control machine information and the destination host information, logged in using automatic interaction instrument described to be disposed Middle control machine and the destination host where module;
Secure copy order is run, to cause secure copy order to treat portion described under the default path of the middle control machine The module of administration is copied under the deployment path of the destination host.
Embodiment one
Fig. 2 and Fig. 3 are refer to, it is respectively the first schematic diagram and second for the environment templates that the embodiment of the present invention is provided Schematic diagram.
, can be with display environment template in the embodiment of the present invention, the environment templates are used to characterize all of environment to be disposed The set of information, the environment templates can include module information and behavior command, can also include topology information and deployment types.
Wherein, module information can include:The middle control machine information of the title of module to be disposed, module to be disposed;Its In, the middle control machine information of module to be disposed is used to indicate in the position where the module to be disposed, module to be disposed Controlling machine information can be including the middle control machine where module to be disposed and the default path (Default Path) in this in control machine.
It should be noted that module to be disposed is except including above-mentioned title, middle control machine and the own category of default path three Outside property, in addition to current two attributes of version (Module Version) and behavior command of module to be disposed.Wherein, portion is treated The version that the module of administration is current can be obtained according to using current product version (Product Version), specifically be treated The method of the module current version of deployment refers to the description of aftermentioned embodiment three.
For example, in environment templates shown in Fig. 2, the content in " building module " is the name for the module that can be disposed in application Claim (Name), click location of the mouse on environment templates, module to be disposed in being applied are utilized according to user. " module list " (Module List) includes the multiple modules to be disposed selected.
Wherein, behavior command (Action) refers to, by after the module disposed is disposed, to run module Order, corresponding operation is performed to module to realize.It should be noted that in an environment templates, each mould to be disposed Block can correspond to a behavior command.
For example, as shown in Fig. 2 the title of the information representation module in frame on the right side of " building module " before " ", after " " The information in face represents the corresponding behavior command of the module.
Wherein, topology information can include needing the destination host (Host) of deployment module, need on each destination host The module of deployment, need module being deployed in the deployment path of destination host (Deploy Path), dispose on each destination host Module between serial parallel pattern and destination host between serial parallel pattern.
For example, as shown in figure 3, the name for the destination host for needing deployment module can be inputted in the input frame of " machine " Claim, such as have input the module to be disposed in " cloud machine ", environment templates in " module list " needs to be deployed in " cloud machine ".
For another example the deployment path inputted in the input frame in " deployment path " in destination host, the deployment path is used to refer to Show that module to be disposed needs to be deployed in the position of the destination host, in this manner it is possible to achieve destination host information.
Wherein, deployment types can include:Full dose is disposed and incremental deploying.Full dose deployment is referred to according to newly-generated ring The environment that environment information carries out again to application is disposed, and the environment existed before will go out of use;Incremental deploying refers to foundation Newly-generated environmental information, the environment deployment of increase application, equivalent to increase some new in the deployed good environment of application Environment deployment.
For example, there is the option of deployment types in Fig. 3, " full dose " represents full dose deployment, and " increment " represents incremental deploying.
In addition, the environment templates of display can be included in the product old version of application, such as Fig. 3 " version ".According to display Environment templates and user utilize click location of the mouse on the environment templates, it is determined that using current product version.
The environment templates of display can also be included in custom variable, such as Fig. 2 " variable name ";Self-defined change according to display Click location in amount and environment templates, obtains the custom variable that user selects.
User can click in Fig. 3 " deployment " button using mouse, thus can according to module to be disposed, described treat Middle control machine information, the behavior command of the module to be disposed and the destination host information of the module of deployment, generation application Environmental information, the environment deployment then applied automatically according to the environmental information.
Embodiment two
Fig. 4 is refer to, the environment deployment that its foundation environmental information provided by the embodiment of the present invention is applied automatically Method schematic flow sheet, as illustrated, this method may comprise steps of:
S401, deployment preparatory unit is parsed to environmental information, to obtain module to be disposed, the mould to be disposed Middle control machine information, the behavior command of the module to be disposed and the destination host information of block.
S402, deployment preparatory unit writes the custom variable of acquisition the environmental variance of destination host.
Specifically, deployment preparatory unit can run export orders, cause export orders by acquisition each oneself Defined variable is written in the environmental variance of destination host that module to be disposed needs deployment, writes the self-defined of environmental variance The behavior command that variable is used for module is used when needing to use custom variable.
S403, deployment preparatory unit sends deployment order to deployment execution unit.
Specifically, deployment preparatory unit will parse the middle control machine of the module to be disposed obtained, the module to be disposed Information, the behavior command of the module to be disposed and the destination host information, are sent to by way of cross-system is called Execution unit is disposed, and sends deployment order.
If deployment is initiated successfully, deployment execution unit returns to " Error=0 " to deployment preparatory unit, represents that deployment is accurate Standby unit deployment is initiated successfully, while nohup orders are run, to cause nohup orders to perform ring on backstage using deployment process Border is disposed, and execution unit running state monitoring process is disposed, to be monitored to deployable state.If failure, portion are initiated in deployment Affix one's name to execution unit and return to " Error=-1 " to deployment preparatory unit, represent that failure, this secondary environment are initiated in deployment preparatory unit deployment Deployment terminates.
S404, deployment execution unit is according to the middle control machine information and the destination host information, by the institute in middle control machine State module to be disposed and be deployed in destination host;Wherein, the destination host information, which includes the module to be disposed, needs portion Deployment path in the destination host of administration and the destination host.
Specifically, the deployment process of backstage performing environment deployment is placed in, by expect instruments, according to the middle control machine Information and the destination host information, automatically log into the middle control machine and the destination host where each module to be disposed, Then operation secure copy (Secure Copy, SCP) order, to cause secure copy order by the acquiescence road of the middle control machine The module to be disposed under footpath, is copied under the deployment path of the destination host, so as to realize the module to be disposed Automatic deployment.
S405, deployment execution unit runs the behavior command, to cause the behavior command from the destination host Environmental variance obtains custom variable, and utilizes the custom variable, starts the module on the destination host, to cause Module on the destination host is started working.
For example, deployment execution unit utilizes the corresponding behavior command of expect instruments operation module;Due to the behavior of operation Order belongs to the subprocess of deployment process, so when behavior command needs to obtain custom variable, and behavior command just can be from Custom variable is got in the environmental variance of destination host.
Operation action order is used to realize to be operated accordingly to module, for example, disposing modules A on destination host Afterwards, it is necessary to which starting module A, makes modules A start working, and starting module A operation is accomplished by being completed by behavior command.
In addition, after operation security command, deployment process meeting far call deployable state more new interface, to obtain deployment knot Really, then deployment result is sent to the condition monitoring process of deployment preparatory unit, the condition monitoring process obtains deployment result After (including deployment success or deployment failure), terminate monitoring.
Embodiment three
Fig. 5 is refer to, its foundation provided by the embodiment of the present invention obtains to be disposed using current product version The schematic flow sheet of the method for the current version of module, as illustrated, this method comprises the following steps:
S501, reads and applies current product version (Product Verison).
It should be noted that the current product version of the application read is the production selected according to user on environment templates Product version, therefore this is not necessarily latest edition using current product version.
S502, judges that the current product version of application whether there is rollback, i.e. whether the current product version of application is most Redaction, if there is rollback, illustrates that using current product version be not latest edition, performs S503;If there is no return Rolling, illustrates that using current product version be latest edition, performs S504.
Latest edition in S503, the product old version for application of successively decreasing, for example, by the version of the product old version of application This number subtracts 1, then performs S502.
S504, the product version current according to the application read, the current version of computing module (Module Version), Then S505 is performed.
For example, computational methods can be:The benchmark version (Module Base Version) of judge module is current with application Product version size, if the benchmark version of module be more than apply current product version, the benchmark version of specification module It is illegal version, then current version is not present in the module, the module need not be disposed;, whereas if the benchmark version of module Less than or equal to current product version is applied, continue the discarded version (Discarded Version) of judge module with answering With the size of current product version.
If the discarded version of module, which is less than, applies current product version, the discarded version of specification module is illegal version This, then current version is not present in the module, and the module need not be disposed;, whereas if the discarded version of module be more than or Equal to current product version is applied, illustrate that the module needs deployment, then by the current product version of application and the base of the module Minimum value in quasi- version, is used as the current version of the module to be disposed.
S505, the current version of judge module whether there is rollback, if it does, performing S506;If it does not, performing S507。
S506, obtains a version in the module, using a version in the module as the current version of the module, then Perform S505.
Whether S507, the version number of the current version of judge module is more than 0, if it is, performing S508;If not, performing S509。
S508, the version current according to module, obtains the middle control machine information of module.
For example, the version current according to module, title, default path and the module path of middle control machine, are obtained in module Control machine information.
S509, if the version number of the current version of module be less than or equal to 0, represent the current version of the module it is invalid or Person's module is gone out of use, then terminates flow, and the current version of module is not obtained.
It should be noted that the version number for the product version applied after upgrading is equal to the version of the product version of application before upgrading This number+1.The version number of the version for the module being upgraded is equal to the version number for the product version applied after this upgrading, does not upgrade Module version keep it is constant.In addition, if module is the module newly increased, then version number of benchmark version of the module etc. In using current product version.If module is the module gone out of use, the version number of the discarded version of the module is equal to should With current product version.
For example, refer to table 1, the version number of the product version of its application provided by the embodiment of the present invention and wait to dispose Module version version number relation.
Table 1
As shown in table 1, wherein "-" represents that the module does not carry out edition upgrading in this edition upgrading, and "×" represents this It is secondary during upgrading without the module, or represent that the module goes out of use.
For example, the product version of application can roll back to the product version applied after third time is upgraded after upgrading at the 4th time This;For another example modules A is not upgraded when second upgrades, the version that the version of modules A is remained in after upgrading for the first time This;For another example module B is also upgraded when upgrading for second, then module B version is equal to the production applied after upgrading at second Product version.
The embodiment of the present invention further provides the device embodiment for realizing each step and method in above method embodiment.
Fig. 6 is refer to, its environment provided by the embodiment of the present invention disposes the functional block diagram of device.As illustrated, The device includes:
First acquisition unit 601, for according to the click location on environment templates and the environment templates, being applied In module to be disposed, the middle control machine information of the module to be disposed and the module to be disposed behavior command;
Second acquisition unit 602, the destination host information for obtaining input;
Processing unit 603, for according to module to be disposed, the middle control machine information of the module to be disposed, described treat The behavior command of the module of deployment and the destination host information, obtain the environmental information of the application, and the environmental information is used Disposed in the environment for realizing the application.
It is preferred that, the environment templates include the product old version of the application;The first acquisition unit 601, tool Body is used for:
According to the click location on the product old version and the environment templates of the application of display, described answer is obtained With current product version;
The product version current according to the application, obtains the current version of the module to be disposed;
The version current according to the module to be disposed, obtains the middle control machine information of the module to be disposed, described Middle control machine information includes the middle control machine where the module to be disposed and the default path in the middle control machine.
Wherein, the product version current according to the application, obtains the current version of the module to be disposed, tool Body includes:
If the benchmark version of the module to be disposed is less than or equal to the current product version of the application, and described The discarded version of module to be disposed is more than or equal to the current product version of the application, the production current according to the application Minimum value in product version and the benchmark version of the module to be disposed, obtains the current version of the module to be disposed.
Optionally, described device also includes:
Preparatory unit 604 is disposed, for according to the click location on the environment templates and the environment templates, obtaining Custom variable;
The deployment preparatory unit 604, is additionally operable to write the custom variable environmental variance of destination host;
Execution unit 605 is disposed, for according to the middle control machine information and the destination host information, by middle control machine The module to be disposed is deployed in destination host;Wherein, the destination host information, which includes the module to be disposed, needs Deployment path in the destination host of deployment and the destination host;
The deployment execution unit 605, is additionally operable to run the behavior command, to cause the behavior command from the mesh The environmental variance of main frame obtain custom variable, and utilize the custom variable, start the mould on the destination host Block, to cause the module on the destination host to start working.
Wherein, it is described according to the middle control machine information and destination host information, it will wait to dispose described in middle control machine Module be deployed in destination host, specifically include:
According to the middle control machine information and the destination host information, logged in using automatic interaction instrument described to be disposed Middle control machine and the destination host where module;
Secure copy order is run, to cause secure copy order to treat portion described under the default path of the middle control machine The module of administration is copied under the deployment path of the destination host.
Because each unit in the present embodiment is able to carry out the method shown in Fig. 1, the part that the present embodiment is not described in detail, Refer to the related description to Fig. 1 to Fig. 5.
The technical scheme of the embodiment of the present invention has the advantages that:
1st, the letter that technical scheme provided in an embodiment of the present invention can be according to environment templates and click location, and input Breath, is automatically generated for the environmental information of environment deployment applied, compared with prior art, the environment templates can be met A variety of environment deployment requirements, therefore the environment templates durability is higher, reduces the modification of environment deployment and reconfigures, therefore energy Environment lower deployment cost is enough reduced, environment deployment efficiency is improved.
2nd,, can be with so the versatility of environment templates is higher because environment templates can meet a variety of environment deployment requirements Reduce the maintenance cost of environment deployment.
3rd, in the prior art, the upgrading frequency of application is higher, and when upgrading every time, the module of deployment is not also fixed, nothing Method realizes the version for obtaining each module, and the embodiment of the present invention three gives the method for the current version of determining module, Neng Goujian Singly, the version for obtaining each module is conveniently realized.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, for example, multiple units or group Part can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown Or the coupling each other discussed or direct-coupling or communication connection can be by some interfaces, device or unit it is indirect Coupling is communicated to connect, and can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in an embodied on computer readable and deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are to cause a computer Device (can be personal computer, server, or network equipment etc.) or processor (Processor) perform the present invention each The part steps of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various Can be with the medium of store program codes.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention God is with principle, and any modification, equivalent substitution and improvements done etc. should be included within the scope of protection of the invention.

Claims (10)

1. a kind of environment dispositions method, it is characterised in that methods described includes:
According to the click location on environment templates and the environment templates, module to be disposed in being applied, described portion is treated The middle control machine information of the module of administration and the behavior command of the module to be disposed;The middle control machine information is waited to dispose described in including Module where middle control machine and the default path in the middle control machine;The behavior command refers to waiting to dispose by described Module dispose after, the order run to the module performs corresponding operation to the module to realize;The environment Template includes the product old version of the application;
Obtain the destination host information of input;The destination host information includes the purpose that the module to be disposed needs to dispose Deployment path in main frame and the destination host;
According to module to be disposed, the middle control machine information of the module to be disposed, the behavior command of the module to be disposed With the destination host information, the environmental information of the application is obtained, the environmental information is used for the environment for realizing the application Deployment.
2. according to the method described in claim 1, it is characterised in that described according on environment templates and the environment templates Click location, applied described in module to be disposed middle control machine information, including:
According to the click location on the product old version and the environment templates of the application of display, obtain the application and work as Preceding product version;
The product version current according to the application, obtains the current version of the module to be disposed;
The version current according to the module to be disposed, obtains the middle control machine information of the module to be disposed.
3. method according to claim 2, it is characterised in that the product version current according to the application, is obtained The current version of the module to be disposed, including:
If the benchmark version of the module to be disposed is less than or equal to the current product version of the application, and described treats portion The discarded version of the module of administration is more than or equal to the current product version of the application, the product version current according to the application Originally with the minimum value in the benchmark version of the module to be disposed, the current version of the module to be disposed is obtained.
4. according to the method in any one of claims 1 to 3, it is characterised in that methods described also includes:
According to the click location on the environment templates and the environment templates, custom variable is obtained;
The custom variable is write to the environmental variance of destination host;
According to the middle control machine information and destination host information, module to be disposed described in middle control machine is deployed in mesh Main frame;
The behavior command is run, to cause the environmental variance of the behavior command from the destination host to obtain self-defined change Amount, and the custom variable is utilized, start the module on the destination host, to cause the module on the destination host Start working.
5. method according to claim 4, it is characterised in that described according to the middle control machine information and the destination host Information, destination host is deployed in by module to be disposed described in middle control machine, including:
According to the middle control machine information and the destination host information, the module to be disposed is logged in using automatic interaction instrument The middle control machine at place and the destination host;
Secure copy order is run, to cause secure copy order will be to be disposed described under the default path of the middle control machine Module is copied under the deployment path of the destination host.
6. a kind of environment disposes device, it is characterised in that described device includes:
First acquisition unit, for according to the click location on environment templates and the environment templates, portion to be treated in being applied The behavior command of the module of administration, the middle control machine information of the module to be disposed and the module to be disposed;The middle control machine Information includes the middle control machine where the module to be disposed and the default path in the middle control machine;The behavior command refers to Be by described after the module disposed is disposed, to the module run order, to realize to the module perform Corresponding operation;The environment templates include the product old version of the application;
Second acquisition unit, the destination host information for obtaining input;The destination host information includes described to be disposed Module needs the deployment path in the destination host and the destination host of deployment;
Processing unit, for according to module to be disposed, the middle control machine information of the module to be disposed, the mould to be disposed The behavior command of block and the destination host information, obtain the environmental information of the application, and the environmental information is used to realize institute State the environment deployment of application.
7. device according to claim 6, it is characterised in that the first acquisition unit, specifically for:
According to the click location on the product old version and the environment templates of the application of display, obtain the application and work as Preceding product version;
The product version current according to the application, obtains the current version of the module to be disposed;
The version current according to the module to be disposed, obtains the middle control machine information of the module to be disposed.
8. device according to claim 7, it is characterised in that the product version current according to the application, is obtained The current version of the module to be disposed, is specifically included:
If the benchmark version of the module to be disposed is less than or equal to the current product version of the application, and described treats portion The discarded version of the module of administration is more than or equal to the current product version of the application, the product version current according to the application Originally with the minimum value in the benchmark version of the module to be disposed, the current version of the module to be disposed is obtained.
9. the device according to any one of claim 6 to 8, it is characterised in that described device also includes:
Preparatory unit is disposed, for according to the click location on the environment templates and the environment templates, obtaining self-defined Variable;
The deployment preparatory unit, is additionally operable to write the custom variable environmental variance of destination host;
Execution unit is disposed, for according to the middle control machine information and destination host information, will be treated described in middle control machine The module of deployment is deployed in destination host;The deployment execution unit, is additionally operable to run the behavior command, to cause the row To order the environmental variance from the destination host to obtain custom variable, and the custom variable is utilized, started described Module on destination host, to cause the module on the destination host to start working.
10. device according to claim 9, it is characterised in that described according to the middle control machine information and the purpose master Machine information, is deployed in destination host by module to be disposed described in middle control machine, specifically includes:
According to the middle control machine information and the destination host information, the module to be disposed is logged in using automatic interaction instrument The middle control machine at place and the destination host;
Secure copy order is run, to cause secure copy order will be to be disposed described under the default path of the middle control machine Module is copied under the deployment path of the destination host.
CN201410329069.9A 2014-07-11 2014-07-11 A kind of environment dispositions method and device Active CN104090799B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410329069.9A CN104090799B (en) 2014-07-11 2014-07-11 A kind of environment dispositions method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410329069.9A CN104090799B (en) 2014-07-11 2014-07-11 A kind of environment dispositions method and device

Publications (2)

Publication Number Publication Date
CN104090799A CN104090799A (en) 2014-10-08
CN104090799B true CN104090799B (en) 2017-10-27

Family

ID=51638518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410329069.9A Active CN104090799B (en) 2014-07-11 2014-07-11 A kind of environment dispositions method and device

Country Status (1)

Country Link
CN (1) CN104090799B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106843963A (en) * 2017-01-20 2017-06-13 郑州云海信息技术有限公司 The device and method of automatic deployment JAVA application programs in K UX operating systems
CN109254778B (en) * 2018-08-31 2020-06-16 百度在线网络技术(北京)有限公司 Method and apparatus for deploying an information flow system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8335851B1 (en) * 2012-03-12 2012-12-18 Ringcentral, Inc. Network resource deployment for cloud-based services
CN103167041A (en) * 2013-03-28 2013-06-19 广州中国科学院软件应用技术研究所 System and method for supporting cloud environment application cluster automation deployment
CN103827822A (en) * 2011-09-29 2014-05-28 甲骨文国际公司 System and method for supporting automatically deploying/undeploying application components in a transactional middleware machine environment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9300532B2 (en) * 2008-10-24 2016-03-29 Microsoft Technology Licensing, Llc Automating deployment of service applications by exposing hosting environment constraints

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103827822A (en) * 2011-09-29 2014-05-28 甲骨文国际公司 System and method for supporting automatically deploying/undeploying application components in a transactional middleware machine environment
US8335851B1 (en) * 2012-03-12 2012-12-18 Ringcentral, Inc. Network resource deployment for cloud-based services
CN103167041A (en) * 2013-03-28 2013-06-19 广州中国科学院软件应用技术研究所 System and method for supporting cloud environment application cluster automation deployment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于云计算平台的应用环境自动部署技术研究;胡树;《中国学位论文全文数据库(万方数据知识服务平台)》;20131129;第19-26页,第28-30页,第32-37页,第44-48页、图3.1,4.2 *

Also Published As

Publication number Publication date
CN104090799A (en) 2014-10-08

Similar Documents

Publication Publication Date Title
US10255067B2 (en) Development of internet of things (IoT) applications
US9952852B2 (en) Automated deployment and servicing of distributed applications
CN104484169B (en) A kind of Android software user interface creating method, system and application system
CN109542556B (en) Method and system for interaction between process and form based on Activiti
CN103744680B (en) Method and device for business process processing
US20170277516A1 (en) Designer tool for managing cloud computing services
CN103268351B (en) Method and device for data synchronism
EP2003557A2 (en) Applicable patch selecting device and applicable patch selecting method
CN106486130A (en) Noise elimination, audio recognition method and device
CN105607972B (en) A kind of method and device repaired extremely
CN107679832A (en) Task management method, device and server
WO2007048653A3 (en) A method and system for systems management tasks on endpoints
JP2008021111A (en) Method of changing business system configuration, management computer, and program for method of changing business system configuration
CN106971075A (en) Detection process method, device and relevant device
CN110096263A (en) Web front end code automatic generation method and device
CN108574605A (en) A kind of acquisition method and device of user behavior data
CN108845797A (en) A kind of speech recognition type programmed method, device and computer equipment
CN102859489A (en) Resumable methods
CN106201466B (en) A kind of Template Manager method based on heat
CN109154908A (en) The part of dynamic size with accurate garbage collection report
CN104090799B (en) A kind of environment dispositions method and device
CN106873970A (en) The installation method and device of a kind of operating system
CN103559063A (en) Update method and update system of application, application system and parameter configuration system
CN107272992A (en) A kind of processing method of application icon, device and terminal
CN109144834A (en) Acquisition method and device, the Android system and terminal device of user behavior data

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