CN104158905A - Creation method of web containers - Google Patents
Creation method of web containers Download PDFInfo
- Publication number
- CN104158905A CN104158905A CN201410431556.6A CN201410431556A CN104158905A CN 104158905 A CN104158905 A CN 104158905A CN 201410431556 A CN201410431556 A CN 201410431556A CN 104158905 A CN104158905 A CN 104158905A
- Authority
- CN
- China
- Prior art keywords
- web container
- distributed server
- creation
- create
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application discloses a creation method of web containers. The method comprises the following steps that: various web container creation templates and corresponding creation scripts are preset in a master control server; specific to a distributed container of each web container to be deployed, the master control server determines the web container creation template and the corresponding creation script needed for creating the web container according to the type of an operating system adopted by the distributed server when the web container can be created on the distributed server at present, and synchronizes the determined web container creation template and the creation script onto the distributed server; and the distributed server creates corresponding web containers by using the synchronized creation scripts according to the synchronized web container creation templates, and feeds a creation result back to the master control server, wherein when a Windows operating system is adopted by the distributed server, the synchronized creation scripts are executed by using a Cygwin toolkit in the Windows system. Through adoption of the creation method, the creation efficiency and accuracy of the web containers can be increased, and cross-platform distributed web container creation is realized.
Description
Technical field
The present invention relates to computer networking technology, particularly relate to a kind of creation method of web container.
Background technology
Web container is a kind of service routine, at port of server, just has a program that respective service is provided, and this program is exactly to process the request of sending from client, as the IIS of the Tomcat container in JAVA, ASP or PWS etc. belong to web container.A server can a plurality of web containers.
At present, the dispositions method of traditional web container has two kinds, and a kind of is the mode of manual creation, another kind be use bash wscript.exe by application server file copy to associated server.
Above-mentioned the first dispositions method is owing to being manual operations, therefore exist: efficiency is extremely low, error rate is high, be difficult to port collision be detected in the process creating, until just can pinpoint the problems in the process starting and modification process is loaded down with trivial details, the problem such as difficult in maintenance in later stage.
Above-mentioned the second dispositions method, is used script to carry out batch and creates web container, can overcome the problems such as above-mentioned manual efficiency is low, error rate is high.But, can only be that the machine operates, and because bash script is only for controlling (SuSE) Linux OS, so the method do not support windows operating platform, can not carry out cross-platform web container and create.
Large-scale web application deployment needs large-scale distributed web container environment to support while reaching the standard grade, and the applied environment of different distributions formula server will be different, may be Linux operating platforms, may be also windows operating platforms.Therefore, large-scale web application deployment needs a kind of web container establishment scheme that can support cross-platform operation.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of creation method of web container, and the method has higher establishment efficiency, accuracy high and support Linux and windows operating platform simultaneously.
In order to achieve the above object, the technical scheme that the present invention proposes is:
A creation method for web container, comprising:
In a, main control server, set in advance various web container drawing template establishments and create accordingly script;
B, for each, treat the distributed server of arrangement web container, when described main control server can create web container on determining current this distributed server, the OS Type adopting according to this distributed server, determine and on described distributed server, create the needed web container of web container drawing template establishment and the corresponding script that creates, by determined web container drawing template establishment with create script synchronization to described distributed server;
C, described distributed server utilize described synchronous establishment script, according to described synchronous web container drawing template establishment, create corresponding web container, and will create accordingly result feedback to described main control server; Wherein, when described distributed server adopt be Windows operating system time, described distributed server utilizes the Cygwin kit under Windows system to carry out described synchronous establishment script.
In sum, the creation method of the web container that the present invention proposes, by introducing a main control server, presets therein various web container drawing template establishments and creates accordingly script, by this main control server, realizes centralized web container creative management.When the operating platform of distributed server is windows system, need to utilize the cygwin kit that can carry out Linux order in Windows system to carry out web container establishment script.So, can improve establishment efficiency, the accuracy of web container, can also support Linux and windows operating platform simultaneously, realize cross-platform distribution Web container and create.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the embodiment of the present invention one.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with the accompanying drawings and the specific embodiments.
Core concept of the present invention is: introduce a main control server, preset therein various web container drawing template establishments and create accordingly script, by this main control server, realize centralized web container creative management.The distributed server that carries out the establishment of web container need to utilize the script and the template that create for web container of obtaining from main control server, creates web container.When the operating platform of distributed server is windows system, need to utilize the cygwin kit that can carry out Linux order in Windows system to carry out web container establishment script, thereby can realize cross-platform distribution Web container, create.
Fig. 1 is the schematic flow sheet of the embodiment of the present invention one, and as shown in Figure 1, this embodiment mainly comprises:
In step 101, main control server, set in advance various web container drawing template establishments and create accordingly script.
In this step, which web container drawing template establishment and accordingly establishment script in advance in main control server, can according to the system configuration situation of each server reality in distributed system, be arranged by those skilled in the art, concrete grammar is grasped by those skilled in the art, does not repeat them here.
Step 102, for each, treat the distributed server of arrangement web container, when described main control server can create web container on determining current this distributed server, the OS Type adopting according to this distributed server, determine and on described distributed server, create the needed web container of web container drawing template establishment and the corresponding script that creates, by determined web container drawing template establishment with create script synchronization to described distributed server.
In this step, preferably, can adopt following method, determine on current this distributed server whether can create web container:
Step x1, described main control server judge whether that described distributed server is in network-in-dialing state, if so, perform step x2; Otherwise, determine on current this distributed server and cannot create web container.
Step x2, judge whether described distributed server has the system environments of supporting the operation of web container, if supported, determine on current this distributed server and can create web container; Otherwise, determine on current this distributed server and cannot create web container.
In this step, while carrying out described judgement, need to consider hardware environment (hard disk, memory headroom) and the software environment (authority of catalogue, the software that the operation of web container internal program relies on) whether meet web container service conditions, concrete determination methods is grasped by those skilled in the art, does not repeat them here.
Preferably, in order to improve synchronous efficiency, can adopt existing Rsync mode to carry out described synchronous.Here, Rsync is a kind of method of data synchronization that synchronous transmitting data amount is only transmitted difference part that reduces.
Preferably, when main control server described in this step cannot create web container on determining current this distributed server, finish the web container deployment process to this distributed server, to treat that network maintenance staff carries out the reparation of corresponding problem.
Step 103, described distributed server utilize described synchronous establishment script, according to described synchronous web container drawing template establishment, create corresponding web container, and will create accordingly result feedback to described main control server; Wherein, when the operating system of described distributed server employing is Windows operating system, described distributed server utilizes the Cygwin kit under Windows system to carry out described synchronous establishment script.
In this step, get web container drawing template establishment and corresponding establishment after script, distributed server utilizes this web container drawing template establishment to carry out the establishment of web container by carrying out this establishment script, and after establishment completes, be after program is tested successfully automatically, return to corresponding establishment result to described main control server, to store wherein, for it, carry out unified management maintenance.
Here, by carry out the cygwin kit of Linux order in Windows system, carry out web container establishment script, can realize the establishment of the web container on the distributed server that Windows system is installed, thereby can support Linux and windows operating platform simultaneously, realize cross-platform distribution Web container and create.
From such scheme, can find out, the present invention, by realized centralized web container creative management by this main control server, can improve establishment efficiency, the accuracy of web container, realizes cross-platform distribution Web container and creates.
In sum, these are only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (4)
1. a creation method for web container, is characterized in that, comprising:
In a, main control server, set in advance various web container drawing template establishments and create accordingly script;
B, for each, treat the distributed server of arrangement web container, when described main control server can create web container on determining current this distributed server, the OS Type adopting according to this distributed server, determine and on described distributed server, create the needed web container of web container drawing template establishment and the corresponding script that creates, by determined web container drawing template establishment with create script synchronization to described distributed server;
C, described distributed server utilize described synchronous establishment script, according to described synchronous web container drawing template establishment, create corresponding web container, and will create accordingly result feedback to described main control server; Wherein, when described distributed server adopt be Windows operating system time, described distributed server utilizes the Cygwin kit under Windows system to carry out described synchronous establishment script.
2. method according to claim 1, is characterized in that, can create web container and comprise on described definite current this distributed server:
X1, described main control server judge whether that described distributed server is in network-in-dialing state, if so, perform step x2; Otherwise, determine on current this distributed server and cannot create web container;
X2, judge that whether described distributed server has the system environments of supporting the operation of web container, if supported, determines on current this distributed server and can create web container; Otherwise, determine on current this distributed server and cannot create web container.
3. method according to claim 1, is characterized in that, described method further comprises:
When main control server described in step b cannot create web container on determining current this distributed server, finish the web container deployment process to this distributed server.
4. method according to claim 1, is characterized in that, adopts Rsync mode to carry out described synchronous in step c.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410431556.6A CN104158905B (en) | 2014-08-28 | 2014-08-28 | The creation method of web container |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410431556.6A CN104158905B (en) | 2014-08-28 | 2014-08-28 | The creation method of web container |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104158905A true CN104158905A (en) | 2014-11-19 |
CN104158905B CN104158905B (en) | 2018-04-20 |
Family
ID=51884310
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410431556.6A Active CN104158905B (en) | 2014-08-28 | 2014-08-28 | The creation method of web container |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104158905B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106506217A (en) * | 2016-11-14 | 2017-03-15 | 天闻数媒科技(湖南)有限公司 | A kind of application software installation method and system |
CN107807931A (en) * | 2016-09-09 | 2018-03-16 | 北京京东尚科信息技术有限公司 | The method and system of Template Information management |
CN107809470A (en) * | 2017-10-12 | 2018-03-16 | 北京京东尚科信息技术有限公司 | The method and apparatus of application program automatically dispose |
CN109213600A (en) * | 2018-09-11 | 2019-01-15 | 郑州云海信息技术有限公司 | A kind of GPU resource dispatching method and device based on AI cloud |
CN109960551A (en) * | 2017-12-26 | 2019-07-02 | 中国电信股份有限公司 | Cloud desktop services method, platform and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102404381A (en) * | 2011-09-02 | 2012-04-04 | 西安交通大学 | Software deployment system and deployment method based on workflow in cloud computing environment |
US8266616B1 (en) * | 2006-05-11 | 2012-09-11 | Hewlett-Packard Development Company, L.P. | Computer system provisioning using templates |
CN103246503A (en) * | 2012-02-10 | 2013-08-14 | 上海乘亿信息科技有限公司 | Application development framework for enterprise management software |
CN103530162A (en) * | 2013-10-22 | 2014-01-22 | 中国科学院信息工程研究所 | Automatic online virtual machine software installing method and system |
-
2014
- 2014-08-28 CN CN201410431556.6A patent/CN104158905B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8266616B1 (en) * | 2006-05-11 | 2012-09-11 | Hewlett-Packard Development Company, L.P. | Computer system provisioning using templates |
CN102404381A (en) * | 2011-09-02 | 2012-04-04 | 西安交通大学 | Software deployment system and deployment method based on workflow in cloud computing environment |
CN103246503A (en) * | 2012-02-10 | 2013-08-14 | 上海乘亿信息科技有限公司 | Application development framework for enterprise management software |
CN103530162A (en) * | 2013-10-22 | 2014-01-22 | 中国科学院信息工程研究所 | Automatic online virtual machine software installing method and system |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107807931A (en) * | 2016-09-09 | 2018-03-16 | 北京京东尚科信息技术有限公司 | The method and system of Template Information management |
CN106506217A (en) * | 2016-11-14 | 2017-03-15 | 天闻数媒科技(湖南)有限公司 | A kind of application software installation method and system |
CN107809470A (en) * | 2017-10-12 | 2018-03-16 | 北京京东尚科信息技术有限公司 | The method and apparatus of application program automatically dispose |
CN107809470B (en) * | 2017-10-12 | 2020-12-22 | 北京京东尚科信息技术有限公司 | Method and device for automatically deploying application program |
CN109960551A (en) * | 2017-12-26 | 2019-07-02 | 中国电信股份有限公司 | Cloud desktop services method, platform and computer readable storage medium |
CN109960551B (en) * | 2017-12-26 | 2023-03-28 | 中国电信股份有限公司 | Cloud desktop service method, platform and computer readable storage medium |
CN109213600A (en) * | 2018-09-11 | 2019-01-15 | 郑州云海信息技术有限公司 | A kind of GPU resource dispatching method and device based on AI cloud |
CN109213600B (en) * | 2018-09-11 | 2021-04-30 | 郑州云海信息技术有限公司 | GPU resource scheduling method and device based on AI cloud |
Also Published As
Publication number | Publication date |
---|---|
CN104158905B (en) | 2018-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11520808B2 (en) | System and method for synchronizing data between communication devices in a networked environment without a central server | |
CN105553741A (en) | Automatic deployment method for application system based on cloud computing | |
CN104158905A (en) | Creation method of web containers | |
US9207929B2 (en) | Integrated system and firmware update method | |
CN103167041B (en) | A kind ofly support the system and method that the automation of cloud environment application cluster is disposed | |
CN107566165B (en) | Method and system for discovering and deploying available resources of power cloud data center | |
CN102779057A (en) | Base board management controller and automatic upgrade system and method thereof | |
CN108206847A (en) | CDN management system, method and device | |
CN101483576B (en) | Version management implementing method in distributed system | |
US20150326437A1 (en) | Server Information Handling System Configuration by Peer-to-Peer Networking | |
CN104134109A (en) | Engineering configuration method and engineering configuration system integrating version management | |
CN104615455B (en) | A kind of the IPMC program remote upgrading methods and device of ATCA frameworks | |
CN104375860A (en) | Method for refreshing high-density cabinet nodes BMC in batch | |
CN104219329A (en) | Method for deploying service through content distribution in cluster server | |
CN103336696A (en) | Software updating method and system for testing instrument | |
US20230060053A1 (en) | Method and apparatus of deploying a cluster, and storage medium | |
CN105635216A (en) | Distributed application upgrade method, device and distributed system | |
CN102609281A (en) | Distributed software patch updating method and distributed software patch updating system | |
CN103885833A (en) | Method and system for managing resources | |
WO2015196654A1 (en) | Distributed management method and device for network management | |
CN103077034B (en) | hybrid virtualization platform JAVA application migration method and system | |
CN106095494B (en) | The automatic updating system and method for elevator peripheral hardware program | |
CN105117329A (en) | Application automatic online system and method | |
CN110119279B (en) | Application and upgrading method and device thereof | |
CN103677845A (en) | Website application deployment method |
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 |