CN107147712A - Update the method and device of web application - Google Patents
Update the method and device of web application Download PDFInfo
- Publication number
- CN107147712A CN107147712A CN201710310588.4A CN201710310588A CN107147712A CN 107147712 A CN107147712 A CN 107147712A CN 201710310588 A CN201710310588 A CN 201710310588A CN 107147712 A CN107147712 A CN 107147712A
- Authority
- CN
- China
- Prior art keywords
- main body
- body program
- redaction
- program
- information
- 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
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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Abstract
This disclosure relates to a kind of method and device for updating web application.Methods described includes:During the web application realizes online service by legacy version main body program and old port, the online access request of the web application is received, the online access request indicates the online service of request;The online service indicated is asked to determine the corresponding main body program information of online service described in the web application according to the online access;The new port-mark and directional information related to the main body program information is extracted from configuration file;The process for pointing to redaction main body program is created according to the directional information, it is that online access request controls the redaction main body program to perform online service to trigger the process according to the new port-mark.The method and device of the web application upgrading provided using the disclosure can avoid the renewal of web application completely to the interference caused by online access.
Description
Technical field
This disclosure relates to Computer Applied Technology field, more particularly to a kind of method and dress for updating web application
Put.
Background technology
In order to meet the diversified demand of user, terminal can install a variety of different application programs, should by different
Different functions are realized with program.Various limitations are often there are yet with terminal, also be may require that some application programs
In the webserver, as long as terminal is communicated with the webserver, just it can be configured on the online access webserver
A variety of application programs, obtain various online services.
In order that the application program being separately mounted in terminal and the webserver is otherwise varied, it will hereafter be installed in terminal
Application program be referred to as local application, and the application program installed in the webserver referred to as web application.
At present, the escalation process of web application be typically the corresponding legacy version of web application out of service it
Afterwards, the corresponding more redaction of the web application that reruns, the version updating of web application is realized with this, this is also resulted in
Necessary interrupting service, i.e. terminal can not carry out online access to web application in the process, and then cause network application
The renewal of program can be interfered to online access.
The content of the invention
Based on this, in order to solve the above-mentioned technical problem, a purpose of the disclosure is to provide a kind of web application
The method and device of upgrading.
Wherein, the technical scheme that the disclosure is used for:
A kind of method for updating web application, the web application is performed on line by the main body program configured
Service, the corresponding redaction main body program of the main body program is by advance installation and deployment, and methods described includes:The network application
During program realizes online service by legacy version main body program and old port, the online of the web application is received
Access request, the online access request indicates the online service of request;Asked to take on the line indicated according to the online access
Business determines the corresponding main body program information of online service described in the web application;Extracted and the master from configuration file
Body program information related new port-mark and directional information;Created according to the directional information and point to redaction main body program
Process, it is that online access request controls the redaction main body program to hold to trigger the process according to the new port-mark
Row online service.
A kind of device for updating web application, the web application is performed on line by the main body program configured
Service, the corresponding redaction main body program of the main body program is by advance installation and deployment, and described device includes:Request receives mould
Block, during realizing online service by legacy version main body program and old port for the web application, receives institute
The online access request of web application is stated, the online access request indicates the online service of request;Information determination module,
For asking the online service indicated to determine the correspondence of online service described in the web application according to the online access
Main body program information;Information extraction modules, for extracting the new port related to the main body program information from configuration file
Identify and point to information;Online service module, the process of redaction main body program is pointed to for being created according to the directional information,
It is that online access request controls the redaction main body program to perform line that the process, which is triggered, according to the new port-mark
Upper service.
Compared with prior art, the disclosure has the advantages that:
Web application is when needing to be updated, by the corresponding redaction main body of advance installation and deployment its main body programs
Program, during web application realizes online service by legacy version main body program and old port, can receive network
The online access request of application program, online access asks to indicate the online service of request, now, will pass through installation and deployment
Redaction main body program realizes the online service of request.
Specifically, the online service indicated is asked to determine online service in web application according to online access first
Corresponding main body program information, the new port-mark and directional information related to main body program information is extracted from configuration file, is entered
And the process for pointing to redaction main body program is created according to directional information, triggering process please for online access according to new port-mark
Ask control redaction main body program to perform online service, thus, when just make it that web application updates, performed
Online service still will not be influenceed in the presence of legacy version main body program and old port by updating, and on the line newly asked
Service, then realized by redaction main body program and new port, for initiating the requesting party of online access request, can't be felt
Know that the dynamic of web application updates, without related online service is stopped, realizing the dynamic of web application
It is seamless to update, the renewal of web application can be avoided completely to the interference caused by online access.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not
The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure
Example, and be used in specification to explain the principle of the disclosure together.
Fig. 1 is the schematic diagram of the implementation environment according to involved by the disclosure;
Fig. 2 is a kind of flow chart of the method for renewal web application according to an exemplary embodiment;
Fig. 3 is that Fig. 2 corresponds to flow chart of the step 250 in one embodiment in embodiment;
Fig. 4 is that Fig. 2 corresponds to flow chart of the step 270 in one embodiment in embodiment;
Fig. 5 is a kind of flow chart of the method for web application upgrading according to another exemplary embodiment;
Fig. 6 is that Fig. 5 corresponds to flow chart of the step 330 in one embodiment in embodiment;
Fig. 7 is that a kind of method of web application upgrading implements schematic diagram in an application scenarios;
Fig. 8 is a kind of block diagram of the device of renewal web application according to an exemplary embodiment;
Fig. 9 is that Fig. 8 corresponds to block diagram of the information extraction modules 750 in one embodiment in embodiment;
Figure 10 is block diagram of the service module 770 in one embodiment on Fig. 9 correspondence embodiment center lines;
Figure 11 is the block diagram of the device of another renewal web application according to an exemplary embodiment;
Figure 12 is that Figure 11 corresponds to block diagram of the configuration module 830 in one embodiment in embodiment;
Figure 13 is a kind of hardware block diagram of webserver according to an exemplary embodiment.
Pass through above-mentioned accompanying drawing, it has been shown that the clear and definite embodiment of the disclosure, will hereinafter be described in more detail, these accompanying drawings
It is not intended to limit the scope that the disclosure is conceived by any mode with word description, but is by reference to specific embodiment
Those skilled in the art illustrate the concept of the disclosure.
Embodiment
Here explanation will be performed to exemplary embodiment in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of schematic diagram of the implementation environment involved by method for updating web application.The implementation environment bag
Include requesting party 110 and service end 130.
Wherein, requesting party 110 can be the client that web application into service end 130 asks its online service
End or some business procedure etc..Client is run in terminal, and terminal can be smart mobile phone, tablet personal computer, calculating
Machine or other any electronic equipments for being available for client to run, are not limited herein.
Installation and deployment have web application in service end 130, are available for requesting party 110 to carry out online access, are requesting party
110 perform online service.
Referring to Fig. 2, in one exemplary embodiment, a kind of method for updating web application is applied to shown in Fig. 1
Service end 130 in implementation environment, web application attached portion is deployed on service end 130, and the main body program by configuring
Online service is performed, the corresponding redaction main body program of main body program is by advance installation and deployment.
The method that this kind updates web application can be performed by service end 130, may comprise steps of:
In step 210, web application realizes the process of online service by legacy version main body program and old port
In, the online access request of web application is received, online access request indicates the online service of request.
Wherein, it should illustrate first, attached portion is deployed on the web application of service end, network application journey
Sequence is used to realize various online services.To realize various online services in web application, by some main bodys of corresponding configuration
Program, and then realize by main body program corresponding online service.It is separate between each main body program.
Based on this, the renewal of web application will be that the main body program disposed to web application performs renewal
Process.
Here, for a main body program of web application institute installation and deployment, then can be in service if desired for renewal is performed
Corresponding installation and deployment redaction main body program is held, and original main body program is present as legacy version main body program.
Requesting party corresponding to service end is mostly magnanimity, its continual can receive that each requesting party initiates
Line access request, and then asked in response to online access and online service is provided.This will also cause what web application updated
During execution, however it remains the online service performed for some requesting parties, also may proceed to receive the online access newly initiated
Request.
Now, with the installation and deployment of redaction main body program, the online service just performed for some requesting parties will not
Interrupt, but continue to realize online service by legacy version main body program and old port, the online access request newly initiated then can
Its online service asked is realized by redaction main body program, for requesting party, that is, online service is realized
Renewal, essence be web application renewal, its online service asked is not interfered with again, requesting party is to being occurred
Renewal be unaware.
It should remark additionally herein, for requesting party, its online service obtained is by designated port and service
Connection is set up at end, and then can be provided by corresponding main body program, therefore, for being taken on the line that legacy version main body program is performed
Business, requesting party is to set up itself by the old port configured and be connected with service end.
In step 230, the online service indicated is asked to determine online service correspondence in network application according to online access
Main body program information.
Wherein, the online access request that request direction service end is initiated, is initiated for the required online service obtained
, therefore, the necessarily indicative online service asked of online access that service end is received request.
As previously described, each main body program of web application, is all specified to realize to specify in web application
Online service and dispose.Receive after online access request, the online service of instruction is asked according to online access, you can really
The corresponding main body program of this fixed online service, and then corresponding acquisition main body program information.
Main body program information indicates main body program identification and each attribute related to main body program, for service end
For, the current desired main body program to be performed can be positioned for requesting party according to main body program information, specifically, completed
After renewal, this main body program is redaction main body program, when not being updated, this main body program be in service end only
One has and is asked for realizing the program of online service, and relative to the renewal subsequently occurred, it is legacy version program.
In step 250, the new port-mark and directional information related to main body program information is extracted from configuration file.
Wherein, configuration file is stored in service end, for controlling main body program in service end to perform online service, and
Establishment of connection between requesting party and service end.Each main body program of web application all stores phase in configuration file
The configuration information answered, this configuration information corresponds to main body program information, and this configuration information includes related to main body program information
New port-mark and directional information.
New port-mark and directional information are when performing renewal, in write-in configuration file.Indicated by new port-mark
Port, i.e., new port is different from old port.Directional information indicates the program pointed to during operation, for example, directional information can be
The form of soft link.
Obtain with after the corresponding main body program information of online service indicated by online access request, you can thus main body journey
Sequence information carries out the lookup of corresponding configuration information in configuration file, and then obtains holding main body program indicated by main body program information
The new port-mark and directional information gone after updating.
In step 270, the process for pointing to redaction main body program, the new port mark of triggering control are created according to directional information
Know and perform online service for online access request control redaction main body program.
Wherein, it is the realization establishment process of online service in web application, and then side can be in the presence of process
The execution of online service is realized, and ensures that requesting party is set up by new port and is connected, online service is obtained.
Specifically, in the case where performing renewal, pointed to according to the program that directional information is carried out, create and point to new edition
The process of this main body program, and provide online service by new port for requesting party.
By exemplary embodiment as above, the renewal performed by web application will be caused to be for requesting party
Transparent, requesting party simultaneously need not perform any processing operation for the generation updated in web application, what it was asked
Therefore online service will not also be affected, for example, and need not cut off and have process, technology cost of implementation is low.
Referring to Fig. 3, in one exemplary embodiment, step 250 may comprise steps of:
In step 251, the configuration information obtained corresponding to main body program information is searched in configuration file.
In the present embodiment, the configuration file is pre-configured with by the Agent disposed in advance, for example, the Agent
Can be Haproxy.
The Agent can not only support ten hundreds of concurrently connections, for example, being embodied as mass users offer simultaneously
Online service, can also support being respectively configured for front end services end and back-end services cluster, match somebody with somebody for example, front end services end is fixed
Put, back-end services cluster dynamically distributes meet load balancing with this, be conducive to improving the treatment effeciency of service end.
During agent application deployment, that is, the configuration of configuration file is completed, and then can be obtained according to configuration file
To the configuration information corresponding to main body program information.
For example, configuration information includes maximum number of connections, connection time-out time, the relevant configuration at front end services end, rear end clothes
Relevant configuration of business cluster etc..Wherein, the configuration of new port and old port belongs to the relevant configuration of back-end services cluster.
In step 253, judge the configuration with the presence or absence of new port and old port in configuration information, if YES, then hold
Row step 255, if NO, then performs step 257.
In step 255, new port-mark and directional information are extracted.
In step 257, the extraction that the configuration information uniquely has port-mark and directional information is carried out.
Wherein, in the related configuration information of a main body program information, when updating, exist new port-mark and
Old port-mark, either new port-mark or old port-mark, there is its related directional information;Do not updating
When, it only uniquely there is the directional information of Single port mark and correlation.
Thus, the presence identified according to configuration information middle port is judged to whether there is new port in configuration information and old
Port.
If there is the configuration of new port and old port in configuration information, illustrate to be updated, service end will be stored
Legacy version main body program and redaction main body program, now, to respond currently requested online service, new port will be carried out
Identify and point to the extraction of information.
If there is no the configuration of new port and old port in configuration information, illustrate not update, service end is only
Only exist the main body program of a version, it is only necessary to online access is responded by original mode and asked.
It is that the online service execution before and after web application updates is carried in the presence of exemplary embodiment as described above
The process of seamless switching has been supplied, and then the seamless renewal for requesting party can be achieved, requesting party perceives without interruption.
Referring to Fig. 4, in one exemplary embodiment, step 270 may comprise steps of.
In step 271, the program carried out according to directional information points to the process for creating redaction main body program.
Wherein, it is its process of pull-up one, this process is area during being responded to the request of the online access of reception
Not in the current another process for running and pointing to legacy version main program, it will be pointed to by the link that directional information is realized
Redaction main program.
In step 273, triggering process carries out the monitoring of new port according to new port-mark, by the monitoring of new port with
The requesting party for initiating online access request sets up connection.
Wherein, the startup of redaction main body program is realized by the process newly created and completes the monitoring of new port, thus
The connection that new port is set up between service end and requesting party.
In step 275, it is that requesting party is performed on line by the connection and the more execution of redaction main body program of foundation
Service.
Under the cooperation of exemplary embodiment as described above, the fortune of redaction main body program is realized by newly creating process
Row and the realization of online service, are that the online service of redaction main body program and legacy version main body program in network application is performed
There is provided enforceable precondition, ensure that the realization of online service in requesting party will not be by the influence updated with this.
Referring to Fig. 5, in one exemplary embodiment, the method that this kind updates web application, step 250 it
Before, it can also comprise the following steps:
In the step 310, the execution updated by main body program version carries out the storage of redaction main body program.
Wherein, as previously described, the renewal of web application, the renewal of substantially each main body program.In other words, it is
As needed, for the main body program of existing version, it is updated respectively, is that it stores redaction main body program in service end.
The redaction main body program can be stored manually into service end by developer, can also be by service end master
It is dynamic to download and store from third-party application platform, it is not limited herein.Herein it should be noted that redaction main body journey
Sequence and the main body program of existing version, i.e. legacy version main body program are stored respectively, and the two is separate, legacy version master
Body program still can normally be run.
Specifically, in one exemplary embodiment, step 310, including:Triggering performs main body in web application
The version updating of program, is different from legacy version main body program by redaction main body program and is stored.
In service end, redaction main body program and legacy version main body program are stored respectively in different memory spaces.Storage
It is unliterary in some file or same fdisk different directories in hard disk that space can be that service end is configured
Part is pressed from both sides, it might even be possible to is the different files in different fdisk different directories, is not also defined herein.
It is real without covering legacy version main body program with redaction main body program by being mutually distinguishable between memory space
Show being completely independent for web application different editions, be advantageously implemented online service in web application renewal process
Do not interrupt.
In a step 330, the redaction main body program for storage carries out new port in configuration file and program operation refers to
To configuration, make the new port-mark of respective stored and directional information in configuration file.
Wherein, the new port configured, the necessarily port in idle condition, the port-mark just conduct corresponding to it
New port-mark and unique mark is configured in configuration file new port.
Directional information is then created in advance, before not updating, and directional information is directed to legacy version main body program, is led to
The generation updated is crossed, directional information will point to redaction main body program.In exemplary embodiment in the specific implementation, pointing to
Information is present in the form of soft link.
Specifically, soft link be used to link main body program, that is, soft link is used to point to a main body program.Example
Such as, before not updating, when a legacy version main body program is pointed in soft link, legacy version main body journey is started by the sensing of soft link
Sequence;After renewal, redaction main body program is pointed in soft link, and redaction main body program is started by the sensing of soft link.
For the main body program indicated as previously mentioned, for a main body program information, its redaction main body program and old edition
This main body program is stored respectively in different memory spaces, therefore, in installation and deployment after redaction main body program, will be to soft
Link, i.e., directional information is modified, that is, causes soft link to replace with redaction main body journey by the sensing of legacy version main body program
The sensing of sequence, during in order to perform corresponding online service again, can start redaction main body journey according to the soft link after replacement
Sequence.
Soft link will be used as a tab file of web application correspondence version, i.e. the reading carried out according to soft link
Operation or write operation, are substantially the read operation to main body program correspondence version or write operation.
When it is soft link be deleted when, only delete soft link in itself, and and non-delete respective version main body program, because
This carries out the version iteration control in network application using soft link, can effectively avoid the mistake to web application version
Operation, is especially deleted by mistake, and then effectively raises the security of web application renewal.
Referring to Fig. 6, in one exemplary embodiment, the step 330 may comprise steps of:
It is that the port that redaction main body program configuration use state is idle condition is new port in step 331, and phase
New port-mark should be obtained.
Wherein, the use state of port includes idle condition and seizure condition.Port is then represented also not in idle condition
There is process to use the port.Relatively, port then represents to have been carried out the use of the port in seizure condition.
In exemplary embodiment in the specific implementation, configuration to realize port, from default port, set determines one
Use state is the port of idle condition, and new port is used as using this port.
Default port set refers to the port in ICP/IP protocol, and its corresponding range of port number is 0~65535.
Further, due to the port corresponding to port numbers 0~1023 generally can not dynamically distributes, therefore, it is possible to can be with
Configured using the port that range of port number is 1024~65535 as new port.
In step 333, it is that redaction main body program enters the configuration that line program operation is pointed to, is accordingly deposited in configuration file
The directional information and new port-mark of redaction main body program are pointed in storage.
Referring to Fig. 7, in a practical application scene, installation and deployment store application program current in service end
Store, store application program current store perform online service by the 5 main body programs configured.Wherein, 5 masters
Body program is pvp, purchase, loot, admin and catalog respectively.
Meanwhile, installation and deployment Agent HAPROXY is gone back in service end, to be matched somebody with somebody by Agent HAPROXY
The configuration file put obtains the related new port-mark and directional information of main body program information.
To game player, in store application program update, the process of online access network shopping mall is been described by below.
Before store application program current store do not update, respectively by 5 legacy version main body programs and correspondingly
Old port old port realize online service, i.e., to game player provide online access.
When store application program current store need to be updated, by its 5 main body programs of advance installation and deployment
Corresponding redaction main body program.
Further, store application program current store continue through 5 legacy version main body programs and corresponding old
During port old port realize online service, the online access request of game player's initiation can be received, now, will be logical
The corresponding new port new of new port-mark extracted in the 5 redaction main body programs and configuration file of crossing installation and deployment
Port performs online service, even if game player's online access network shopping mall.
By process as described above, during store application program is updated, game player is ongoing
Online access will not be influenceed by updating, and the online access newly asked will also be responded by redaction main body program, i.e.,
Game player can access network shopping mall at any time, and the renewal less than store application program is perceived completely, store is realized and applies journey
The dynamic of sequence is seamless to be updated, and is avoided completely to the interference caused by the online orientation of game player, so as to greatly increase game
The access experience of player.
Following is disclosure device embodiment, can be used for performing the side of the web application upgrading involved by the disclosure
Method.For the details not disclosed in disclosure device embodiment, it refer to what the web application involved by the disclosure was upgraded
Embodiment of the method.
Referring to Fig. 8, in one exemplary embodiment, a kind of device 700 for updating web application, the network should
Online service is performed by the main body program that configures with program, the corresponding redaction main body program of the main body program is pacified in advance
Dress deployment, described device 700 includes:
Wherein, request receiving module 710, line is realized for web application by legacy version main body program and old port
During upper service, the online access request of web application is received, online access request indicates the online service of request.
Information determination module 730, for asking the online service indicated to determine in web application according to online access
The corresponding main body program information of online service.
Information extraction modules 750, for extracting the new port-mark related to main body program information from configuration file and referring to
To information.
Online service module 770, the process of redaction main body program is pointed to for being created according to directional information, triggers process
It is that online access request control redaction main body program performs online service according to new port-mark.
Referring to Fig. 9, in one exemplary embodiment, information extraction modules 750 include:
Wherein, information acquisition unit 751, for searching the configuration obtained corresponding to main body program information in configuration file
Information.
Information judging unit 753, for judging the configuration in configuration information with the presence or absence of new port and old port, if
It is then to extract new port-mark and directional information.
Referring to Fig. 10, in one exemplary embodiment, online service module 770 includes:
Wherein, process creation unit 771, the program for being carried out according to directional information, which is pointed to create, points to redaction main body
The process of program.
Connection establishment unit 773, carries out the monitoring of new port according to new port-mark for triggering process, passes through new port
Monitoring with initiate online access request requesting party foundation be connected.
Online service unit 775, is requesting party for the connection by foundation and the more execution of redaction main body program
Perform online service.
Figure 11 is referred to, in one exemplary embodiment, device 700 as described above also includes:
Wherein, version memory module 810, the execution for being updated by main body program version carries out redaction main body program
Storage.
Configuration module 830, new port and program fortune are carried out for the redaction main body program for storage in configuration file
The configuration that row is pointed to, makes the new port-mark of respective stored and directional information in configuration file.
In one exemplary embodiment, version memory module 810 includes:
Wherein, memory cell, the version updating of main body program in web application is performed for triggering, by redaction master
Body program is different from legacy version main body program and stored.
Figure 12 is referred to, in one exemplary embodiment, configuration module 830 includes:
Wherein, port dispensing unit 831, for configuring the port that use state is idle condition for redaction main body program
For new port, and accordingly obtain new port-mark.
Configuration memory cell 833, for entering the configuration that line program operation is pointed to for redaction main body program, in configuration file
Middle respective stored points to the directional information and new port-mark of redaction main body program.
It should be noted that the device for the web application upgrading that above-described embodiment is provided is carrying out network application journey
When sequence is upgraded, only with the division progress of above-mentioned each functional module for example, in real-life program, can as needed and incite somebody to action
Above-mentioned functions distribution is completed by different functional modules, i.e. the internal structure of the device of web application upgrading will be divided into not
Same functional module, to complete all or part of function described above.
In addition, the method that the device for the web application upgrading that above-described embodiment is provided is upgraded with web application
Embodiment belong to same design, wherein modules perform the concrete mode of operation and carried out in embodiment of the method in detail
Thin description, here is omitted.
Figure 13 is a kind of hardware block diagram of service end according to an exemplary embodiment.The hardware configuration is
One be applicable the disclosure example, it is impossible to be considered any limitation of use scope of this disclosure, this public affairs can not be construed to
Open and need to rely on the service end 1000.
The service end 1000 can produce larger difference because of the difference of configuration or performance, as shown in Figure 10, service end
1000 include:Power supply 1010, interface 1030, at least a storage medium 1050 and an at least central processing unit (CPU,
Central Processing Units)1070。
Wherein, power supply 1010 is used to provide operating voltage for each hardware device in service end 1000.
Interface 1030 includes at least one wired or wireless network interface 1031, at least a string and translation interface 1033, at least
One input/output interface 1035 and at least usb 1 037 etc., are used for and external device communication.
The carrier that storage medium 1050 is stored as resource, can be random storage medium, disk or CD etc., thereon
The resource stored includes operating system 1051, web application 1053 and data 1055 etc., and storage mode can be of short duration
Store or permanently store.Wherein, operating system 1051 be used to managing and control each hardware device in service end 1000 and
Web application 1053, to realize calculating and processing of the central processing unit 1070 to mass data 1055, it can be
Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..Web application 1053 is to be based on
The computer program of at least one particular job is completed on operating system 1051, it can include an at least module (in figure not
Show), each module can include the instruction of the sequence of operations to service end 1000 respectively.Data 1055 can be storage
Photo, picture in disk etc..
Central processing unit 1070 can include the processor more than one or more, and be set to storage be situated between by bus
Matter 1050 communicates, for computing and the mass data 1055 in processing storage medium 1050.
As described in detail above, the service end 1000 for being applicable the disclosure will carry out the renewal of web application, i.e.,
The form for reading the sequence of operations stored in storage medium 1050 instruction by central processing unit 1070 avoids network application journey
The renewal of sequence is to the interference caused by online access.
In addition, also can equally realize the disclosure by hardware circuit or hardware circuit combination software instruction, therefore, realize
The disclosure is not limited to any specific hardware circuit, software and both combinations.
The preferable examples embodiment of the above, the only disclosure, the embodiment for being not intended to limit the disclosure, this
Field those of ordinary skill can very easily carry out corresponding flexible or repair according to the central scope and spirit of the disclosure
Change, therefore the protection domain of the disclosure should be defined by the protection domain required by claims.
Claims (12)
1. a kind of method for updating web application, it is characterised in that the web application passes through the main body journey that configures
Sequence performs online service, and the corresponding redaction main body program of the main body program is by advance installation and deployment, and methods described includes:
During the web application realizes online service by legacy version main body program and old port, the net is received
The online access request of network application program, the online access request indicates the online service of request;
The online service indicated is asked to determine the correspondence of online service described in the web application according to the online access
Main body program information;
The new port-mark and directional information related to the main body program information is extracted from configuration file;
The process for pointing to redaction main body program is created according to the directional information, the process is triggered and is marked according to the new port
Know and perform online service for the online access request control redaction main body program.
2. according to the method described in claim 1, it is characterised in that described to be extracted and the main body program information from configuration file
Related new port-mark and directional information, including:
The configuration information obtained corresponding to the main body program information is searched in configuration file;
Judge the configuration with the presence or absence of new port and old port in the configuration information, if YES, then extract new port-mark
And directional information.
3. according to the method described in claim 1, it is characterised in that described created according to the directional information points to redaction master
The process of body program, it is that online access request controls the redaction master to trigger the process according to the new port-mark
Body program performs online service, including:
The program carried out according to the directional information, which is pointed to, creates the process for pointing to redaction main body program;
The monitoring that the process carries out new port according to the new port-mark is triggered, passes through the monitoring and initiation of the new port
The requesting party of online access request sets up connection;
It is that the requesting party is performed on the line by the connection and the execution of the more redaction main body program of foundation
Service.
4. according to the method described in claim 1, it is characterised in that described to be extracted and the main body program information from configuration file
Before related new port-mark and directional information, methods described also includes:
The execution updated by main body program version carries out the storage of redaction main body program;
The configuration that new port and program operation are pointed to is carried out in the configuration file for the redaction main body program of storage,
Make the new port-mark of respective stored and directional information in the configuration file.
5. method according to claim 4, it is characterised in that the execution updated by main body program version carries out new
The storage of version main body program, including:
Triggering performs the version updating of main body program in the web application, and redaction main body program is different from into legacy version
Main body program is stored.
6. method according to claim 4, it is characterised in that the redaction main body program for storage is described
The configuration that new port and program operation are pointed to is carried out in configuration file, make in the configuration file the new port-mark of respective stored and
Directional information, including:
It is new port to configure the port that use state is idle condition for the redaction main body program, and accordingly obtains new port
Mark;
Enter the configuration that line program operation is pointed to for the redaction main body program, respective stored points to institute in the configuration file
State the directional information and new port-mark of redaction main body program.
7. a kind of device for updating web application, it is characterised in that the web application passes through the main body journey that configures
Sequence performs online service, and the corresponding redaction main body program of the main body program is by advance installation and deployment, and described device includes:
Request receiving module, online service is realized for the web application by legacy version main body program and old port
During, the online access request of the web application is received, the online access request indicates the online service of request;
Information determination module, for asking the online service indicated to determine in the web application according to the online access
The corresponding main body program information of the online service;
Information extraction modules, for extracting the new port-mark and sensing letter related to the main body program information from configuration file
Breath;
Online service module, for the process according to directional information establishment sensing redaction main body program, enters described in triggering
Journey is that online access request controls the redaction main body program to perform online service according to the new port-mark.
8. device according to claim 7, it is characterised in that described information extraction module includes:
Information acquisition unit, for searching the configuration information obtained corresponding to the main body program information in configuration file;
Information judging unit, for judging the configuration in the configuration information with the presence or absence of new port and old port, if YES,
Then extract new port-mark and directional information.
9. device according to claim 7, it is characterised in that the online service module includes:
Process creation unit, the program for being carried out according to the directional information, which is pointed to create, points to entering for redaction main body program
Journey;
Connection establishment unit, the monitoring of new port is carried out for triggering the process, by described according to the new port-mark
Requesting party foundation of the monitoring of new port with initiating online access request is connected;
Online service unit, is described for the connection by foundation and the execution of the more redaction main body program
Requesting party performs the online service.
10. device according to claim 7, it is characterised in that described device also includes:
Version memory module, the execution for being updated by main body program version carries out the storage of redaction main body program;
Configuration module, new port and program fortune are carried out for the redaction main body program for storage in the configuration file
The configuration that row is pointed to, makes the new port-mark of respective stored and directional information in the configuration file.
11. device according to claim 10, it is characterised in that the version memory module includes:
Memory cell, the version updating of main body program in the web application is performed for triggering, by redaction main body journey
Sequence is different from legacy version main body program and stored.
12. device according to claim 10, it is characterised in that the configuration module includes:
Port dispensing unit, is new end for configuring the port that use state is idle condition for the redaction main body program
Mouthful, and accordingly obtain new port-mark;
Configuration memory cell, for entering the configuration that line program operation is pointed to for the redaction main body program, in the configuration text
Respective stored points to the directional information and new port-mark of the redaction main body program in part.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710310588.4A CN107147712B (en) | 2017-05-05 | 2017-05-05 | Update the method and device of web application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710310588.4A CN107147712B (en) | 2017-05-05 | 2017-05-05 | Update the method and device of web application |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107147712A true CN107147712A (en) | 2017-09-08 |
CN107147712B CN107147712B (en) | 2018-09-11 |
Family
ID=59776733
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710310588.4A Active CN107147712B (en) | 2017-05-05 | 2017-05-05 | Update the method and device of web application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107147712B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111273919A (en) * | 2020-01-15 | 2020-06-12 | 卡斯柯信号有限公司 | Safe computer platform supporting software batch remote updating |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070261049A1 (en) * | 2006-05-05 | 2007-11-08 | Microsoft Corporation | Techniques to perform gradual upgrades |
CN102299940A (en) * | 2010-06-25 | 2011-12-28 | 龚华清 | Software upgrading method of persistent network service |
WO2013026332A1 (en) * | 2011-08-23 | 2013-02-28 | 腾讯科技(深圳)有限公司 | Software installation and upgrade method and device |
CN103186400A (en) * | 2011-12-31 | 2013-07-03 | 深圳市金蝶中间件有限公司 | Web application program upgrading method and system |
WO2013182063A1 (en) * | 2012-06-08 | 2013-12-12 | 腾讯科技(深圳)有限公司 | Webapp startup method and device |
CN105653328A (en) * | 2015-12-29 | 2016-06-08 | 百度在线网络技术(北京)有限公司 | Multi-version program coexistence method and apparatus for big memory service |
CN105677433A (en) * | 2016-03-15 | 2016-06-15 | 深圳创维-Rgb电子有限公司 | Hot upgrading method and device for server program |
CN106612188A (en) * | 2015-10-21 | 2017-05-03 | 中兴通讯股份有限公司 | Method and device for extending software function based on micro service architecture |
-
2017
- 2017-05-05 CN CN201710310588.4A patent/CN107147712B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070261049A1 (en) * | 2006-05-05 | 2007-11-08 | Microsoft Corporation | Techniques to perform gradual upgrades |
CN102299940A (en) * | 2010-06-25 | 2011-12-28 | 龚华清 | Software upgrading method of persistent network service |
WO2013026332A1 (en) * | 2011-08-23 | 2013-02-28 | 腾讯科技(深圳)有限公司 | Software installation and upgrade method and device |
CN103186400A (en) * | 2011-12-31 | 2013-07-03 | 深圳市金蝶中间件有限公司 | Web application program upgrading method and system |
WO2013182063A1 (en) * | 2012-06-08 | 2013-12-12 | 腾讯科技(深圳)有限公司 | Webapp startup method and device |
CN106612188A (en) * | 2015-10-21 | 2017-05-03 | 中兴通讯股份有限公司 | Method and device for extending software function based on micro service architecture |
CN105653328A (en) * | 2015-12-29 | 2016-06-08 | 百度在线网络技术(北京)有限公司 | Multi-version program coexistence method and apparatus for big memory service |
CN105677433A (en) * | 2016-03-15 | 2016-06-15 | 深圳创维-Rgb电子有限公司 | Hot upgrading method and device for server program |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111273919A (en) * | 2020-01-15 | 2020-06-12 | 卡斯柯信号有限公司 | Safe computer platform supporting software batch remote updating |
CN111273919B (en) * | 2020-01-15 | 2024-04-09 | 卡斯柯信号有限公司 | Secure computer platform supporting software batch remote update |
Also Published As
Publication number | Publication date |
---|---|
CN107147712B (en) | 2018-09-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11818423B2 (en) | Method for outputting audio and electronic device for the same | |
US10223132B2 (en) | Synchronization between electronic devices | |
CN101452435B (en) | USB terminal mode switching method and terminal | |
CN108605220B (en) | Application processing method and device for embedded universal integrated circuit card | |
US10021213B2 (en) | Systems and methods for adaptive cloning of mobile devices | |
CN106445663A (en) | Application data migration method and device | |
CN109791497B (en) | Method, device and terminal for executing hot patch | |
KR20200140555A (en) | Electronic device for switching between a dual standby mode and a single standby mode and method for the same | |
US20170168807A1 (en) | Method and electronic device for updating application program | |
CN105431816A (en) | Synchronizing device association data among computing devices | |
CN114185491B (en) | Partition file downloading method and device, storage medium and computer equipment | |
CN107632872B (en) | Desktop layout processing method, user data processing method and device and computer storage medium | |
CN103716346A (en) | Management method and device of application on android handset client | |
CN109271211A (en) | Method, apparatus of attending to anything else, equipment and the medium of application program | |
CN106547486A (en) | A kind of data migration method and device | |
CN106502732B (en) | Application closing method and device and intelligent terminal | |
US11604656B2 (en) | Method and apparatus for managing application | |
CN107957887A (en) | A kind of component loading method of equipment, device and Internet of things system | |
US10474472B2 (en) | Operating system establishing method and apparatus | |
US10007529B2 (en) | Data terminal running mode switching method, device, and data terminal | |
CN107147712B (en) | Update the method and device of web application | |
CN111984293A (en) | Information processing method, device and storage medium | |
CN108804258B (en) | Data recovery method and device, mobile terminal and storage medium | |
CN112463199A (en) | System upgrading method and terminal | |
CN105700895B (en) | The adaptation method and terminal and system server of a kind of terminal system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |