CN107734009A - A kind of automatic distributing method based on safe city application program - Google Patents
A kind of automatic distributing method based on safe city application program Download PDFInfo
- Publication number
- CN107734009A CN107734009A CN201710899273.8A CN201710899273A CN107734009A CN 107734009 A CN107734009 A CN 107734009A CN 201710899273 A CN201710899273 A CN 201710899273A CN 107734009 A CN107734009 A CN 107734009A
- Authority
- CN
- China
- Prior art keywords
- sample set
- application programs
- under
- tomcat
- distribution
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
Abstract
The present invention relates to software application technology field, in particular relates to a kind of automatic distributing method based on safe city application program, comprises the following steps:Using at least one B/S application programs as sample set, upload and be stored in local, record the positional information of each B/S application programs server to be distributed arrived in sample set;Shutdown.bat errorlevels under the bin catalogues of Tomcat middlewares under invoking server, are initialized to Tomcat middlewares;The FTP interfaces of Serv U instruments are called, each B/S application programs in sample set are distributed under the Tomcat middleware wabapps catalogues under corresponding server;Startup.bat errorlevels under the bin catalogues of Tomcat middlewares under invoking server, start Tomcat middlewares;Access whether the distribution of B/S application program verifications sample set succeeds.Distribution deployment while this distribution method realizes multiple B/S application programs, the manpower and time cost of the distribution deployment of B/S application programs are reduced, improve the distribution deployment of B/S application programs and the operating efficiency safeguarded.
Description
Technical field
The present invention relates to software application technology field, in particular relates to a kind of based on the automatic of safe city application program
Distribution method.
Background technology
With the fast development of computer application, what the systems of B/S frameworks had gradually substituted traditional C/S frameworks is
System, especially in large-scale safe city project, the system of B/S frameworks is ubiquitous, and various number of applications are a lot.
If being disposed and being safeguarded by existing mode, that is, enter each server and carry out B/S application programs
Distribution deployment, with the renewal iteration of system version, needs to carry out maintenance renewal into each server, so disposes again
Efficiency is low, and consumes substantial amounts of manpower and time cost.
The content of the invention
According to problems of the prior art, the invention provides a kind of dividing automatically based on safe city application program
Forwarding method, distribution deployment while realizing multiple B/S application programs, reduce the distribution deployment of B/S application programs manpower and
Time cost, improve the distribution deployment of B/S application programs and the operating efficiency safeguarded.
The present invention uses following technical scheme:
A kind of automatic distributing method based on safe city application program, it is characterised in that comprise the following steps:
S1, using at least one B/S application programs as sample set, upload and be stored in local, record every in sample set
The positional information of the individual B/S application programs server to be distributed arrived;
S2, the shutdown.bat errorlevels under the bin catalogues of the Tomcat middlewares under Servers-all are called,
All Tomcat middlewares are initialized;
S3, the FTP interfaces of Serv-U instruments are called, each B/S application programs in sample set are distributed to corresponding clothes
It is engaged under the Tomcat middleware wabapps catalogues under device;
S4, the startup.bat errorlevels under the bin catalogues of the Tomcat middlewares under Servers-all are called,
Start all Tomcat middlewares;
S5, accesses whether the distribution of B/S application program verifications sample set succeeds;If sample set is distributed successfully, complete whole
Individual distributing step, repeat step S3~S4 if sample set distribution failure, untill sample set is distributed successfully.
It is further preferred that the positional information of the server to be distributed arrived includes server ip address, distribution in step S1
Path, FTP user's name and password.
Still more preferably, in step S5, access B/S application programs access the distribution of B/S application program verifications whether into
Work(, i.e. checking show whether result is the corresponding page of B/S application programs, if it is represent that sample set is distributed successfully;Instead
It, then it represents that sample set distribution failure.
Still more preferably, if display result is not the corresponding page of B/S application programs, then it represents that sample set is distributed
Failure, by the situation for checking network and FTP interfaces, it is ensured that network and FTP interfaces are without any exception, repeat step S3~S4,
Untill sample set is distributed successfully.
Still more preferably, after the B/S application programs are distributed successfully, B/S applications are monitored in real time by dispensing instrument
The working condition of program;If B/S application programs are not opened, dispensing instrument carries out backstage to correspondingly B/S application programs and restarted.
The advantages of the present invention are:
1) at least one B/S application programs are uploaded and are stored in local by the present invention as sample set first, are recorded each
The positional information of the B/S application programs server to be distributed arrived;Then dispensing instrument is called under the bin catalogues of Tomcat middlewares
Shutdown.bat errorlevels;Sample set is distributed to and treated by calling the FTP interfaces of Serv-U instruments by dispensing instrument
Under Tomcat middleware wabapps catalogues under the server being distributed to;Dispensing instrument calls the bin catalogues of Tomcat middlewares
Under startup.bat errorlevels;Access whether the distribution of B/S application program verifications succeeds;If distributing successfully, complete
Whole distributing step, distribution is re-started if failure is distributed, untill distributing successfully;This distribution method is in a computer
On, the positional information of each B/S application programs server to be distributed arrived is first recorded, then by dispensing instrument to B/S application journeys
Sequence is distributed deployment, and the distribution deployment of B/S application programs is carried out without entering each server, reduces B/S application journeys
The manpower and time cost of sequence distribution deployment, improve the distribution deployment of B/S application programs and the operating efficiency safeguarded.
Brief description of the drawings
Fig. 1 is the flow chart of the distribution method of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
As shown in figure 1, a kind of automatic distributing method based on safe city application program, comprises the following steps:
S1, using at least one B/S application programs as sample set, upload and be stored in local, record every in sample set
The positional information of the individual B/S application programs server to be distributed arrived;
The positional information of the server to be distributed arrived includes server ip address, distribution path, FTP user's name and password.
S2, dispensing instrument call stutdown.bat batches under the bin catalogues of the Tomcat middlewares under Servers-all
Processing order, is initialized to Tomcat middlewares.
Sample set is distributed to the server to be distributed arrived by S3, dispensing instrument by calling the FTP interfaces of Serv-U instruments
Under Tomcat middleware wabapps catalogues under.
S4, dispensing instrument are called at startup.bat batches under the bin catalogues of the Tomcat middlewares under Servers-all
Reason order, starts Tomcat middlewares.
S5, accesses whether the distribution of B/S application program verifications succeeds;If sample set is distributed successfully, whole distribution is completed
Step, repeat step S3~S4 if sample set distribution failure, untill sample set is distributed successfully;
Access whether the distribution of B/S application program verifications succeeds, i.e. checking shows whether result is that the B/S application programs are corresponding
The page, if it is represent sample set distribute successfully;Otherwise, it means that sample set distribution failure;
If showing, result is not the corresponding page of B/S application programs, then it represents that sample set distribution failure, by checking net
The situation of network and FTP interfaces, it is ensured that network and FTP interfaces are without any exception, repeat step S3~S4, until sample set distribution into
Untill work(;
After the B/S application programs are distributed successfully, dispensing instrument monitors the working condition of B/S application programs in real time;If B/S
Application program is not opened, then dispensing instrument carries out restarting from the background to correspondingly B/S application programs.
The distribution method in the present invention is illustrated with reference to embodiment.
Embodiment 1:
Need to be distributed portion to B/S application programs 1, B/S application programs 2, B/S application programs 3, B/S application programs 4
Administration, the distribution of B/S application programs 1 is deployed to server A, the distribution of B/S application programs 2 is deployed to server B, B/S application programs 3
Distribute with B/S application programs 4 and be deployed to server C.
B/S application programs 1, B/S application programs 2, B/S application programs 3, B/S application programs 4 are protected as sample set first
The local of distributing computer be present, and record the positional information of the server A to be distributed arrived of B/S application programs 1, B/S applications
The positional information of the server B to be distributed arrived of program 2, B/S application programs 3 and the server C to be distributed arrived of B/S application programs 4
Positional information.
Under bin catalogues by dispensing instrument invoking server A, server B and server C Tomcat middlewares
Stutdown.bat errorlevels, the Tomcat middlewares in three servers are initialized.
The FTP interfaces of Serv-U instruments are called by dispensing instrument, the B/S application programs 1 in sample set are distributed to clothes
It is engaged under device A Tomcat middleware wabapps catalogues, B/S application programs 2 are distributed to the Tomcat middlewares of server B
Under wabapps catalogues, B/S application programs 3 and B/S application programs 4 are distributed to server C Tomcat middleware wabapps mesh
Under record.
Under bin catalogues by dispensing instrument invoking server A, server B and server C Tomcat middlewares
Startup.bat errorlevels, start Tomcat middlewares.B/S application programs 1, B/S application programs 2, B/S are accessed respectively
Application program 3, B/S application programs 4 verify whether sample set distribution succeeds;If sample set is distributed successfully, whole point is completed
Step is sent out, repeat step S3~S4 if sample set distribution failure, untill sample set is distributed successfully.
In summary, the invention provides a kind of automatic distributing method based on safe city application program, realize more
Distribute deployment while individual B/S application programs, reduce the manpower and time cost of the distribution deployment of B/S application programs, improve
The distribution deployment of B/S application programs and the operating efficiency safeguarded.
Claims (5)
- A kind of 1. automatic distributing method based on safe city application program, it is characterised in that comprise the following steps:S1, using at least one B/S application programs as sample set, upload and be stored in local, record each B/S in sample set The positional information of the application program server to be distributed arrived;S2, the shutdown.bat errorlevels under the bin catalogues of the Tomcat middlewares under Servers-all are called, to institute There are Tomcat middlewares to be initialized;S3, the FTP interfaces of Serv-U instruments are called, each B/S application programs in sample set are distributed to corresponding server Under Tomcat middleware wabapps catalogues under;S4, the startup.bat errorlevels under the bin catalogues of the Tomcat middlewares under Servers-all are called, started All Tomcat middlewares;S5, accesses whether the distribution of B/S application program verifications sample set succeeds;If sample set is distributed successfully, whole point is completed Step is sent out, repeat step S3~S4 if sample set distribution failure, untill sample set is distributed successfully.
- A kind of 2. automatic distributing method based on safe city application program according to claim 1, it is characterised in that:Step The positional information of the server to be distributed arrived includes server ip address, distribution path, FTP user's name and password in rapid S1.
- A kind of 3. automatic distributing method based on safe city application program according to claim 2, it is characterised in that:Step In rapid S5, access whether the distribution of B/S application program verifications sample set succeeds, i.e. checking shows whether result is the B/S application journeys The corresponding page of sequence, if it is represent that sample set is distributed successfully;Otherwise, it means that sample set distribution failure.
- A kind of 4. automatic distributing method based on safe city application program according to claim 3, it is characterised in that:If Show that result is not the corresponding page of B/S application programs, then it represents that sample set distribution failure, by checking that network and FTP connect The situation of mouth, it is ensured that network and FTP interfaces are without any exception, repeat step S3~S4, untill sample set is distributed successfully.
- A kind of 5. automatic distributing method based on safe city application program according to claim 4, it is characterised in that:Institute State after B/S application programs distribute successfully, monitor the working condition of B/S application programs in real time by dispensing instrument;If B/S application journeys Sequence is not opened, then dispensing instrument carries out restarting from the background to correspondingly B/S application programs.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710899273.8A CN107734009A (en) | 2017-09-28 | 2017-09-28 | A kind of automatic distributing method based on safe city application program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710899273.8A CN107734009A (en) | 2017-09-28 | 2017-09-28 | A kind of automatic distributing method based on safe city application program |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107734009A true CN107734009A (en) | 2018-02-23 |
Family
ID=61208398
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710899273.8A Pending CN107734009A (en) | 2017-09-28 | 2017-09-28 | A kind of automatic distributing method based on safe city application program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107734009A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090222504A1 (en) * | 2008-02-28 | 2009-09-03 | Oracle International Corporation | Distributed cross-application server deployment |
CN102200918A (en) * | 2010-03-23 | 2011-09-28 | 中兴通讯股份有限公司 | Method and device for deploying application program in server |
CN102567050A (en) * | 2011-12-13 | 2012-07-11 | 中国电子科技集团公司第十五研究所 | Method and device for remote deployment of project of B/S (browser/server) system |
CN105824674A (en) * | 2016-03-22 | 2016-08-03 | 乐视网信息技术(北京)股份有限公司 | Method and device for deploying application programs |
CN106325951A (en) * | 2016-08-30 | 2017-01-11 | 广西电网有限责任公司 | Automatic deployment method for application system supporting multiple databases and multiple middleware types |
-
2017
- 2017-09-28 CN CN201710899273.8A patent/CN107734009A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090222504A1 (en) * | 2008-02-28 | 2009-09-03 | Oracle International Corporation | Distributed cross-application server deployment |
CN102200918A (en) * | 2010-03-23 | 2011-09-28 | 中兴通讯股份有限公司 | Method and device for deploying application program in server |
CN102567050A (en) * | 2011-12-13 | 2012-07-11 | 中国电子科技集团公司第十五研究所 | Method and device for remote deployment of project of B/S (browser/server) system |
CN105824674A (en) * | 2016-03-22 | 2016-08-03 | 乐视网信息技术(北京)股份有限公司 | Method and device for deploying application programs |
CN106325951A (en) * | 2016-08-30 | 2017-01-11 | 广西电网有限责任公司 | Automatic deployment method for application system supporting multiple databases and multiple middleware types |
Non-Patent Citations (3)
Title |
---|
CH_DJ: ""批处理 tomcat 服务重启 shutdown startup 重启"", 《ITEYE博客》 * |
何山,邹劲松,杨旭东: "《Windows Server 2008项目教程》", 31 December 2015 * |
微风轻舞: ""Tomcat——startup.bat 与shutdown.bat"", 《CSDN博客》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108600029B (en) | Configuration file updating method and device, terminal equipment and storage medium | |
CN100340981C (en) | Apparatus and method for managing and transporting virtual disks over a network to networked stations | |
CN102110197B (en) | Method and system for multi-core processor to realize TMP (trusted platform module) in computing environment | |
CN105357273B (en) | SOCKET communications and management of process general-purpose platform and method under asynchronous communication model | |
CN102609281B (en) | Distributed software patch update method and system | |
CN105357266A (en) | Universal SOCKET communication and process management platform applied to multiple scenes and method | |
CN104077199B (en) | Based on partition method and the system of the high-availability cluster of shared disk | |
CN105138398A (en) | SOCKET communication and process management common platform and method under synchronous communication mode | |
CN107707687A (en) | A kind of method and apparatus of virtual machine IP address configuration | |
CN104660606A (en) | Method for remotely monitoring safety of application program | |
US8959491B2 (en) | System, method, and computer program product for error code injection | |
WO2021169124A1 (en) | Method and apparatus for installing software package to target host, and computer device | |
CN111985906A (en) | Remote office system, method, device and storage medium | |
CN107908957B (en) | Safe operation management method and system of intelligent terminal | |
US8793651B2 (en) | Remote card content management using synchronous server-side scripting | |
CN106997313B (en) | Signal processing method and system of application program and terminal equipment | |
Harchol et al. | FTvNF: Fault tolerant virtual network functions | |
CN107968816A (en) | A kind of method that cloud platform is built using mobile terminal | |
CN101950339B (en) | Security protection method and system of computer | |
CN109189652A (en) | A kind of acquisition method and system of close network terminal behavior data | |
CN107734009A (en) | A kind of automatic distributing method based on safe city application program | |
Utas | Robust Communications Software: Extreme Availability, Reliability and Scalability for Carrier-Grade Systems | |
CN108347456B (en) | Application program downloading method and device | |
CN109120595A (en) | A kind of USB device communication means and device for realizing KVM function | |
CN114257614B (en) | Multi-service-mode hospital big data platform system and resource scheduling method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180223 |