CN108829433A - A kind of web system version dispositions method, equipment and storage medium - Google Patents

A kind of web system version dispositions method, equipment and storage medium Download PDF

Info

Publication number
CN108829433A
CN108829433A CN201810512314.8A CN201810512314A CN108829433A CN 108829433 A CN108829433 A CN 108829433A CN 201810512314 A CN201810512314 A CN 201810512314A CN 108829433 A CN108829433 A CN 108829433A
Authority
CN
China
Prior art keywords
file
configuration file
version
deployment
web system
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
Application number
CN201810512314.8A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201810512314.8A priority Critical patent/CN108829433A/en
Publication of CN108829433A publication Critical patent/CN108829433A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The invention discloses a kind of web system version dispositions method, equipment and storage mediums.The method includes:It configures for web system to deployment configuration file;In preset version warehouse, the corresponding system file of the web system is obtained;Using the configuration file covered to deployment configuration file in the system file, forms the system file of new version and the system file of the new version is deployed to the web system.The present invention by system file system code and configuration file separate, configure the configuration file of new version, use the configuration file of legacy version in the configuration file covering system file of new version, and then form the system file of new version, the purpose of automatic deployment web system version may be implemented through the invention, the efficiency and success rate that can be improved the publication of web system version, save labour turnover, the lower level error for avoiding manual operation from occurring.

Description

A kind of web system version dispositions method, equipment and storage medium
Technical field
The present invention relates to field of communication technology more particularly to a kind of web (World Wide Web, global wide area network) systems Version dispositions method, equipment and storage medium.
Background technique
Currently, there are a large amount of web systems in internet, to provide service for mass users.It is being directed to web system When carrying out new version publication, existing way is all that operation maintenance personnel is completed by the machine on manual operation line, still, this The mode of the artificial deployment web system version of kind, heavy workload, high labor cost, and since the configuration process of system file is multiple It is miscellaneous, low efficiency is disposed, manual operation is easy to appear lower level error, it is low to be deployed to power.
Summary of the invention
It is a primary object of the present invention to propose a kind of web system version dispositions method, equipment and storage medium, it is intended to solve Certainly manually dispose web system version low efficiency and low success rate of problem.
In order to solve the above-mentioned technical problem, the present invention solves by the following technical programs:
The present invention provides a kind of global wide area network web system version dispositions methods, including:It configures for web system to portion Affix one's name to configuration file;In preset version warehouse, the corresponding system file of the web system is obtained;Matched using described wait dispose It sets file and covers configuration file in the system file, form the system file of new version and by the system of new version text Part is deployed to the web system.
Optionally, it after obtaining the corresponding system file of the web system, is covered using described to deployment configuration file It covers before the configuration file in the system file, further includes:According to the format of the configuration file in the system file, to institute It states and is formatted to deployment configuration file.
Optionally, it before covering the configuration file in the system file to deployment configuration file described in, also wraps It includes:The configuration file in deployment configuration file and the system file is compared;If described to deployment configuration The number of attributes of file is identical with the number of attributes of the configuration file, and the parameter name to deployment configuration file and The parameter name of the configuration file is all identical, then covers the configuration file to deployment configuration file using described.
Optionally, it configures for web system to deployment configuration file, including:Multiple function moulds are configured for the web system Block;Respectively each functional module collocating traffic parameter information;According to the business ginseng for each functional module configuration Number information, generates to deployment configuration file.
Optionally, it configures for web system to deployment configuration file, including:Multiple function moulds are configured for the web system Block;Respectively each functional module configuration running environment and business parameters data;Match according to for each functional module The running environment and business parameters data set are generated to deployment configuration file.
Optionally, respectively each functional module configuration running environment and business parameters data, including:It is respectively every A functional module configures multiple running environment and business parameters data corresponding with each running environment;According to for The running environment and business parameters data of each functional module configuration, generate to deployment configuration file, including:For each Running environment, according to the business parameters data corresponding with the running environment for each functional module configuration, generate with The running environment is corresponding to deployment configuration file.
Optionally, the method also includes:The currently running system file of the web system is backed up in advance;Will be described During the system file of new version is deployed to the web system, if version deployment failure, according to the system of backup File of uniting executes rolling back action.
Optionally, the method also includes:Preset verification address;It is deployed to by the system file of the new version During the web system, the verification address is accessed, if access failure, determines version deployment failure.
The present invention also provides a kind of web system version deployment facility, the web system version deployment facility includes processing Device, memory;The processor is above-mentioned to realize for executing the web system version deployment program stored in the memory Web system version dispositions method.
Invention further provides a kind of storage medium, the storage medium is stored with one or more program, and described one A or multiple programs can be executed by one or more processor, to realize above-mentioned web system version dispositions method.
Web system version dispositions method, equipment and storage medium proposed by the present invention, have the following technical effects:
The present invention by system file system code and configuration file separate, configure the configuration file of new version, use The configuration file of legacy version in the configuration file covering system file of new version, and then the system file of new version is formed, pass through The purpose of automatic deployment web system version may be implemented in the present invention, can be improved the efficiency and successfully of web system version publication Rate saves labour turnover, the lower level error for avoiding manual operation from occurring.
Detailed description of the invention
Fig. 1 is the flow chart according to the web system version dispositions method of first embodiment of the invention;
Fig. 2 is the step flow chart according to the configuration of second embodiment of the invention to deployment configuration file;
Fig. 3 is the schematic diagram according to the configuration of third embodiment of the invention to deployment configuration file;
Fig. 4 is the step flow chart according to the configuration of third embodiment of the invention to deployment configuration file;
Fig. 5 is the step flow chart according to the system file of the formation new version of fourth embodiment of the invention;
Fig. 6 is the step flow chart according to the system file of the deployment new version of fifth embodiment of the invention;
Fig. 7 is the schematic diagram according to the web system version dispositions method of sixth embodiment of the invention;
Fig. 8 is the structure chart according to the web system version deployment facility of seventh embodiment of the invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use For indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Below in conjunction with attached drawing and embodiment, the present invention will be described in further detail.Those skilled in the art should Understand, the specific embodiments described herein are merely illustrative of the present invention, does not limit the present invention.
Embodiment one
The embodiment of the present invention provides a kind of web system version dispositions method.This method can be applied to automatic deployment web system In the background system for version of uniting.As shown in Figure 1, for according to the stream of the web system version dispositions method of first embodiment of the invention Cheng Tu.
Step S110 configures for web system to deployment configuration file.
Web system is selected target web system, carries out version publication in the target web system.
It is the configuration file for needing to be deployed in target web system to deployment configuration file.
Specifically, configuration rule can be arranged according to demand, the configuration to deployment configuration file is realized according to configuration rule; Or user provides user interface, user selection target web system and can configure wait dispose in the user interface Attribute and parameter in configuration file.Wherein, user can be developer, tester, product manager, project manager etc..
Step S120 obtains the corresponding system file of the web system in preset version warehouse.
Version warehouse, for storing the system file of web system.After the system file for forming new version, it can incite somebody to action The system file of new version is compressed into war packet and stores in preset version warehouse, so as in subsequent progress web system version It is used when deployment.
System file, including:System code and configuration file.
In the present embodiment, the system file in version warehouse is war packet.Decompress war packet, available system file In system code and configuration file.
In the present embodiment, system file is divided into two parts of system code and configuration file.By system code and configuration File separate management configures new configuration file according to new demand, to promote when disposing web system version System decoupling.
Step S130 forms new edition using the configuration file covered to deployment configuration file in the system file The system file of the new version is simultaneously deployed to the web system by this system file.
Before covering the configuration file in the system file to deployment configuration file described in, further include:By institute It states and is compared to the configuration file in deployment configuration file and the system file;If the category to deployment configuration file Property quantity is identical with the number of attributes of the configuration file, and the parameter name and the configuration to deployment configuration file The parameter name of file is all identical, then covers the configuration file to deployment configuration file using described.Further, if to The format disunity of deployment configuration file and configuration file, can be after the conversion format to deployment configuration file, will The configuration file in deployment configuration file and the system file is compared;If described to deployment configuration file Number of attributes is identical with the number of attributes of the configuration file, and the parameter name to deployment configuration file and described matches The parameter name for setting file is all identical, then covers the configuration file to deployment configuration file using described.
In the present embodiment, in order to guarantee that system safe and stable can be run, the web system can be backed up in advance and is worked as The system file of preceding operation;During the system file of the new version is deployed to the web system, if version portion Administration's failure, then execute rolling back action according to the system file of backup.It is possible to further preset verification address;? During the system file of the new version is deployed to the web system, the verification address is accessed, if access is lost It loses, then determines version deployment failure.Verification address can be URL (Uniform Resource Locato, the system for verification One Resource Locator) address.
The scheme for present embodiments providing a set of automatic deployment web system version separates system code and configuration file Management, when needing to dispose web system version, configures the configuration file of new version, covers system using the configuration file of new version The configuration file of legacy version in system file, and then the system file of new version is formed, automatic portion may be implemented through this embodiment The purpose for affixing one's name to web system version can be improved the efficiency and success rate of the publication of web system version, save labour turnover, avoid The lower level error that manual operation occurs.
Embodiment two
Configuration is further described to the step of deployment configuration file below.Fig. 2 is real according to the present invention second Apply step flow chart of the configuration to deployment configuration file of example.
Step S210 creates version deploying projects for the web system.
Version deploying projects are created, including but not limited to:Configuration version catalogue inputs new version number, selected target web The IP address (Internet Protocol Address, Internet protocol address) and port numbers of machine where system, setting are used Family role and permission, configuration feature module configure running environment, collocating traffic parameter information.
Business parameters data includes multiple service parameters.
In the present embodiment, it can be each user setting role and permission, make different use according to the difference of user's responsibility Family has the different division of labor.Such as:Configuration permission is set for developer, the power of examination and approval is set for project manager.It in this way can be with The division of labor of user is refined, the safety of version deployment is increased.
In the present embodiment, version is disposed and is managed according to project by user, and such user can manage multiple simultaneously Version deploying projects so as to realize that different versions disposes purpose, and are more clear version deployment whole process, there is item Reason.
Step S220 configures multiple functional modules for the web system under the version deploying projects.
Web system is divided into different functions (function code), each functional module corresponds to one of web system Or multiple functions.Such as:First functional module corresponds to the function of search of web system, and the second functional module corresponds to the row of web system Row list function.
Step S230, respectively each functional module collocating traffic parameter information.
When needing to redeploy web system version, according to web system function corresponding to the functional module of current-configuration Can, configure the business parameters data of the functional module.
Step S240 is generated according to the business parameters data for each functional module configuration to deployment configuration file.
In other words, since each functional module corresponds to a part of web system, so summarizing for the configuration of multiple functional modules All business parameters datas, can be generated entire web system to deployment configuration file.
In the present embodiment, multiple functional modules are configured for web system, realizes and divide web system, in this way It can be directed to each functional module collocating traffic parameter information, during version deployment, if one of functional module Business parameters data goes wrong, and only adjusts the business parameters data of the functional module to go wrong, will not be to other Functional module impacts, and reduces version deployment difficulty, and further promote system decoupling.
Embodiment three
Schematic diagram below with reference to configuration shown in Fig. 3 to deployment configuration file, the step to configuration to deployment configuration file Suddenly it is further described.As can be seen from FIG. 3, the present embodiment can be this deployment configuration of web edition running environment (such as test wrapper Border and formal environments), it is specific as follows:
Fig. 4 is step flow chart of the configuration according to a third embodiment of the present invention to deployment configuration file.
Step S410 creates version deploying projects for the web system.
Step S420 configures multiple functional modules for the web system under the version deploying projects.
Step S430, respectively each functional module configuration running environment and business parameters data.
Running environment, including:Test environment, commencement of commercial operation environment etc..
Since same functional module is under different running environment, different business parameters datas is needed to configure, therefore, When configuring running environment and business parameters data for same functional module, need to be matched according to the running environment for being functional module configuration Set corresponding business parameters data.
In the present embodiment, multiple running environment can be specified for version deployment.
Specifically, multiple running environment can be configured for same functional module, and it is directed to the functional module, is each fortune Row environment corresponds to collocating traffic parameter information.Can also be respectively each functional module configure multiple running environment and with The corresponding business parameters data of each running environment.It is every it is possible to further basis multiple running environment to be disposed The identical multiple running environment of a functional module configuration categories and the identical multiple business parameters datas of quantity, wherein be function The corresponding business parameters data of each running environment of module.
When configuring running environment for functional module, running environment can be embodied by configuration surroundings parameter information.Into One step, it is each functional module configuration surroundings parameter information and business parameters data corresponding with ambient parameter information.
Ambient parameter information includes but is not limited to:The corresponding database address of running environment, account and password.
Step S440 is generated according to the running environment and business parameters data for each functional module configuration to portion Affix one's name to configuration file.
Be configured with multiple running environment if it is each functional module, then be directed to every kind of running environment, according to for each The business parameters data corresponding with the running environment of functional module configuration, generate it is corresponding with the running environment to Deployment configuration file, and then can obtain multiple to deployment configuration file, and a kind of operation each is corresponded to deployment configuration file Environment.That is, business parameters data of multiple functional modules under same running environment is obtained, it is corresponding according to the same running environment Needed deployment configuration file, it is corresponding to deployment configuration file to generate the same running environment;Multiple function moulds are obtained again Business parameters data of the block under another running environment, according to corresponding the needed deployment configuration file of another running environment, It is corresponding to deployment configuration file to generate another running environment;And so on, until all running environment are corresponding wait dispose Until configuration accessory all generates.
It is possible to further be directed to multiple functional modules, acquisition corresponds to the business parameters data of identical ambient parameter information, The business parameters data that identical ambient parameter information is corresponded to according to multiple functional modules, generate the identical running environment it is corresponding to Deployment configuration file.
Such as:Running environment 1 and business parameters data A corresponding with running environment 1, fortune are configured for the first functional module Row environment 2 and business parameters data B corresponding with running environment 2, for the second functional module configure running environment 1 and with fortune The corresponding business parameters data C of row environment 1, running environment 2 and business parameters data D corresponding with running environment 2;According to industry Be engaged in parameter information A and business parameters data C, and it is corresponding to deployment configuration file to generate running environment 1;According to business parameters data It is corresponding to deployment configuration file to generate running environment 2 by B and business parameters data D.
In the present embodiment, user can be directed to project configuration the release directory, configure more for multiple projects are managed A functional module configures multiple (formal, test, customized etc.) running environment.Multiple running environment are configured, only need to provide and transport The corresponding business parameters data of row environment.The release directory can be combined with automated construction method, accomplish to automate structure Build the double effects with automatically dispose.
Example IV
Before the system file of new version is deployed to target web system, need by configuring to deployment configuration text Part and system file form the system file of new version.As shown in figure 5, for according to the formation new edition of fourth embodiment of the invention The step flow chart of this system file.
Step S510, the system file that backup web system is currently running.
In order to avoid occurring the problem of version deployment failure in the process for disposing web system version, backup web system is current The system file being currently running, if version deployment failure, the system file that can use backup retract.
Certainly, the system file that backup web system is currently running can also execute at other times, as long as It is executed before the system file of new version is copied to web system.
Step S520 decompresses the system file corresponding with the web system obtained from version warehouse.
Since web system is during operating system file, the attribute and parameter of system file may change, So being needed after the system file for forming new version when carrying out version deployment, first the system file of new version is compressed For war packet, version warehouse is arrived in storage, when needing to redeploy web system version, decompress in version warehouse with the web system Corresponding war packet of uniting based on the system file obtained after decompression forms new system file.
Step S530 in system file after decompression, obtains configuration file, and will to deployment configuration file and this match File is set to be compared.
Whether step S540 judges identical to the number of attributes of deployment configuration file and the number of attributes of configuration file;Such as Fruit is to then follow the steps S550;If not, thening follow the steps S570.
Whether step S550 judges to the phase of the parameter name in the parameter name and configuration file in deployment configuration file Together;If so, thening follow the steps S560;If not, thening follow the steps S570.
That is, if described to the number of attributes of deployment configuration file and the number of attributes phase of the configuration file Together, and it is described all identical to the parameter name of deployment configuration file and the parameter name of the configuration file, then using described The configuration file is covered to deployment configuration file.
Step S560 covers the configuration file using to deployment configuration file, forms the system file of new version.
Using the configuration file in the system file after the covering decompression of deployment configuration file, can make to deployment configuration File and system code combine, and obtain the system file of a new version.
The system file of the new version is corresponding with to the corresponding running environment of deployment configuration file.Further, system generation Code it is only a set of, if system code with test environment it is corresponding to deployment configuration file in conjunction with, available beta version System file, if system code it is corresponding with commencement of commercial operation environment to deployment configuration in conjunction with, available commencement of commercial operation The system file of version.
In the system file for obtaining new version, the system file of new version is deployed to web system by triggering.At this point, can To generate operation log according to the trigger event.
After the system file for forming new version, the system file of new version can be compressed, obtain war packet, And by the storage of the war packet of the system file of the new version into version warehouse.
Step S570 prompts version deployment failure, executes rolling back action according to the system file of backup.
Rolling back action is executed, the system file of web system operation backup can be made, the system file based on backup provides clothes Business, avoids service disruption.
It in the present embodiment, can be described wait dispose using after obtaining the corresponding system file of the web system Before configuration file covers the configuration file in the system file, further include:According to the configuration file in the system file Format, formatted to described to deployment configuration file.Further, the format of the configuration file in system file, It can be identified by web system, therefore before using to the configuration file in deployment configuration file replacement system file, it will be to portion The format of administration's configuration file is converted to the format that web system can identify.
Configuration file is identified and replaced in order to facilitate web system, and the present invention is web system configuration to deployment configuration file It can be the configuration attribute collection defined using asterisk wildcard format, asterisk wildcard@%xx%@can be used for attribute value to define. If running environment to be disposed be it is multiple, the corresponding category of different running environment can be defined by different asterisk wildcards Property.
Such as:Format to deployment configuration file common.properties is as follows:
Ip=@%property_ip%@(IP address that the line code describes web system);
Port=@%property_port%@(port numbers that the line code describes web system);
Username=@%property_username%@(account that the line code describes web system);
Password=@%property_password%@(password that the line code describes web system);
It is as follows to deployment configuration file common.properties:
Ip=@%192.168.1.1%@;
Port=@%8080%@;
Username=@%root%@;
Password=@%root%@;
The format that format to deployment configuration file is converted to configuration file in system file, by conversion after to portion It is as follows to affix one's name to configuration file common.properties:
Ip=192.168.1.1;
Port=8080;
Username=root;
Password=root.
It is multiple situations for running environment to be disposed, different asterisk wildcards can be used to distinguish different operation rings The corresponding business parameters data in border.
Why the present embodiment needs to undergo format conversion step, and there are several lower several points to consider:
(1) code and configuration file separation, code developer do not need to pay close attention to the difference of different value under different running environment, It in this way can be to avoid potential problems caused by the configuration variance under different running environment.
(2) information security is improved, address, account and the password of formal environments belong to sensitive information, should not be wide General propagation, transformation mechanism in this way can protect sensitive information in web system, and code developer can not be seen.
(3) attribute general for different running environment or be without protection attribute information, asterisk wildcard can not had to Mark, directly fills in true value.Interference will not be generated in conversion process, ensure that the flexibility of exploitation.
Embodiment five
The specific steps that the system file of new version is deployed to web system are further described through below.Fig. 6 is The step flow chart of the system file of deployment new version according to a fifth embodiment of the present invention.
Whether the version number of the system file of step S601, the currently running system file of inspection web system and new version It is identical;If it is, exiting version deployment process;If not, thening follow the steps S620.
Due to having input version number when creating version deploying projects, so the version number of system file can configure It is inquired in file.
If currently running system file is identical with the version number of the system file of new version, illustrate no new version It needs to dispose, at this moment can exit version deployment process;If currently running system file and the system file of new version Version number is different, then can carry out the deployment of the system file of new version.
Whether step S602, the Host Status where checking web system are normal;If so, thening follow the steps S603;If It is no, then it executes and exits version deployment process.
Such as:CPU (Central Processing Unit, central processing unit) utilization rate of web system is detected, if Cpu busy percentage is greater than preset threshold value, then is determined as Host Status exception, at this moment exits version deployment process.
Step S603 removes the host from SLB (Server Load Balancing, server load balancing) equipment, Stop outer to service.
Step S604 removes the corresponding web application of web system from the Reverse Proxy nginx where the host Server.
Step S605, the system file that backup web system is currently running.
The system file of current version is backed up, to be used when retracting.In the present embodiment, backup operation exists It is executed before replicating the system file of new version.
Step S606 replicates the system file of new version to preset memory locations.
The preset memory locations are located under the release directory of web application server.
Step S607 restarts the corresponding web application server of web system.
Step S608, the verification address check-url of access preset, and judge whether to access successfully;If it is, executing Step S609;If not, thening follow the steps S611.
By check check-url whether be able to access that, can be confirmed this version deployment whether succeed, if access at Function then illustrates version deployment success, if access identification, illustrates version deployment failure.Due to by the system of new version File copies to preset memory locations, if version deployment failure, needs to carry out rolling back action, avoid web system can not be just Service is often provided.
The corresponding web application server of web system is re-added to nginx, restores web application service by step S609 Device externally services.
Host where web system is mounted to SLB by step S610 again, is restored host and is externally serviced.
Step S611 executes rolling back action according to the system file of backup.
The purpose for executing rolling back action is to restore/return back to original network state, and still run backup version is System file.
Web system version dispositions method through this embodiment, can be released effectively a large amount of manpowers, through overtesting, individually Project can discharge O&M manpower 30% or so, and the rudimentary fault during version deployment seldom occur.
The present embodiment can be with the various exceptions during the deployment of automatic identification version, and examine to version deployment result It looks into, if version deployment failure, automatic rollback version, it is outer to guarantee that version deployment success or version deployment failure all will not influence Portion uses.
Embodiment six
A more specific embodiment is given below, web system version dispositions method of the invention is carried out more Detailed description.
As described in Figure 7 for according to the schematic diagram of the web system version dispositions method of sixth embodiment of the invention.
Step 1, the configuration file of new version is constructed (to deployment configuration text by continuous integrating server (CI-jekins) Part), and version warehouse is uploaded to, file according to specification catalogue.
It include version binary system, and the expository writing comprising information such as release note, branches to deployment configuration file Part.
Project name, version number are protected in catalogue, are convenient for subsequent lookup.
Step 2, version warehouse is touched when the version of the configuration file of system file changes by preset monitoring script It sends out public notice, scanning directory variation and supporting paper pass through validity server (Valid-jekins) notification version Information Number Version updating is carried out according to library.
The version information of configuration file is stored in version information database, such as directory information and supporting paper;In life After the configuration file of new version, version warehouse can carry out version more by Valid-jekins notification version database Newly.The configuration file of new version can be carried in the notification message.
Step 3, after version information database receives the notice that version changes, new version information update is put in storage.
Step 4, (console is a web system to user's login console, for managing configuration information, provides user's friendship Mutually), version information is checked by inquiring version information database.
Step 5, the test report stored in version warehouse is read in console.
Version warehouse in addition to storage system file, can with the test report of storage system file, so, console may be used also With read test is reported from version warehouse, and test report is checked.
Step 6, the system file of deployment new version is triggered in console.
In the present embodiment, there are two operation use-cases can trigger deployment.One be console project manager by Deployment is needed to be implemented, another is step 7, it is disposed by tester in the version that Valid-jekins executes test environment, For testing.
Step 7, the system file of deployment new version is triggered in Valid-jekins.Step 6 and step 7 are chosen any one kind of them triggering Mode.In the present embodiment, selection is triggered in console and is disposed.
Step 8, deployment machine reads the configuration file of the new version from version information database, checks whether that repetition is disposed, Whether information is complete and legal.
Deployment machine is a linux server, is an agent, and the system of console triggering deployment new version issues After deployment order, deployment is executed by deployment machine.
There is deployment machine each running environment, each machine to exempt from close sudo access authority, could execute file in this way and copy Shellfish, order execute movement.
Step 8, the sensitive configuration warehouse of deployment machine inquiry, there are the feelings of sensitive configuration information in the configuration file of new version Under condition, executes and converted to the format of deployment configuration file.
Wherein, it for sensitive configuration information, can be read from preset sensitive configuration warehouse.
Sensitive configuration information is, for example, the configuration information for being not intended to arbitrarily be checked in web system.
Sensitive configuration information can be safeguarded by O&M engineer.
Step 9, deployment machine downloads the system file of legacy version from version warehouse, and the configuration file after being converted using format is replaced The configuration file in old version system file is changed, forms the system file of new version, and the system file of new version is uploaded to Version warehouse.
Step 10, deployment script is executed, the system file of new version is deployed to user's testing service device (Prod-svr).
Embodiment seven
The present embodiment provides a kind of web system version deployment facilities.As shown in figure 8, for according to seventh embodiment of the invention Web system version deployment facility structure chart.
In the present embodiment, the web system version deployment facility 800, including but not limited to:Processor 810, memory 820。
The processor 810 is implemented for executing the web system version deployment program stored in memory 820 with realizing Web system version dispositions method described in one~embodiment of example six.
Specifically, the processor 810 is used to execute the web system version deployment program stored in memory 820, with Realize following steps:It configures for web system to deployment configuration file;In preset version warehouse, the web system pair is obtained The system file answered;Using the configuration file covered to deployment configuration file in the system file, new version is formed The system file of the new version is simultaneously deployed to the web system by system file.
Optionally, the processor 810 is also used to execute the web system version deployment program stored in memory 820, with Realize following steps:After obtaining the corresponding system file of the web system, covered using described to deployment configuration file Before configuration file in the system file, further include:According to the format of the configuration file in the system file, to described It is formatted to deployment configuration file.
Optionally, the processor 810 is also used to execute the web system version deployment program stored in memory 820, with Realize following steps:It, will be described before covering the configuration file in the system file to deployment configuration file described in It is compared to the configuration file in deployment configuration file and the system file;If the attribute to deployment configuration file Quantity is identical with the number of attributes of the configuration file, and described to the parameter name of deployment configuration file and configuration text The parameter name of part is all identical, then covers the configuration file to deployment configuration file using described.
Optionally, the processor 810 is also used to execute the web system version deployment program stored in memory 820, with Realize following steps:Multiple functional modules are configured for the web system;Respectively each functional module configuration service ginseng Number information;According to the business parameters data for each functional module configuration, generate to deployment configuration file.
Optionally, the processor 810 is also used to execute the web system version deployment program stored in memory 820, with Realize following steps:Multiple functional modules are configured for the web system;Respectively each functional module configuration operation ring Border and business parameters data;According to the running environment and business parameters data for each functional module configuration, generate to portion Affix one's name to configuration file.
Optionally, the processor 810 is also used to execute the web system version deployment program stored in memory 820, with Realize following steps:Respectively each functional module configures multiple running environment and corresponding with each running environment Business parameters data;For each running environment, according to for each functional module configuration and the running environment pair The business parameters data answered generates corresponding with the running environment to deployment configuration file.
Optionally, the processor 810 is also used to execute the web system version deployment program stored in memory 820, with Realize following steps:The currently running system file of the web system is backed up in advance;By the system file portion of the new version During affixing one's name to the web system, if version deployment failure, rollback behaviour is executed according to the system file of backup Make.
Optionally, the processor 810 is also used to execute the web system version deployment program stored in memory 820, with Realize following steps:Preset verification address;In the process that the system file of the new version is deployed to the web system In, the verification address is accessed, if access failure, determines deployment failure.
The present invention by system file system code and configuration file separate, configure the configuration file of new version, use The configuration file of legacy version in the configuration file covering system file of new version, and then the system file of new version is formed, pass through The purpose of automatic deployment web system version may be implemented in the present invention, can be improved the efficiency and successfully of web system version publication Rate saves labour turnover, the lower level error for avoiding manual operation from occurring.
Embodiment eight
The embodiment of the invention also provides a kind of storage mediums.Here storage medium is stored with one or more journey Sequence.Wherein, storage medium may include volatile memory, such as random access memory;Memory also may include non-easy The property lost memory, such as read-only memory, flash memory, hard disk or solid state hard disk;Memory can also include mentioned kind Memory combination.
It is above-mentioned to realize when one or more program can be executed by one or more processor in storage medium Web system version dispositions method.
Specifically, the processor is for executing the web system version deployment program stored in memory, with realize with Lower step:It configures for web system to deployment configuration file;In preset version warehouse, the corresponding system of the web system is obtained System file;Using the configuration file covered to deployment configuration file in the system file, the system text of new version is formed The system file of the new version is simultaneously deployed to the web system by part.
Optionally, it after obtaining the corresponding system file of the web system, is covered using described to deployment configuration file It covers before the configuration file in the system file, further includes:According to the format of the configuration file in the system file, to institute It states and is formatted to deployment configuration file.
Optionally, it before covering the configuration file in the system file to deployment configuration file described in, also wraps It includes:The configuration file in deployment configuration file and the system file is compared;If described to deployment configuration The number of attributes of file is identical with the number of attributes of the configuration file, and the parameter name to deployment configuration file and The parameter name of the configuration file is all identical, then covers the configuration file to deployment configuration file using described.
Optionally, it configures for web system to deployment configuration file, including:Multiple function moulds are configured for the web system Block;Respectively each functional module collocating traffic parameter information;According to the business ginseng for each functional module configuration Number information, generates to deployment configuration file.
Optionally, it configures for web system to deployment configuration file, including:Multiple function moulds are configured for the web system Block;Respectively each functional module configuration running environment and business parameters data;Match according to for each functional module The running environment and business parameters data set are generated to deployment configuration file.
Optionally, respectively each functional module configuration running environment and business parameters data, including:It is respectively every A functional module configures multiple running environment and business parameters data corresponding with each running environment;According to for The running environment and business parameters data of each functional module configuration, generate to deployment configuration file, including:For each Running environment, according to the business parameters data corresponding with the running environment for each functional module configuration, generate with The running environment is corresponding to deployment configuration file.
Optionally, the method also includes:The currently running system file of the web system is backed up in advance;Will be described During the system file of new version is deployed to the web system, if version deployment failure, according to the system of backup File of uniting executes rolling back action.
Optionally, the method also includes:Preset verification address;It is deployed to by the system file of the new version During the web system, the verification address is accessed, if access failure, determines deployment failure.
The present invention by system file system code and configuration file separate, configure the configuration file of new version, use The configuration file of legacy version in the configuration file covering system file of new version, and then the system file of new version is formed, pass through The purpose of automatic deployment web system version may be implemented in the present invention, can be improved the efficiency and successfully of web system version publication Rate saves labour turnover, the lower level error for avoiding manual operation from occurring.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of global wide area network web system version dispositions method, which is characterized in that including:
It configures for web system to deployment configuration file;
In preset version warehouse, the corresponding system file of the web system is obtained;
Using the configuration file covered to deployment configuration file in the system file, the system file of new version is formed simultaneously The system file of the new version is deployed to the web system.
2. the method according to claim 1, wherein after obtaining the corresponding system file of the web system, Before covering the configuration file in the system file to deployment configuration file described in, further include:
According to the format of the configuration file in the system file, formatted to described to deployment configuration file.
3. the method according to claim 1, wherein covering the system to deployment configuration file using described Before configuration file in file, further include:
The configuration file in deployment configuration file and the system file is compared;
If the number of attributes to deployment configuration file is identical and described to portion with the number of attributes of the configuration file The parameter name of the parameter name and the configuration file of affixing one's name to configuration file is all identical, then is covered using described to deployment configuration file Cover the configuration file.
4. the method according to claim 1, wherein for web system configure to deployment configuration file, including:
Multiple functional modules are configured for the web system;
Respectively each functional module collocating traffic parameter information;
According to the business parameters data for each functional module configuration, generate to deployment configuration file.
5. the method according to claim 1, wherein for web system configure to deployment configuration file, including:
Multiple functional modules are configured for the web system;
Respectively each functional module configuration running environment and business parameters data;
According to the running environment and business parameters data for each functional module configuration, generate to deployment configuration file.
6. according to the method described in claim 5, it is characterized in that,
Respectively each functional module configuration running environment and business parameters data, including:
Respectively each functional module configures multiple running environment and business corresponding with each running environment is joined Number information;
According to the running environment and business parameters data for each functional module configuration, generate to deployment configuration file, packet It includes:
For each running environment, according to the service parameter corresponding with the running environment for each functional module configuration Information generates corresponding with the running environment to deployment configuration file.
7. the method according to claim 1, wherein the method also includes:
The currently running system file of the web system is backed up in advance;
During the system file of the new version is deployed to the web system, if version deployment failure, basis The system file of backup executes rolling back action.
8. the method according to the description of claim 7 is characterized in that the method also includes:
Preset verification address;
During the system file of the new version is deployed to the web system, the verification address is accessed, if visited It asks unsuccessfully, then determines version deployment failure.
9. a kind of web system version deployment facility, which is characterized in that the web system version deployment facility includes processor, deposits Reservoir;The processor is for executing the web system version deployment program stored in the memory, to realize claim 1 Web system version dispositions method described in any one of~8.
10. a kind of storage medium, the storage medium is stored with one or more program, and one or more of programs can It is executed by one or more processor, to realize web system version dispositions method according to any one of claims 1 to 8.
CN201810512314.8A 2018-05-24 2018-05-24 A kind of web system version dispositions method, equipment and storage medium Pending CN108829433A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810512314.8A CN108829433A (en) 2018-05-24 2018-05-24 A kind of web system version dispositions method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810512314.8A CN108829433A (en) 2018-05-24 2018-05-24 A kind of web system version dispositions method, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN108829433A true CN108829433A (en) 2018-11-16

Family

ID=64145896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810512314.8A Pending CN108829433A (en) 2018-05-24 2018-05-24 A kind of web system version dispositions method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108829433A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634653A (en) * 2018-11-30 2019-04-16 中链科技有限公司 A kind of resource allocation method and device based on component based architecture
CN109995590A (en) * 2019-04-08 2019-07-09 陈鹏 A kind of user's self-defining device data processing service trustship method
CN110175054A (en) * 2019-04-26 2019-08-27 武汉虹信通信技术有限责任公司 A kind of automatic-calling method and system of system file
CN111866149A (en) * 2020-07-23 2020-10-30 平安证券股份有限公司 Cluster deployment method and device, computer equipment and storage medium
CN111984248A (en) * 2019-05-22 2020-11-24 腾讯科技(深圳)有限公司 Page editing method and device, storage medium and electronic device
CN112559132A (en) * 2020-12-18 2021-03-26 建信金融科技有限责任公司 Safe static detection method and device for containerized deployment application

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6725453B1 (en) * 2000-08-23 2004-04-20 Microsoft Corporation Remote software installation and maintenance
CN103353846A (en) * 2013-06-28 2013-10-16 四川农业大学 Project automatic-deployment plug-in
CN103678319A (en) * 2012-09-03 2014-03-26 腾讯科技(深圳)有限公司 Resource file updating method, device and system and server
CN105117265A (en) * 2015-09-17 2015-12-02 北京金山安全软件有限公司 File upgrading method and device and terminal
CN105389186A (en) * 2015-11-20 2016-03-09 福建亿榕信息技术有限公司 Hot deployment method and system for Java application
CN105808273A (en) * 2014-12-30 2016-07-27 Tcl集团股份有限公司 Software upgrading method and software upgrading device
CN107659458A (en) * 2017-11-02 2018-02-02 广东亿迅科技有限公司 Agent deployment upgrade methods and system based on git Version Controls
CN107832107A (en) * 2017-11-24 2018-03-23 泰康保险集团股份有限公司 System deployment method, apparatus, electronic equipment and storage medium
CN107908414A (en) * 2017-11-22 2018-04-13 中国银行股份有限公司 A kind of method, apparatus and system of the deployment of application server version

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6725453B1 (en) * 2000-08-23 2004-04-20 Microsoft Corporation Remote software installation and maintenance
CN103678319A (en) * 2012-09-03 2014-03-26 腾讯科技(深圳)有限公司 Resource file updating method, device and system and server
CN103353846A (en) * 2013-06-28 2013-10-16 四川农业大学 Project automatic-deployment plug-in
CN105808273A (en) * 2014-12-30 2016-07-27 Tcl集团股份有限公司 Software upgrading method and software upgrading device
CN105117265A (en) * 2015-09-17 2015-12-02 北京金山安全软件有限公司 File upgrading method and device and terminal
CN105389186A (en) * 2015-11-20 2016-03-09 福建亿榕信息技术有限公司 Hot deployment method and system for Java application
CN107659458A (en) * 2017-11-02 2018-02-02 广东亿迅科技有限公司 Agent deployment upgrade methods and system based on git Version Controls
CN107908414A (en) * 2017-11-22 2018-04-13 中国银行股份有限公司 A kind of method, apparatus and system of the deployment of application server version
CN107832107A (en) * 2017-11-24 2018-03-23 泰康保险集团股份有限公司 System deployment method, apparatus, electronic equipment and storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634653A (en) * 2018-11-30 2019-04-16 中链科技有限公司 A kind of resource allocation method and device based on component based architecture
CN109634653B (en) * 2018-11-30 2023-08-01 苏州朗润创新知识产权运营有限公司 Resource allocation method and device based on componentized architecture
CN109995590A (en) * 2019-04-08 2019-07-09 陈鹏 A kind of user's self-defining device data processing service trustship method
CN110175054A (en) * 2019-04-26 2019-08-27 武汉虹信通信技术有限责任公司 A kind of automatic-calling method and system of system file
CN111984248A (en) * 2019-05-22 2020-11-24 腾讯科技(深圳)有限公司 Page editing method and device, storage medium and electronic device
CN111984248B (en) * 2019-05-22 2023-08-25 腾讯科技(深圳)有限公司 Page editing method and device, storage medium and electronic device
CN111866149A (en) * 2020-07-23 2020-10-30 平安证券股份有限公司 Cluster deployment method and device, computer equipment and storage medium
CN111866149B (en) * 2020-07-23 2023-09-05 平安证券股份有限公司 Cluster deployment method and device, computer equipment and storage medium
CN112559132A (en) * 2020-12-18 2021-03-26 建信金融科技有限责任公司 Safe static detection method and device for containerized deployment application

Similar Documents

Publication Publication Date Title
CN108829433A (en) A kind of web system version dispositions method, equipment and storage medium
CN106020930B (en) A kind of application management method and system based on application container
CN100479575C (en) Method and apparatus for realizing scheduled operation in equipment management
US20080028048A1 (en) System and method for server configuration control and management
JP2006520975A (en) Non-intrusive automatic off-site patch fingerprinting and updating system and method
CN105653425A (en) Complicated event processing engine based monitoring system
CN103595774A (en) System application uninstalling method and device with terminal based on server side
CN102929768B (en) Prompting fills method and the client terminal of software by mistake
CN105959390A (en) Unified management system and method of micro services
US20100312879A1 (en) Plug-in provisioning integration in a clustered environment
CN102244585A (en) Change tracking and management in distributed applications
US10778526B2 (en) Automated creation of test tenants for data center technical issue detection
CN101657793A (en) Method, system and computer program for configuring firewalls
CN109618176A (en) A kind of processing method of live broadcast service, equipment and storage medium
CN112162761A (en) Method, system and equipment for automatically deploying project to public cloud containerization platform
CN105117263A (en) UNIX environment software system upgrading method
CN109656569A (en) Multi-environment application dispositions method, equipment, storage medium and device
CN114244604B (en) Integrated authority management method and system suitable for fort machine, electronic equipment and readable storage medium
JP5513926B2 (en) Maintenance work support system
CN113434155A (en) Automatic deployment system in mixed cloud mode
CN113645314A (en) Private cloud deployment method and server
US9176974B1 (en) Low priority, multi-pass, server file discovery and management
US9235437B2 (en) Method and integration component for integrating OSGi environments into a Service-oriented Architecture
JP2006025434A (en) System and method for high capacity fault correlation
CN116450464A (en) Operation and maintenance management method, system and equipment

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: 20181116