CN107147712B - Update the method and device of web application - Google Patents

Update the method and device of web application Download PDF

Info

Publication number
CN107147712B
CN107147712B CN201710310588.4A CN201710310588A CN107147712B CN 107147712 B CN107147712 B CN 107147712B CN 201710310588 A CN201710310588 A CN 201710310588A CN 107147712 B CN107147712 B CN 107147712B
Authority
CN
China
Prior art keywords
main body
body program
program
new
port
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.)
Active
Application number
CN201710310588.4A
Other languages
Chinese (zh)
Other versions
CN107147712A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710310588.4A priority Critical patent/CN107147712B/en
Publication of CN107147712A publication Critical patent/CN107147712A/en
Application granted granted Critical
Publication of CN107147712B publication Critical patent/CN107147712B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

This disclosure relates to a kind of method and device of update web application.The method 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, the online service of the online access request instruction request are received;The corresponding main body program information of online service described in the web application is determined according to the online service of online access request instruction;From configuration file extraction and the relevant new port-mark of the main body program information and directional information;The process for being directed toward new version main body program is created according to the directional information, it is that the online access request control new version main body program executes 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 update of web application to the interference caused by online access completely.

Description

Update the method and device of web application
Technical field
This disclosure relates to computer application technology more particularly to a kind of method and dress of update web application It sets.
Background technology
In order to meet the diversified demand of user, terminal can install a variety of different application programs, be answered by different Different functions is realized with program.However since often there is various limitations for terminal, also may require that some application programs In network server, as long as terminal is communicated with network server, it can be configured on online access network server A variety of different application programs, obtain various online services.
In order to make to be separately mounted to the application program different from terminal and network server, will hereafter be installed in terminal Application program be known as local application, and the application program installed in network server is known as web application.
Currently, the escalation process of web application be typically the corresponding legacy version of web application out of service it Afterwards, the corresponding more new version of the web application that reruns, the version updating of web application is realized with this, this is also resulted in Necessary interrupting service in the process, i.e. terminal can not carry out online access to web application, so that network application The update of program can interfere online access.
Invention content
Based on this, in order to solve the above-mentioned technical problem, one of the disclosure is designed to provide a kind of web application The method and device of upgrading.
Wherein, technical solution used by the disclosure is:
A method of update web application, the web application are executed by the main body program configured on line Service, the corresponding new version main body program of the main body program by advance installation and deployment, the method 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 service of the online access request instruction request;It is taken according on the line of online access request instruction Business determines the corresponding main body program information of online service described in the web application;From configuration file extraction and the master The relevant new port-mark of body program information and directional information;It is created according to the directional information and is directed toward new version main body program Process, it is that the online access request control new version main body program is held to trigger the process according to the new port-mark Row online service.
A kind of device of update web application, the web application are executed by the main body program configured on line Service, by advance installation and deployment, described device includes the corresponding new version main body program of the main body program:Request receives mould Block receives institute during realizing online service by legacy version main body program and old port for the web application State the online access request of web application, the online service of the online access request instruction request;Information determination module, For determining that online service described in the web application corresponds to according to the online service of online access request instruction Main body program information;Information extraction modules, for being extracted and the relevant new port of the main body program information from configuration file Identify and point to information;Online service module, for creating the process for being directed toward new version main body program according to the directional information, It is that online access request controls the new version main body program execution 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 new version main body of advance installation and deployment its main body programs Program can receive network during web application realizes online service by legacy version main body program and old port The online access of application program is asked, and online access asks to indicate the online service of request, at this point, will pass through installation and deployment New version main body program realizes the online service of request.
Specifically, determining online service in web application according to the online service of online access request instruction first Corresponding main body program information, from configuration file extraction with the relevant new port-mark of main body program information and directional information, into And the process for being directed toward new version main body program is created according to directional information, triggering process is asked according to new port-mark for online access It asks control new version main body program to execute online service, when just web application being updated as a result, has executed Online service still will not be by newer influence, and on the line newly asked under the action of legacy version main body program and old port Service is then realized by new version main body program and new port, for initiating the requesting party of online access request, can't be felt Know that the dynamic update of web application realizes the dynamic of web application without relevant online service is stopped Seamless update can avoid the update of web application to the interference caused by online access completely.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and consistent with the instructions for explaining the principles of this disclosure.
Fig. 1 is the schematic diagram of the implementation environment involved by the disclosure;
Fig. 2 is a kind of flow chart of the method for update web application shown according to an exemplary embodiment;
Fig. 3 be in Fig. 2 corresponding embodiments step 250 in the flow chart of one embodiment;
Fig. 4 be in Fig. 2 corresponding embodiments step 270 in the flow chart of one embodiment;
Fig. 5 is a kind of flow chart of the method for web application upgrading shown according to another exemplary embodiment;
Fig. 6 be in Fig. 5 corresponding embodiments step 330 in the flow chart of one embodiment;
Fig. 7 is a kind of specific implementation schematic diagram of the method for web application upgrading in an application scenarios;
Fig. 8 is a kind of block diagram of the device of update web application shown according to an exemplary embodiment;
Fig. 9 be in Fig. 8 corresponding embodiments information extraction modules 750 in the block diagram of one embodiment;
Figure 10 be on Fig. 9 corresponding embodiment center lines service module 770 in the block diagram of one embodiment;
Figure 11 is the block diagram according to the device of another update web application shown in an exemplary embodiment;
Figure 12 be in Figure 11 corresponding embodiments configuration module 830 in the block diagram of one embodiment;
Figure 13 is a kind of hardware block diagram of network server shown according to an exemplary embodiment.
Through the above attached drawings, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail, these attached drawings It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments Those skilled in the art illustrate the concept of the disclosure.
Specific implementation mode
Here will explanation be executed to exemplary embodiment in detail, the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 be it is a kind of update web application method involved by implementation environment schematic diagram.The implementation environment packet Include requesting party 110 and server-side 130.
Wherein, requesting party 110 can be the client that web application into server-side 130 asks its online service End, can also be some business procedure etc..Client is run in terminal, and terminal can be smart mobile phone, tablet computer, calculating Machine or other any electronic equipments for client operation, herein and are not limited.
Installation and deployment have web application in server-side 130, and online access is carried out for requesting party 110, are requesting party 110 execute online service.
Referring to Fig. 2, in one exemplary embodiment, a kind of method of update web application is suitable for shown in Fig. 1 Server-side 130 in implementation environment, web application attached portion are deployed on server-side 130, and the main body program by configuring Online service is executed, the corresponding new version main body program of main body program is by advance installation and deployment.
The method of this kind update web application can be executed by server-side 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, receive the online access request of web application, the online service of online access request instruction request.
Wherein, it should illustrate first, attached portion is deployed on the web application of server-side, network application journey Sequence is for realizing various online services.To realize various online services in web application, by several main bodys of corresponding configuration Program, and then corresponding online service is realized by main body program.Between each main body program independently of each other.
Based on this, the update of web application will be that the main body program disposed to web application executes update Process.
Here, for a main body program of web application institute installation and deployment, such as needs to execute update, then can service Corresponding installation and deployment new version main body program is held, and original main body program is then as existing for legacy version main body program.
Requesting party corresponding to server-side is mostly magnanimity, 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 so that web application is newer During execution, however it remains the online service executed for certain requesting parties, also will continue to receive the online access newly initiated Request.
At this point, with the installation and deployment of new version main body program, the online service just executed for certain requesting parties will not It interrupts, but continues the online access request realized online service, newly initiated by legacy version main body program and old port, then can Realize its requested online service realizes online service for requesting party by new version main body program Update, essence is the update of web application, and does not interfere with its requested online service, requesting party is to being occurred Update be unaware.
It should remark additionally herein, for requesting party, the online service obtained is by designated port and service Connection is established at end, and then can be provided by corresponding main body program, therefore, for being taken on the line that is executed by legacy version main body program Business, requesting party is to establish itself by the old port configured to connect with server-side.
In step 230, determine that online service corresponds in network application according to the online service of online access request instruction Main body program information.
Wherein, the online access request that request direction server-side is initiated is the online service initiation for required acquisition , therefore, the necessarily indicative requested online service of online access that server-side 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.After receiving online access request, according to the online service of online access request instruction, you can really The corresponding main body program of this fixed online service, and then accordingly obtain main body program information.
Main body program information indicate main body program identification and with the relevant each attribute of main body program, for server-side For, can be that requesting party positions the current desired main body program to be executed according to main body program information, specifically, completing After update, this main body program is new version main body program, when not being updated, this main body program be in server-side only One exists and is legacy version program relative to the update subsequently occurred for realizing the program of asked online service.
In step 250, from configuration file extraction and the relevant new port-mark of main body program information and directional information.
Wherein, configuration file is stored in server-side, and online service is executed for controlling main body program in server-side, and Establishment of connection between requesting party and server-side.Each main body program of web application all stores phase in configuration file The configuration information answered, this configuration information correspond to main body program information, this configuration information includes relevant with main body program information New port-mark and directional information.
New port-mark and directional information are written in configuration file when executing update.Indicated by new port-mark Port, i.e., new port is different from old port.The program being directed toward when directional information instruction operation, for example, directional information can be The form of soft link.
After acquisition main body program information corresponding with the indicated online service of 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 being directed toward new version main body program is created according to directional information, triggering controls new port mark Know is that online access request control new version main body program executes online service.
Wherein, it is the realization establishment process of online service in web application, and then side can be under the action of process It realizes the execution of online service, and ensures that requesting party is established by new port and connect, obtain online service.
Specifically, it is newer in the case that executing, it is directed toward according to the program that directional information is carried out, creates and be directed toward new edition The process of this main body program, and by new port online service is provided for requesting party.
By exemplary embodiment as above, the update performed by web application will be made to be for requesting party Transparent, requesting party does not need to execute any processing operation for newer generation in web application, requested Therefore online service will not be affected, for example, not needing to cut off i.e. has process, technology cost of implementation is low.
Referring to Fig. 3, in one exemplary embodiment, step 250 may comprise steps of:
In step 251, is searched in configuration file and obtain the configuration information corresponding to main body program information.
In the present embodiment, which is preconfigured 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 for example, front end services end is fixed It sets, back-end services cluster dynamically distributes, and meets load balancing with this, is conducive to the treatment effeciency for improving server-side.
During agent application is disposed, 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 The relevant configuration etc. of business cluster.Wherein, the configuration of new port and old port belongs to the relevant configuration of back-end services cluster.
In step 253, judge that the configuration in configuration information with the presence or absence of new port and old port is then held if YES Row step 255 thens follow the steps 257 if NO.
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 a relevant configuration information of main body program information institute, when updating, there is new port-mark with Old port-mark, either new port-mark or old port-mark have its relevant directional information of institute;It is not updating When, only uniquely there is Single port mark and relevant directional informations.
The presence identified according to configuration information middle port is judged in configuration information with the presence or absence of new port and old as a result, Port.
If there are the configuration of new port and old port in configuration information, illustrate to be updated, server-side will store Legacy version main body program and new version main body program, at this point, for the online service for responding currently requested, 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, server-side is only There is only the main body programs of a version, it is only necessary to respond online access request by original mode.
Under the action of exemplary embodiment as described above, carried for the front and back online service execution of web application update The process of seamless switching has been supplied, and then the seamless update for requesting party can be realized, requesting party perceives without interruption.
Referring to Fig. 4, in one exemplary embodiment, step 270 may comprise steps of.
In step 271, the process for creating new version main body program is directed toward according to the program that directional information carries out.
Wherein, it is its one process of pull-up, this process is area during the online access request to reception responds Not in the current another process for running and being directed toward legacy version main program, the link that will be realized by directional information by, is directed toward New version 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 establishes connection.
Wherein, the startup of new version main body program is realized by the process newly created and completes the monitoring of new port, thus The connection between server-side and requesting party is established in new port.
In step 275, it by the connection of foundation and the execution of more new version main body program, is executed on line for requesting party Service.
Under the cooperation of exemplary embodiment as described above, the fortune of new version main body program is realized by newly creating process The realization of row and online service is that the online service of new version main body program and legacy version main body program in network application executes Enforceable precondition is provided, ensures that the realization of online service in requesting party will not be by newer influence 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 include the following steps:
In the step 310, the storage of new version main body program is carried out by the newer execution of main body program version.
Wherein, as previously described, the update of web application, the update of substantially each main body program.In other words, it is As needed, it for the main body program of existing version, is updated respectively, is that it stores new version main body program in server-side.
The new version main body program can be stored manually into server-side by developer, can also be by server-side master It is dynamic to download and store from third-party application platform, it is not limited herein.Herein it should be noted that new version main body journey The main body program of sequence and existing version, i.e. legacy version main body program are stored respectively, and the two is mutual indepedent, legacy version master Body program still can be with normal operation.
Specifically, in one exemplary embodiment, step 310, including:Triggering executes main body in web application New version main body program is different from legacy version main body program and stored by the version updating of program.
In server-side, new version main body program and legacy version main body program are stored respectively in different memory spaces.Storage Space can be some file in the configured hard disk of server-side, can also be unliterary in same fdisk different directories Part presss from both sides, it might even be possible to be the different files in different fdisk different directories, also not be defined herein.
It is real without covering legacy version main body program with new version main body program by being mutually distinguishable between memory space Show being completely independent for web application different editions, is advantageously implemented online service in web application renewal process It does not interrupt.
In a step 330, new port is carried out in configuration file for the new version main body program of storage 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 port being necessarily in idle condition, corresponding to port-mark just conduct New port-mark and unique mark is configured in configuration file new port.
Directional information is then created in advance, and before not updating, directional information is directed to legacy version main body program, is led to Newer generation is crossed, directional information will be directed toward new version main body program.In exemplary embodiment in the specific implementation, being directed toward Information be in the form of soft link existing for.
Specifically, soft link be used to link main body program, also 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 directed toward in soft link, legacy version main body journey is started by the direction of soft link Sequence;After update, new version main body program is directed toward in soft link, starts new version main body program by the direction of soft link.
For the main body program of main body program information instruction, new version main body program and old edition This main body program is stored respectively in different memory spaces, for this purpose, after installation and deployment new version main body program, it will be to soft Link, i.e., directional information is modified, i.e., so that soft link replaces with new version main body journey by the direction of legacy version main body program The direction of sequence when in order to execute corresponding online service again, can start new version main body journey according to replaced soft link Sequence.
Soft link will correspond to a tab file of version as web application, that is, the reading carried out according to soft link Operation or write operation, substantially correspond to main body program read operation or the write operation of version.
When soft link is deleted, only delete soft link 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 especially accidentally deletes, and then effectively raises the newer safety of web application.
Referring to Fig. 6, in one exemplary embodiment, which may comprise steps of:
Be the port that new version main body program configuration use state is idle state it is new port in step 331, and phase New port-mark should be obtained.
Wherein, the use state of port includes idle state and seizure condition.Port is in idle condition, and is indicated also not There is process to use the port.Relatively, port is in seizure condition and then indicates to have been carried out the use of the port.
In exemplary embodiment in the specific implementation, to realize the configuration of port, from default port, set determines one Use state is the port of idle state, using this port as new port.
Default port set refers to the port in ICP/IP protocol, and corresponding range of port number is 0~65535.
Further, since the port corresponding to port numbers 0~1023 can not usually dynamically distribute, therefore, it is possible to can be with It is configured using the port that range of port number is 1024~65535 as new port.
In step 333, it is the configuration that new version main body program is directed toward into line program operation, is accordingly deposited in configuration file The directional information of new version main body program and new port-mark are directed toward in storage.
Referring to Fig. 7, in a practical application scene, installation and deployment store application program current in server-side Store, store application program current store execute 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 server-side, to be matched by Agent HAPROXY The configuration file set obtains the relevant new port-mark of main body program information and directional information.
To game player, in store application program update, the process of online access network shopping mall is described below.
Before application program current store do not update in store, pass through 5 legacy version main body programs and correspondence respectively 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 new version 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, at this point, will lead to Cross installation and deployment 5 new version main body programs and configuration file in the corresponding new port new of new port-mark that extracts Port executes online service, even if game player's online access network shopping mall.
By process as described above, during in store, application program is updated, game player is ongoing Online access will not be by newer influence, and the online access newly asked will also be responded by new version main body program, i.e., Game player can access network shopping mall at any time, and perception completely realizes store and apply journey less than the update of store application program The seamless update of dynamic of sequence is avoided completely to the interference caused by the online orientation of game player, to greatly increase game The access of player is experienced.
Following is embodiment of the present disclosure, can be used for executing the side of the web application upgrading involved by the disclosure Method.For those undisclosed details in the apparatus embodiments, the web application upgrading involved by the disclosure is please referred to Embodiment of the method.
Referring to Fig. 8, in one exemplary embodiment, a kind of device 700 of update web application, the network is answered Online service is executed by the main body program that configures with program, the corresponding new version main body program of the main body program is pacified in advance Dress deployment, described device 700 include:
Wherein, line is realized in request receiving module 710 for web application by legacy version main body program and old port During upper service, the online access request of web application, the online service of online access request instruction request are received.
Information determination module 730, for being determined in web application according to the online service of online access request instruction The corresponding main body program information of online service.
Information extraction modules 750, for from configuration file extraction with the relevant new port-mark of main body program information and refer to To information.
Online service module 770 triggers process for creating the process for being directed toward new version main body program according to directional information It is that online access request control new version main body program executes 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 obtain the configuration corresponding to main body program information for being searched 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 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 directed toward to create, is directed toward new version main body The process of program.
Connection establishment unit 773 carries out the monitoring of new port for triggering process according to new port-mark, passes through new port Monitoring with initiate online access request requesting party establish connect.
Online service unit 775 is requesting party for the execution by the connection and more new version main body program established Execute online service.
1 is please referred to Fig.1, in one exemplary embodiment, device 700 as described above further includes:
Wherein, version memory module 810, for carrying out new version main body program by the newer execution of main body program version Storage.
Configuration module 830, for carrying out new port and program fortune in configuration file for the new version main body program of storage The configuration that row is directed toward, makes the new port-mark of respective stored and directional information in configuration file.
In one exemplary embodiment, version memory module 810 includes:
Wherein, storage unit, for triggering the version updating for executing main body program in web application, by new version master Body program is different from legacy version main body program and is stored.
2 are please referred to Fig.1, in one exemplary embodiment, configuration module 830 includes:
Wherein, port dispensing unit 831, for configuring the port that use state is idle state for new version main body program For new port, and accordingly obtain new port-mark.
Configuration memory cell 833, the configuration for being directed toward into line program operation for new version main body program, in configuration file Middle respective stored is directed toward the directional information of new version main body program and new port-mark.
It should be noted that the device for the web application upgrading that above-described embodiment is provided is carrying out network application journey Sequence upgrade when, only the example of the division of the above functional modules, in real-life program, can as needed and incite somebody to action Above-mentioned function distribution is completed by different function modules, i.e. the internal structure of the device of web application upgrading will be divided into not Same function module, to complete all or part of the functions described above.
In addition, the method for the device and web application upgrading for the web application upgrading that above-described embodiment is provided Embodiment belong to same design, wherein modules execute the concrete mode of operation and have been carried out in embodiment of the method in detail Thin description, details are not described herein again.
Figure 13 is a kind of hardware block diagram of server-side shown according to an exemplary embodiment.The hardware configuration is One example for being applicable in the disclosure, is not construed as any restrictions to the use scope of the disclosure, can not be construed to this public affairs Open the server-side 1000 that needs to rely on.
The server-side 1000 can generate larger difference due to the difference of configuration or performance, as shown in Figure 10, server-side 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 server-side 1000.
Interface 1030 includes an at least 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 It stores or permanently stores.Wherein, operating system 1051 be used to manage and control each hardware device in server-side 1000 and Web application 1053 can be to realize calculating and processing of the central processing unit 1070 to mass data 1055 Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..Web application 1053 is to be based on On operating system 1051 complete at least one of particular job computer program, may include an at least module (in figure not Show), each module can separately include the instruction of the sequence of operations to server-side 1000.Data 1055 can be storage Photo, picture in disk etc..
Central processing unit 1070 may include the processor of one or more or more, and be set as being situated between by bus and storage Matter 1050 communicates, for operation and the mass data 1055 in processing storage medium 1050.
As described in detail above, the server-side 1000 for being applicable in the disclosure will carry out the update of web application, i.e., The form that the sequence of operations stored in storage medium 1050 instruction is read by central processing unit 1070 avoids network application journey The update 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 the combination of any specific hardware circuit, software and the two.
The above, only the preferable examples embodiment of the 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 subject to the protection domain required by claims.

Claims (10)

1. a kind of method of update web application, which is characterized in that the web application passes through the main body journey that configures Sequence executes online service, the corresponding new version main body program of the main body program by advance installation and deployment, the method includes:
During the web application realizes online service by legacy version main body program and old port, the net is received The online access of network application program is asked, the online service of the online access request instruction request;
Determine that online service described in the web application corresponds to according to the online service of online access request instruction Main body program information;
From configuration file extraction and the relevant new port-mark of the main body program information and directional information;
It is directed toward according to the program that the directional information carries out and creates the process for being directed toward new version main body program;
It triggers the process and new port snoop is carried out according to the new port-mark, described in the new port snoop and initiation The requesting party of online access request establishes connection;
The new version main body program execution online service is controlled by being connected as the requesting party described in foundation.
2. according to the method described in claim 1, it is characterized in that, described from configuration file extraction and the main body program information Relevant new port-mark and directional information, including:
It is searched in configuration file and obtains the configuration information corresponding to the main body program information;
Judge that the configuration in the configuration information with the presence or absence of new port and old port then extracts new port-mark if YES And directional information.
3. according to the method described in claim 1, it is characterized in that, described from configuration file extraction and the main body program information Before relevant new port-mark and directional information, the method further includes:
The storage of new version main body program is carried out by the newer execution of main body program version;
The configuration that the new version main body program for storage carries out new port in the configuration file and program operation is directed toward, Make the new port-mark of respective stored and directional information in the configuration file.
4. according to the method described in claim 3, it is characterized in that, described carried out newly by the newer execution of main body program version The storage of version main body program, including:
Triggering executes the version updating of main body program in the web application, and new version main body program is different from legacy version Main body program is stored.
5. according to the method described in claim 3, it is characterized in that, the new version main body program for storage is described New port is carried out in configuration file and configuration that program operation is directed toward, 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 state for the new version main body program, and accordingly obtains new port Mark;
For the configuration that the new version main body program is directed toward into line program operation, respective stored is directed toward institute in the configuration file State the directional information of new version main body program and new port-mark.
6. a kind of device of update web application, which is characterized in that the web application passes through the main body journey that configures Sequence executes online service, and by advance installation and deployment, described device includes the corresponding new version main body program of the main body program:
Request receiving module realizes online service for the web application by legacy version main body program and old port In the process, the online access request of the web application, the online service of the online access request instruction request are received;
Information determination module, for being determined in the web application according to the online service of online access request instruction The corresponding main body program information of the online service;
Information extraction modules, for believing from configuration file extraction with the relevant new port-mark of the main body program information and direction Breath;
Online service module, the program for carrying out according to the directional information be directed toward create direction new version main body program into Journey triggers the process and carries out new port snoop according to the new port-mark, described in the new port snoop and initiation The requesting party of online access request establishes connection, and the new version main body is controlled by being connected as the requesting party described in foundation Program executes online service.
7. device according to claim 6, which is characterized in that described information extraction module includes:
Information acquisition unit obtains the configuration information corresponding to the main body program information for being searched 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.
8. device according to claim 6, which is characterized in that described device further includes:
Version memory module, the storage for carrying out new version main body program by the newer execution of main body program version;
Configuration module, for carrying out new port and program fortune in the configuration file for the new version main body program of storage The configuration that row is directed toward, makes the new port-mark of respective stored and directional information in the configuration file.
9. device according to claim 8, which is characterized in that the version memory module includes:
Storage unit, for triggering the version updating for executing main body program in the web application, by new version main body journey Sequence is different from legacy version main body program and is stored.
10. device according to claim 8, which is characterized in that the configuration module includes:
Port dispensing unit is newly to hold for configuring the port that use state is idle state for the new version main body program Mouthful, and accordingly obtain new port-mark;
Configuration memory cell, the configuration for being directed toward into line program operation for the new version main body program, in configuration text Respective stored is directed toward the directional information of the new version main body program and new port-mark in part.
CN201710310588.4A 2017-05-05 2017-05-05 Update the method and device of web application Active CN107147712B (en)

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 CN107147712A (en) 2017-09-08
CN107147712B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111273919B (en) * 2020-01-15 2024-04-09 卡斯柯信号有限公司 Secure computer platform supporting software batch remote update

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7818740B2 (en) * 2006-05-05 2010-10-19 Microsoft Corporation Techniques to perform gradual upgrades
CN102299940A (en) * 2010-06-25 2011-12-28 龚华清 Software upgrading method of persistent network service
CN102955702B (en) * 2011-08-23 2016-08-10 腾讯科技(深圳)有限公司 A kind of software is installed and upgrade method and device
CN103186400B (en) * 2011-12-31 2016-01-13 深圳市金蝶中间件有限公司 Web application upgrade method and system
CN103473082A (en) * 2012-06-08 2013-12-25 腾讯科技(深圳)有限公司 Method and device for starting WebApp
CN106612188A (en) * 2015-10-21 2017-05-03 中兴通讯股份有限公司 Method and device for extending software function based on micro service architecture
CN105653328B (en) * 2015-12-29 2019-01-25 百度在线网络技术(北京)有限公司 The multi version program of big memory service and deposit method and apparatus
CN105677433A (en) * 2016-03-15 2016-06-15 深圳创维-Rgb电子有限公司 Hot upgrading method and device for server program

Also Published As

Publication number Publication date
CN107147712A (en) 2017-09-08

Similar Documents

Publication Publication Date Title
US10223132B2 (en) Synchronization between electronic devices
CN108241500B (en) Method, device and system for repairing hardware component and storage medium
EP2696532A2 (en) Method, server and system for starting application
CN110401687B (en) Configuration file transmission method, related equipment and storage medium
CN105049502B (en) The method and apparatus that device software updates in a kind of cloud network management system
CN102571940B (en) Application program remote installation system, method, intelligent terminal, application server
CN106465249B (en) Roaming network access method and device
EP3119133B1 (en) Roaming network access method and apparatus
CN110913015A (en) Distributed quick installation method, system and medium for cloud mobile phone APP
CN106911729A (en) A kind of operating system remote installation method suitable for domestic processor
US9986082B2 (en) Interface device and method between electronic device and external device using ear jack of the electronic device
CN106533719A (en) Method and system for realizing cluster deployment
WO2019100266A1 (en) Mobile edge host-machine service notification method and apparatus
CN111064626B (en) Configuration updating method, device, server and readable storage medium
US20220326940A1 (en) Service Upgrade Method, Apparatus, and System
CN106569737A (en) Dynamic network storage for cloud console server
CN105491081A (en) Method for forwarding of internal flow of application in mobile intelligent terminal
CN105183529A (en) Method for refreshing server firmware, target server, source server and system
KR20200031900A (en) Apparatus and method for controlling protocol data unit session
CN109857464A (en) System and method for Platform deployment and operation Mobile operating system
CN106911741B (en) Method for balancing virtual network management file downloading load and network management server
CN107147712B (en) Update the method and device of web application
KR20180050001A (en) Firmware upgrade system and method for IoT
US20140351220A1 (en) Configuration of one or more computer devices
EP2835737A1 (en) Data terminal running mode switching method, device, and data terminal

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