Summary of the invention
Fundamental purpose of the present invention is the method and apparatus providing a kind of remote deployment software, is intended to the remote deployment realizing software, realizes concentrating type, batched operation, improves operating efficiency.
To achieve these objectives, the present invention proposes a kind of method of remote deployment software, comprises step:
Central server is built as subsequent remote disposes the download service providing installation kit;
Central server configuration mount message, produces executable program according to described mount message;
Central server transmits described executable program to terminal server;
Central server performs described executable program on described terminal server, downloads described installation kit and perform installation and deployment by described executable program according to described mount message.
Preferably, described mount message comprises the order of terminal server information, downloaded resources information and corresponding installation kit.
Preferably, the order of described corresponding installation kit comprises software dependence sense command, software installation order, software parameter arranges and software startup is arranged.
Preferably, describedly produce executable program according to described mount message and comprise:
Produce the executable program downloading corresponding installation kit according to described downloaded resources information, the order according to described corresponding installation kit produces the executable program installing corresponding installation kit.
Preferably, described central server is built as subsequent remote deployment provides the download service of installation kit to comprise:
Download Server built by central server, by needing the software resource disposed to be incorporated into described Download Server, as the installation kit that subsequent remote is disposed.
The present invention proposes a kind of device of remote deployment software simultaneously, comprises and builds module, configuration module and remote deployment module, wherein:
Describedly build module, for building as subsequent remote disposes the download service providing installation kit;
Described configuration module, for configuring mount message, and produces executable program according to described mount message;
Described remote deployment module, for transmitting described executable program to terminal server, and performs described executable program on described terminal server, downloads described installation kit and perform installation and deployment by described executable program according to described mount message.
Preferably, described mount message comprises the order of terminal server information, downloaded resources information and corresponding installation kit.
Preferably, described configuration module is used for: produce the executable program downloading corresponding installation kit according to described downloaded resources information, and the order according to described corresponding installation kit produces the executable program installing corresponding installation kit.
Preferably, described in build module for: build Download Server, by need dispose software resource be incorporated into described Download Server, as subsequent remote dispose installation kit.
The method of a kind of remote deployment software provided by the present invention, build download service, configuration mount message by central server and produce executable program, then central server carries out the installation and deployment of software by this executable program of operation long-range on terminal server, achieves remote deployment software.The present invention is by the unified remote deployment carrying out software of central server, user only need configure parameter on a station server, just can perform the Software deployment of Servers-all, achieves concentrating type, batched operation, faster and more convenient operation, operating efficiency is higher; And central server can know the deployment scenario of Servers-all, user can understand the deployment scenario of Servers-all in time, is conducive to getting rid of abnormal conditions in time, improves operating efficiency.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The present invention mainly carries out the remote deployment of software based on liunx system, be intermediary with central server, utilizes central server by containment protocol technology remote automation deployment software on terminal server.In the present invention, central server is the server performing remote deployment, and terminal server is the server needing deployment software.Be described in detail below by way of specific embodiment.
See Fig. 1, propose method one embodiment of remote deployment software of the present invention, said method comprising the steps of:
Step S11: central server is built as subsequent remote disposes the download service providing installation kit.
In this step S11, Download Server built by central server, by needing the software resource disposed to be incorporated into Download Server, as the installation kit that subsequent remote is disposed.This Download Server can be Http server or ftp server.
Step S12: central server configuration mount message.
In this step S12, the mount message of central server configuration comprises the order of terminal server information, downloaded resources information and corresponding installation kit.
Configurating terminal server info, comprises the containment protocol information (containment agreement account, password etc.), IP information etc. of configurating terminal server, connects terminal server in order to subsequent central Server remote.
Configuration downloaded resources information, namely configures the information of corresponding installation kit, for subsequent download installation kit provides guide.
Configure the order of corresponding installation kit, comprise configuration software and rely on sense command, software installation order, software parameter setting and software startup setting, on terminal server, carry out remote deployment in order to subsequent central server.Wherein, software relies on sense command, comprises testing environment variable, whether dependent file catalogue exists, and detects and relies on storehouse version whether consistent (whether being namely correct version) etc.; Software installation order, comprises and compresses installation kit, compile, installs, set; Software parameter is arranged, and comprises the setting to installation kit parameter, the arranging of systematic parameter; Software startup is arranged, and comprises and restarts or start arranging of related software.
Step S13: central server produces executable program according to mount message.
In this step S13, central server produces the executable program downloading corresponding installation kit according to downloaded resources information, order according to corresponding installation kit produces the executable program installing corresponding installation kit, implements Remote Installation deployment in order to subsequent central server by running this executable program on terminal server.The preferred shell step of described executable program can certainly be other program.
Step S14: central server transmits executable program to terminal server.
In this step S14, central server, according to the terminal server information of configuration, utilizes containment protocol interaction technology, long-range connection terminal server, to terminal server remote transmission executable program.
Step S15: central server performs executable program on terminal server, to be downloaded and installed according to mount message by executable program and wraps and perform installation and deployment.
In this step S15, central server utilizes containment protocol interaction technology, long-distance support executable program on terminal server, by this executable program remote deployment software on terminal server.
Concrete, executable program, according to the downloaded resources information of disposing, downloads corresponding installation kit from Download Server, and the order of corresponding installation kit according to configuration, the installation and deployment of executive software.
Thus, the method of remote deployment software of the present invention, build download service, configuration mount message by central server and produce executable program, then central server is by carrying out the installation and deployment of software at this executable program of the long-range operation of terminal server, achieves remote deployment software.The present invention is by the unified remote deployment carrying out software of central server, user only need configure parameter on a station server, just can perform the Software deployment of Servers-all, achieves concentrating type, batched operation, faster and more convenient operation, operating efficiency is higher; And central server can know the deployment scenario of Servers-all, user can understand the deployment scenario of Servers-all in time, is conducive to getting rid of abnormal conditions in time, improves operating efficiency.
See Fig. 2, propose device one embodiment of remote deployment software of the present invention, described device is equivalent to the central server in preceding method embodiment, comprises and builds module, configuration module and remote deployment module, wherein:
Build module: for building as subsequent remote disposes the download service providing installation kit.
Concrete, build module and build Download Server, by needing the software resource disposed to be incorporated into Download Server, as the installation kit that subsequent remote is disposed.This Download Server can be Http server or ftp server.
Configuration module: for configuring mount message, and produce executable program according to mount message.
The mount message of configuration module configuration comprises the order of terminal server information, downloaded resources information and corresponding installation kit.
Configuration module configurating terminal server info, comprises the containment protocol information (containment agreement account, password etc.), IP information etc. of configurating terminal server, connects terminal server in order to subsequent remote.
Configuration module configuration downloaded resources information, namely configures the information of corresponding installation kit, for subsequent download installation kit provides guide.
Configuration module configures the order of corresponding installation kit, comprises configuration software and relies on sense command, software installation order, software parameter setting and software startup setting, carry out remote deployment in order to follow-up on terminal server.Wherein, software relies on sense command, comprises testing environment variable, whether dependent file catalogue exists, and detects and relies on storehouse version whether consistent (whether being namely correct version) etc.; Software installation order, comprises and compresses installation kit, compile, installs, set; Software parameter is arranged, and comprises the setting to installation kit parameter, the arranging of systematic parameter; Software startup is arranged, and comprises and restarts or start arranging of related software.
After mount message has configured, configuration module produces the executable program downloading corresponding installation kit according to downloaded resources information, order according to corresponding installation kit produces the executable program installing corresponding installation kit, in order to disposing to implement Remote Installation subsequently through running this executable program on terminal server.The preferred shell step of described executable program can certainly be other program.
Remote deployment module: for terminal server transmission executable program, and perform executable program on terminal server, to be downloaded and installed according to mount message by executable program and wraps and perform installation and deployment.
Concrete, remote deployment module, according to the terminal server information of configuration, utilizes containment protocol interaction technology, long-range connection terminal server, to terminal server remote transmission executable program.
Then, remote deployment module is long-distance support executable program on terminal server, by this executable program remote deployment software on terminal server.Concrete, executable program, according to the downloaded resources information of disposing, downloads corresponding installation kit from Download Server, and the order of corresponding installation kit according to configuration, the installation and deployment of executive software.
Thus the device of remote deployment software of the present invention, by building download service, configuration mount message and producing executable program, then carries out the installation and deployment of software, achieves remote deployment software at this executable program of the long-range operation of terminal server.The present invention is by the unified remote deployment carrying out software of the device of remote deployment software, user only need configure parameter on the device of this remote deployment software, just can perform the Software deployment of Servers-all, achieves concentrating type, batched operation, faster and more convenient operation, operating efficiency is higher; And the device of remote deployment software can know the deployment scenario of Servers-all, user can understand the deployment scenario of Servers-all in time, is conducive to getting rid of abnormal conditions in time, improves operating efficiency.
One of ordinary skill in the art will appreciate that, realize the hardware that all or part of step in above-described embodiment method can control to be correlated with by program to complete, described program can be stored in a computer read/write memory medium, and described storage medium can be ROM/RAM, disk, CD etc.
Should be understood that; these are only the preferred embodiments of the present invention; can not therefore limit the scope of the claims of the present invention; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.