CN108718333A - Synchronous method, device and computer readable storage medium - Google Patents

Synchronous method, device and computer readable storage medium Download PDF

Info

Publication number
CN108718333A
CN108718333A CN201810440326.4A CN201810440326A CN108718333A CN 108718333 A CN108718333 A CN 108718333A CN 201810440326 A CN201810440326 A CN 201810440326A CN 108718333 A CN108718333 A CN 108718333A
Authority
CN
China
Prior art keywords
information
program module
program
login user
synchronous
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810440326.4A
Other languages
Chinese (zh)
Inventor
吴文辉
李秋
王东石
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing SF Intra City Technology Co Ltd
Original Assignee
Beijing SF Intra City Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing SF Intra City Technology Co Ltd filed Critical Beijing SF Intra City Technology Co Ltd
Priority to CN201810440326.4A priority Critical patent/CN108718333A/en
Publication of CN108718333A publication Critical patent/CN108718333A/en
Pending legal-status Critical Current

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/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

An embodiment of the present invention provides a kind of synchronous method, device and computer readable storage mediums, are related to technical field of data processing.This method includes:When server-side receives the synchronization request of client initiation of login user, it obtains in the synchronization request and synchronizes selected information, it is described synchronize the user information program module information synchronous with selected by the login user that selected information includes the login user after, it is based on the user information again, it creates the corresponding Linux machines of the login user and based on program module information synchronous selected by the login user, program module synchronous selected by the login user is chosen from program on pre-stored line;Then program module synchronous selected by the login user is synchronized in the Linux machines.The method achieve the one key synchronous migrations of program module that will be selected to other machine, and then eliminates the complicated step for downloading program module manually, improves working efficiency, saves the time.

Description

Synchronous method, device and computer readable storage medium
Technical field
The present invention relates to technical field of data processing, in particular to a kind of synchronous method, device and computer-readable Storage medium.
Background technology
With going deep into for intellectual technology, present intelligent program or module are more and more, and the demand of test is also increasingly Greatly.Simultaneously with the increase of program or module number, the environment deployment of test is also more and more, including some of localization are matched The change set.In existing technology, it can only be that tester goes the program on downloading wire or module manually, carry out manual configuration The change of file is easily caused by environmental abnormality or measurement error caused by modification error, wastes the time of test in this way.
Invention content
The purpose of the present invention is to provide a kind of synchronous method, device and computer readable storage mediums, above-mentioned to improve Problem.To achieve the goals above, the technical solution adopted by the present invention is as follows:
In a first aspect, an embodiment of the present invention provides a kind of synchronous method, the method includes:Server-side receives login When the synchronization request that the client of user is initiated, the selected information that synchronizes in the synchronization request, the synchronous institute are obtained The information of selection includes the user information of the login user program module information synchronous with selected by the login user;The clothes End group be engaged in the user information, creates the corresponding Linux machines of the login user;The server-side is based on the login user institute Synchronous program module information is selected, program mould synchronous selected by the login user is chosen from program on pre-stored line Block;Program module synchronous selected by the described login user is synchronized in the Linux machines by the server-side.
Second aspect, an embodiment of the present invention provides a kind of synchronous method, the method includes:Client is obtained to log in and be used The program module information of family selected synchronization on the simultaneously operating page;The client is detected for the simultaneously operating page When the clicking operation of the lockage button on face, synchronization request is sent to server-side, the synchronization request is selected including synchronizing Information, the information of the synchronous selection include the user information of the login user program mould synchronous with selected by the login user Block message, wherein the page that the network request that the simultaneously operating page is initiated for the server-side in response to client returns Face.
The third aspect, an embodiment of the present invention provides a kind of synchronizing devices, run on server-side, and described device includes:The One acquiring unit, creating unit, selection unit and synchronization unit.First acquisition unit, the client for receiving login user When holding the synchronization request initiated, the selected information that synchronizes in the synchronization request is obtained, it is described to synchronize selected information User information including the login user program module information synchronous with selected by the login user.Creating unit is used for base In the user information, the corresponding Linux machines of the login user are created.Selection unit, for based on selected by the login user Synchronous program module information is selected, program mould synchronous selected by the login user is chosen from program on pre-stored line Block.Synchronization unit, for program module synchronous selected by the described login user to be synchronized in the Linux machines.
Fourth aspect, an embodiment of the present invention provides a kind of synchronizing devices, run on client, and described device includes second Acquisition and transmission unit.Second acquisition unit, the program for obtaining login user selected synchronization on the simultaneously operating page Module information.Transmission unit, when for detecting the clicking operation for the lockage button on the simultaneously operating page, to clothes Business end sends synchronization request, and the synchronization request includes synchronizing selected information, and the information of the synchronous selection is stepped on including this Employ the user information at the family program module information synchronous with selected by the login user, wherein the simultaneously operating page is The page that the server-side is returned in response to the network request that client is initiated.
5th aspect, an embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has program code, and said program code executes above-mentioned method when being readable by a computer and running.
An embodiment of the present invention provides a kind of synchronous method, device and computer readable storage medium, method includes service When termination receives the synchronization request of client initiation of login user, obtains in the synchronization request and synchronize selected letter Breath, it is described to synchronize the user information program mould synchronous with selected by the login user that selected information includes the login user After block message, then it is based on the user information, creates the corresponding Linux machines of the login user and based on selected by the login user Synchronous program module information is selected, program mould synchronous selected by the login user is chosen from program on pre-stored line Block;Then program module synchronous selected by the login user is synchronized in the Linux machines.It realizes the journey of selection One key synchronous migration of sequence module eliminates the complicated step for downloading program module manually to other machine, improves work Efficiency saves the time.
Other features and advantages of the present invention will be illustrated in subsequent specification, also, partly be become from specification It is clear that by implementing understanding of the embodiment of the present invention.The purpose of the present invention and other advantages can be by saying what is write Specifically noted structure is realized and is obtained in bright book, claims and attached drawing.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be attached to what is used selected in embodiment Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the application environment of the embodiment of the present invention;
Fig. 2 is a kind of structure diagram can be applied to the server-side in the embodiment of the present invention;
Fig. 3 is a kind of flow chart of synchronous method provided in an embodiment of the present invention;
Fig. 4 is the flow chart of another synchronous method provided in an embodiment of the present invention;
Fig. 5 is a kind of structure diagram of synchronizing device provided in an embodiment of the present invention;
Fig. 6 is the structure diagram of another synchronizing device provided in an embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings is implemented The component of example can be arranged and be designed with a variety of different configurations.Therefore, below to the reality of the present invention provided in the accompanying drawings The detailed description for applying example is not intended to limit the range of claimed invention, but is merely representative of the selected implementation of the present invention Example.Based on the embodiments of the present invention, those of ordinary skill in the art are obtained without creative efforts Every other embodiment, shall fall within the protection scope of the present invention.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then select that it is further defined and explained in subsequent attached drawing.Meanwhile the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
The following each embodiments of the present invention can be applied in environment as shown in Figure 1 unless otherwise instructed, as shown in Figure 1, Server-side 100 is connect by network 200 with client 210.The network 200 can be wired or wireless network.The present invention is real It applies in example, server-side 100 and client 210 can be directly connected to by communication network.Server-side 100, client 210 can be Communication connection is established in Wi-Fi (Wireless Fidelity) network, 2G/3G/4G networks or LAN.
Referring to Fig. 2, showing a kind of structure diagram for the server-side 100 that can be applied in the embodiment of the present invention.Service End 100 may include memory 102, storage control 104, one or more (one is only shown in Fig. 2) processor 106, outer If interface 108, input/output module 110, audio-frequency module 112, display module 114, radio-frequency module 116 and synchronizing device.
Memory 102, storage control 104, processor 106, Peripheral Interface 108, input/output module 110, audio mould Directly or indirectly be electrically connected between block 112, display module 114,116 each element of radio-frequency module, with realize data transmission or Interaction.For example, can realize electrical connection by one or more communication bus or signal bus between these elements.Synchronous method Respectively include at least one software function mould that can be stored in the form of software or firmware (firmware) in memory 102 Block, such as software function module or computer program that the synchronizing device includes.
Memory 102 can store various software programs and module, such as synchronous method provided by the embodiments of the present application and Corresponding program instruction/the module of device.Software program and module of the processor 106 by operation storage in the memory 102, To perform various functions application and data processing, that is, realize the synchronous method in the embodiment of the present application.
Memory 102 can include but is not limited to random access memory (Random Access Memory, RAM), only Read memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Processor 106 can be a kind of IC chip, have signal handling capacity.Above-mentioned processor can be general Processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable Gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.It can To realize or execute disclosed each method, step and the logic diagram in the embodiment of the present application.General processor can be micro- Processor or the processor can also be any conventional processor etc..
The Peripheral Interface 108 couples various input/output devices to processor 106 and memory 102.At some In embodiment, Peripheral Interface 108, processor 106 and storage control 104 can be realized in one single chip.Other one In a little examples, they can be realized by independent chip respectively.
The interaction that input/output module 110 is used to that user input data to be supplied to realize user and server-side 100.It is described defeated Enter output module 110 may be, but not limited to, mouse and keyboard etc..
Audio-frequency module 112 provides a user audio interface, may include that one or more microphones, one or more raises Sound device and voicefrequency circuit.
Display module 114 provided between server-side 100 and user an interactive interface (such as user interface) or It is referred to user for display image data.In the present embodiment, the display module 114 can be liquid crystal display or touch-control Display.Can be the capacitance type touch control screen or electric resistance touch-control for supporting single-point and multi-point touch operation if touch control display Screen etc..Single-point and multi-point touch operation is supported to refer to touch control display and can sense one or more on the touch control display The touch control operation generated simultaneously at position, and transfer to processor 106 to be calculated and handled the touch control operation that this is sensed.
Radio-frequency module 116 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus with Communication network or other equipment are communicated.
It is appreciated that structure shown in Fig. 2 is only to illustrate, server-side 100 may also include than shown in Fig. 2 more or more Few component, or with the configuration different from shown in Fig. 2.Hardware, software or its group may be used in each component shown in Fig. 2 It closes and realizes.
In the embodiment of the present invention, which may include WEB server and/or database server.The client End 210 installation in the user terminal, user terminal can be PC (personal computer) computer, tablet computer, mobile phone, The terminal devices such as laptop, smart television, set-top box, car-mounted terminal.Client is installed, the client in user terminal Can be browser can also be third-party application software, it is corresponding with service (Server) end.
Referring to Fig. 3, an embodiment of the present invention provides a kind of synchronous method, the present embodiment describes the processing of server-side Flow, the method may include step S300, step S310, step S320 and step S330.
Step S300:When server-side receives the synchronization request of client initiation of login user, obtains the synchronization and ask Selected information is synchronized in asking, it is described to synchronize user information that selected information includes the login user and the login is used Synchronous program module information selected by family.
In the present embodiment, user inputs server-side address by client such as browser and accesses, i.e., client to Server-side initiates network request, and server-side returns to login page to client;User carries out register by client, logs in After success, server-side returns to the simultaneously operating page to the client of login user;Client obtains login user in simultaneously operating The program module information of selected synchronization on the page;The client detect for the synchronization on the simultaneously operating page by When the clicking operation of button, synchronization request is sent to server-side, the synchronization request includes synchronizing selected information, the synchronization The information of selection includes the user information of the login user program module information synchronous with selected by the login user.
Step S310:The server-side is based on the user information, creates the corresponding Linux machines of the login user.
In the present embodiment, in order to save resource, step S310 may include:
The server-side is based on the user information, creates the corresponding container for carrying linux system of the login user.
In the embodiment of the present application, container concept has been used, using can directly be deleted after the container created, operation can Depending on change, environment independence and economize on resources.
In the present embodiment, user information may include the unique mark (ID) of the user registered in advance in server-side. It is uniquely distinguished using user information, ensures independence.User information may include other letters that user keeps in server-side Breath, such as which type of Linux machine can be created, there can be which permission etc..
Step S320:The server-side is based on program module information synchronous selected by the login user, from prestoring Line on program module synchronous selected by the login user is chosen in program.
Step S330:Program module synchronous selected by the described login user is synchronized to described by the server-side In Linux machines.
In the present embodiment, program module may include the program module of application program or other forms.
In the present embodiment, step S330 may include:
Program module synchronous selected by the described login user is copied in the Linux machines by the server-side.
It is, for example, possible to use being downloaded automatically in Linux machines to carry out copy function, such as wget operations.
Optionally, in order to realize key change configuration, described to synchronize selected information can also include the login user Selected configuration mode, after step S330, the method can also include:
Step S340:The server-side is based on the selected configuration mode of the login user, changes the Linux machines Configuration file.
In the present embodiment, configuration mode may include that default configuration information or user need to carry out the configuration of special change Information.
As an implementation, the server-side is based on default configuration information, to the serve port of program module application Some association services being arranged in using, such as short message service are modified and correspond to, these services of navigation Service etc. carry out Automatically the modification operation such as modification of address of service.These addresses pre-save in the database, when modification from database Address is obtained to be configured.
As another embodiment, the server-side needs to carry out the configuration information of special change based on user, such as Some association service port needs are special specified, change the association service port in the configuration file of the Linux machines.
The one key change configuration of the embodiment of the present application avoids the unnecessary mistake that configuration file craft change tape comes, section The environment deployment efficiency of tester is saved.And ensure that the application program after synchronous migration or module can be normally independent Operation, does not impact other environment.
After step S340, the method can also include:
Program module in the synchronous Linux machines after change of the server-side operation, and after running successfully Synchronous progress is returned to the client.
Optionally, in order to realize that the application program on update line synchro is backed up to server-side, the method can be with Including:
Whether the program module that the server-side timing is inquired on the line in program meets update condition, if satisfied, more Program module on the new line in program.
Further, whether the program module that the server-side timing is inquired on the line in program meets update condition, Including:
The new program module of the server-side timing acquisition compares the version information of the new program module and the line Whether the version information of corresponding program module is consistent in upper program;Wherein, if the version information of the new program module with The version information of corresponding program module is inconsistent in program on the line, then characterizes on the line corresponding program mould in program Block meets update condition;
Program module on the update line in program, including:
Corresponding program module in program on the line is updated to the new program module.
In the present embodiment, program includes application program or other program modules on line on line.
For example, server-side starts a timed task, and application program or module on periodic queries line, i.e., original to be tested Service, is capable of the program of normal operation.Application program or module on new line are obtained, and is sorted out and is achieved, including is protected The file structure of each application program or module is deposited, configuration information needs the Documents Department of the file modified and modification Point, the version information of application program or module;By the information and service of application program or module on the new line got It holds application program or module information on pre-stored line to be compared, according to version information or file structure, judges server-side Whether application program or module meet update condition on pre-stored line, if the version information of new application program or module or File structure and the version of corresponding application program or module in application program on the pre-stored line of the server-side or module Information or file structure are inconsistent, then characterize on line corresponding application program or module in application program or module and meet update item Part;Application program or module on new line are downloaded into server-side specified directory, while preserving the text of application in the database The information of part catalogue, version information and configuration, wherein need by configuration standardize when preserving the information of configuration whole Reason, including configured list, configuration modification list, configuration file change list of fields, and the convenient change subsequently configured operates, To complete update.
It should be noted that during the comparison process, it can be by the version of application program or module on the new line got The version information of application program or module is compared in this information and the pre-stored line of server-side, and basic comparing result judges Whether application program or module meet update condition on pre-stored line;It can also be by application program on the new line got Or the file structure of application program or module is compared on the pre-stored line of file structure and server-side of module, according to Comparing result judges whether application program or module meet update condition on pre-stored line.
In order to which the advantageous effect of synchronous method provided in an embodiment of the present invention is further illustrated, now with one on line It is illustrated for a APP, now on line there are one APP, server-side obtains and preserves the associated documents of the APP in advance.Client When end obtains user and enters simultaneously operating interface by browser and select the clicking operation that the APP information synchronizes, to service End sends synchronization request.After synch command is assigned, server-side obtains the selected information that synchronizes in the synchronization request, described The information of synchronous selection includes the user information of the login user APP information synchronous with selected by the login user.The service End group creates the corresponding container for carrying linux system of the login user in the user information;The server-side is stepped on based on this The APP information for employing synchronization selected by family chooses synchronization selected by the login user from program on pre-stored line APP;APP synchronous selected by the described login user is synchronized in the Linux machines by the server-side.Synchronously complete it Server-side carries out the localization of the configuration file in APP afterwards, for example the port serviced is changed to no used port, data The address in library is changed to the available address of user, the title of database and change of secret code, to ensure that the APP in each container makes Configuration is all independent, will not be interfered with each other.Just into the startup of line program after the completion of the change of synchronous and configuration file.Above These processes all can prompt progress in client to user.User can be carried out test operation after the completion of whole process, whole A process user, which only needs to click, to be synchronized, and remaining operation is all automatically performed by server-side.
An embodiment of the present invention provides a kind of synchronous method, method includes the client hair that server-side receives login user When the synchronization request risen, the selected information that synchronizes in the synchronization request is obtained, it is described to synchronize selected information and include After the user information of the login user program module information synchronous with selected by the login user, then based on user letter Breath, creates the corresponding Linux machines of the login user and based on program module information synchronous selected by the login user, from pre- Program module synchronous selected by the login user is chosen on the line first stored in program;It then will be selected by the described login user Synchronous program module is selected to be synchronized in the Linux machines.It realizes the one key synchronous migration of program module of selection to another Outer machine, and then the complicated step for downloading program module manually is eliminated, working efficiency is improved, the time is saved.
Referring to Fig. 4, an embodiment of the present invention provides a kind of synchronous method, the present embodiment describes the processing of client Flow, the method includes:
Step S400:Client obtains the program module information of login user selected synchronization on the simultaneously operating page;
Step S410:The client detects the clicking operation for the lockage button on the simultaneously operating page When, synchronization request is sent to server-side, the synchronization request includes synchronizing selected information, the packet of the synchronous selection Include the user information of the login user program module information synchronous with selected by the login user, wherein the simultaneously operating The page that the page returns for the network request that the server-side is initiated in response to client.
It accesses for example, user inputs server-side address by client such as browser, i.e., client is sent out to server-side Network request is played, server-side returns to login page to client;User carries out register by client, after logining successfully, Server-side returns to the simultaneously operating page to the client of login user;Client obtains login user institute on the simultaneously operating page Select synchronous program module information, client that can also obtain login user selected section and need to carry out matching for special change Set, after choosing these configurations be set for configuring using user, otherwise configured using default allocation mode, user select setting After completion, the lockage button of client is clicked, i.e. client is detected for the lockage button on the simultaneously operating page Clicking operation when, send synchronization request to server-side, the synchronization request includes synchronizing selected information, the synchronous choosing The information selected includes the user information of the login user program module information synchronous with selected by the login user, the synchronization Selected information can also include the selected configuration mode of the login user.
It is apparent to those skilled in the art that for convenience and simplicity of description, the application of foregoing description In the specific work process of the synchronous method of client, aforementioned applications can be referred in the synchronous method embodiment of server-side Corresponding process, details are not described herein.
An embodiment of the present invention provides a kind of synchronous method, and it is selected on the simultaneously operating page that client obtains login user After selecting synchronous program module information, the client detects the click for the lockage button on the simultaneously operating page When operation, synchronization request is sent to server-side, the synchronization request includes synchronizing selected information, the letter of the synchronous selection Breath includes the user information of the login user program module information synchronous with selected by the login user.Further to realize Simultaneously operating improves working efficiency, saves the time.
Referring to Fig. 5, an embodiment of the present invention provides a kind of synchronizing device 500, server-side, described device 500 are run on May include first acquisition unit 510, creating unit 520, selection unit 530 and synchronization unit 540.
First acquisition unit 510 when the synchronization request that the client for receiving login user is initiated, obtains described same Selected information is synchronized in step request, it is described to synchronize user information that selected information includes the login user and this is stepped on Employ program module information synchronous selected by family.
Creating unit 520 creates the corresponding Linux machines of the login user for being based on the user information.
Optionally, the creating unit 520 creates the corresponding carrying of the login user for being based on the user information The container of linux system.
Selection unit 530 is used for based on program module information synchronous selected by the login user, from pre-stored line Program module synchronous selected by the login user is chosen in upper program.
Synchronization unit 540, for program module synchronous selected by the described login user to be synchronized to the Linux machines In device.
It is optionally, described that synchronize selected information can also include the selected configuration mode of the login user.It is described Synchronization unit 540 is additionally operable to be based on the selected configuration mode of the login user, changes the configuration file of the Linux machines.
Optionally, the synchronization unit 540, the program being additionally operable in the synchronous Linux machines after change of operation Module, and after running successfully synchronous progress is returned to the client.
Described device 500 can also include updating unit 550.
Updating unit 550, for periodically inquiring whether the program module on the line in program meets update condition, if full Foot, updates the program module in program on the line.
Optionally, the updating unit 550, the program module new for timing acquisition, compares the new program module Version information program module corresponding with program on the line version information it is whether consistent;Wherein, if the new journey The version information of the version information of sequence module program module corresponding with program on the line is inconsistent, then characterizes on the line Corresponding program module meets update condition in program;Corresponding program module in program on the line is updated to described new Program module.
The above each unit can be by software code realization, at this point, above-mentioned each unit can be stored in the storage of server-side In device 102.The above each unit can equally be realized by hardware such as IC chip.
The technique effect and preceding method of synchronizing device 500 provided in an embodiment of the present invention, realization principle and generation are real It is identical to apply example, to briefly describe, device embodiment part does not refer to place, can refer to corresponding contents in preceding method embodiment.
Referring to Fig. 6, an embodiment of the present invention provides a kind of synchronizing device 600, client, described device 600 are run on May include second acquisition unit 610 and transmission unit 620.
Second acquisition unit 610, the program module for obtaining login user selected synchronization on the simultaneously operating page Information.
Transmission unit 620, when for detecting the clicking operation for the lockage button on the simultaneously operating page, to Server-side sends synchronization request, and the synchronization request includes synchronizing selected information, and the information of the synchronous selection includes should The user information of the login user program module information synchronous with selected by the login user, wherein the simultaneously operating page The page that the network request initiated in response to client for the server-side returns.
The above each unit can be by software code realization, at this point, above-mentioned each unit can be stored in the storage of client In device.The above each unit can equally be realized by hardware such as IC chip.
The technique effect and preceding method of synchronizing device 600 provided in an embodiment of the present invention, realization principle and generation are real It is identical to apply example, to briefly describe, device embodiment part does not refer to place, can refer to corresponding contents in preceding method embodiment.
An embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable recording medium storage has Program code, said program code execute above-mentioned method when being readable by a computer and running.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, the flow chart in attached drawing and block diagram Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product, Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code Part, a part for the module, section or code, which includes that one or more is for implementing the specified logical function, to be held Row instruction.It should also be noted that at some as in the realization method replaced, the function of being marked in box can also be to be different from The sequence marked in attached drawing occurs.For example, two continuous boxes can essentially be basically executed in parallel, they are sometimes It can execute in the opposite order, this is depended on the functions involved.It is also noted that every in block diagram and or flow chart The combination of box in a box and block diagram and or flow chart can use function or the dedicated base of action as defined in executing It realizes, or can be realized using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each function module in each embodiment of the present invention can integrate to form an independent portion Point, can also be modules individualism, can also two or more modules be integrated to form an independent part.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be People's computer, server-side or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
Selection explanation, herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (15)

1. a kind of synchronous method, which is characterized in that the method includes:
When server-side receives the synchronization request that the client of login user is initiated, obtain in the synchronization request synchronize it is selected The information selected, it is described synchronize selected information include the login user user information it is synchronous with selected by the login user Program module information;
The server-side is based on the user information, creates the corresponding Linux machines of the login user;
The server-side is based on program module information synchronous selected by the login user, from being selected in program on pre-stored line Take program module synchronous selected by the login user;
Program module synchronous selected by the described login user is synchronized in the Linux machines by the server-side.
2. according to the method described in claim 1, it is characterized in that, described to synchronize selected information further include the login user Program module synchronous selected by the described login user is synchronized to described by selected configuration mode in the server-side After in Linux machines, the method further includes:
The server-side is based on the selected configuration mode of the login user, changes the configuration file of the Linux machines.
3. according to the method described in claim 2, it is characterized in that, being based on that the login user is selected matches in the server-side Mode is set, is changed after the configuration file of the Linux machines, the method further includes:
Program module in the synchronous Linux machines after change of the server-side operation, and to institute after running successfully It states client and returns to synchronous progress.
4. according to the method described in claim 1, it is characterized in that, the server-side is created this and is stepped on based on the user information The corresponding Linux machines in family are employed, including:
The server-side is based on the user information, creates the corresponding container for carrying linux system of the login user.
5. according to claim 1-4 any one of them methods, which is characterized in that the method further includes:
Whether the program module that the server-side timing is inquired on the line in program meets update condition, if satisfied, update institute State the program module in program on line.
6. according to the method described in claim 5, it is characterized in that, the journey on the line in program is inquired in server-side timing Whether sequence module meets update condition, including:
The new program module of the server-side timing acquisition, the version information for comparing the new program module and journey on the line Whether the version information of corresponding program module is consistent in sequence;Wherein, if the version information of the new program module with it is described The version information of corresponding program module is inconsistent in program on line, then it is full to characterize on the line corresponding program module in program Sufficient update condition;
Program module on the update line in program, including:
Corresponding program module in program on the line is updated to the new program module.
7. a kind of synchronous method, which is characterized in that the method includes:
Client obtains the program module information of login user selected synchronization on the simultaneously operating page;
When the client detects the clicking operation for the lockage button on the simultaneously operating page, sent to server-side Synchronization request, the synchronization request include synchronizing selected information, and the information of the synchronous selection includes the login user The user information program module information synchronous with selected by the login user, wherein the simultaneously operating page is the service Hold the page returned in response to the network request that client is initiated.
8. a kind of synchronizing device, which is characterized in that run on server-side, described device includes:
First acquisition unit, for receive login user client initiate synchronization request when, obtain the synchronization request In synchronize selected information, it is described to synchronize the user information and the login user that selected information includes the login user The program module information of selected synchronization;
Creating unit creates the corresponding Linux machines of the login user for being based on the user information;
Selection unit is used for based on program module information synchronous selected by the login user, from program on pre-stored line It is middle to choose program module synchronous selected by the login user;
Synchronization unit, for program module synchronous selected by the described login user to be synchronized in the Linux machines.
9. device according to claim 8, which is characterized in that described to synchronize selected information further include the login user Selected configuration mode, the synchronization unit are additionally operable to be based on the selected configuration mode of the login user, described in change The configuration file of Linux machines.
10. device according to claim 9, which is characterized in that it is synchronous after change to be additionally operable to operation for the synchronization unit The Linux machines in program module, and return to synchronous progress to the client after running successfully.
11. device according to claim 8, which is characterized in that the creating unit, for being based on the user information, Create the corresponding container for carrying linux system of the login user.
12. according to claim 8-11 any one of them devices, which is characterized in that described device further includes:
Updating unit, for periodically inquiring whether the program module on the line in program meets update condition, if satisfied, update Program module on the line in program.
13. device according to claim 12, which is characterized in that the updating unit, the program new for timing acquisition Module, comparing the version information of the version information program module corresponding with program on the line of the new program module is It is no consistent;Wherein, if the version of the version information of new program module program module corresponding with program on the line Information is inconsistent, then characterizes on the line that corresponding program module meets update condition in program;It will be right in program on the line The program module answered is updated to the new program module.
14. a kind of synchronizing device, which is characterized in that run on client, described device includes:
Second acquisition unit, the program module information for obtaining login user selected synchronization on the simultaneously operating page;
Transmission unit, when for detecting the clicking operation for the lockage button on the simultaneously operating page, to server-side Synchronization request is sent, the synchronization request includes synchronizing selected information, and the information of the synchronous selection includes that the login is used The user information at the family program module information synchronous with selected by the login user, wherein the simultaneously operating page is described The page that server-side is returned in response to the network request that client is initiated.
15. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has program generation Code, said program code execute the method as described in any claims of claim 1-6 when being readable by a computer and running.
CN201810440326.4A 2018-05-09 2018-05-09 Synchronous method, device and computer readable storage medium Pending CN108718333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810440326.4A CN108718333A (en) 2018-05-09 2018-05-09 Synchronous method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810440326.4A CN108718333A (en) 2018-05-09 2018-05-09 Synchronous method, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108718333A true CN108718333A (en) 2018-10-30

Family

ID=63899613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810440326.4A Pending CN108718333A (en) 2018-05-09 2018-05-09 Synchronous method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108718333A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968363A (en) * 2019-11-22 2020-04-07 贝壳技术有限公司 Data configuration synchronization method and device, electronic equipment and readable storage medium
CN111767090A (en) * 2020-06-28 2020-10-13 百度在线网络技术(北京)有限公司 Method and device for starting small program, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204913A (en) * 2015-10-20 2015-12-30 福建升腾资讯有限公司 Method and system for running Linux application on Android operating system and system
CN105468362A (en) * 2015-11-17 2016-04-06 广州杰赛科技股份有限公司 Application deployment method and cloud computing system
CN106254413A (en) * 2015-06-09 2016-12-21 哈曼国际工业有限公司 Data syn-chronization
CN106681866A (en) * 2016-12-30 2017-05-17 成都华为技术有限公司 Method and device for guaranteeing application coincidence and system
CN106775837A (en) * 2016-11-29 2017-05-31 北京元心科技有限公司 Multi-system global configuration synchronization method and device
CN106844000A (en) * 2016-12-21 2017-06-13 北京大学 Using the method and apparatus of browser access linux container cluster under a kind of multi-user environment
US20180060050A1 (en) * 2016-08-25 2018-03-01 American Megatrends, Inc. System and method for cross-building and maximizing performance of non-native applications using host resources

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254413A (en) * 2015-06-09 2016-12-21 哈曼国际工业有限公司 Data syn-chronization
CN105204913A (en) * 2015-10-20 2015-12-30 福建升腾资讯有限公司 Method and system for running Linux application on Android operating system and system
CN105468362A (en) * 2015-11-17 2016-04-06 广州杰赛科技股份有限公司 Application deployment method and cloud computing system
US20180060050A1 (en) * 2016-08-25 2018-03-01 American Megatrends, Inc. System and method for cross-building and maximizing performance of non-native applications using host resources
CN106775837A (en) * 2016-11-29 2017-05-31 北京元心科技有限公司 Multi-system global configuration synchronization method and device
CN106844000A (en) * 2016-12-21 2017-06-13 北京大学 Using the method and apparatus of browser access linux container cluster under a kind of multi-user environment
CN106681866A (en) * 2016-12-30 2017-05-17 成都华为技术有限公司 Method and device for guaranteeing application coincidence and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘辉扬: "基于Docker的容器监控和调度的研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
朱缨: "《计算机操作员 Windows XP/Office2003版 初级、中级》", 31 May 2015 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968363A (en) * 2019-11-22 2020-04-07 贝壳技术有限公司 Data configuration synchronization method and device, electronic equipment and readable storage medium
CN111767090A (en) * 2020-06-28 2020-10-13 百度在线网络技术(北京)有限公司 Method and device for starting small program, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106375528B (en) A kind of mobile phone ID determines method and its abnormality detection processing method
JP6806762B2 (en) Methods and devices for pushing information
WO2016161961A1 (en) Method, terminal device, server, and system for processing information of interest
CN104067263A (en) Recognizing cloud content
WO2014012449A1 (en) Method, device, processing center and system for desktop synchronization
CN103678307A (en) Page display method and client-side
CN103428264A (en) Data synchronization method, device and system
CN104021218A (en) Information display method and device
CN107203409B (en) USB redirection processing method and system
US20170277622A1 (en) Web Page Automated Testing Method and Apparatus
CN104090899A (en) Method and device for feeding back display content information
CN106909429A (en) A kind of synchronous upgrade method and device
CN108718333A (en) Synchronous method, device and computer readable storage medium
US20170195430A1 (en) Broadcasting Local Function Templates To Proximate Mobile Computing Devices
CN112346887A (en) Data processing method, data processing device, display device and computer-readable storage medium
US20100017863A1 (en) Portable storage apparatus for providing working environment migration service and method thereof
CN110231923A (en) Data managing method and device
US10209868B2 (en) Display terminal and display method for displaying application images based on display information
US9603020B2 (en) Electronic apparatus and method of executing application program
CN107643858B (en) Information processing method, terminal and server
EP4127909A1 (en) Method for deploying application software in cloud environments
CN105653123B (en) A kind of icon group technology and terminal device
WO2014183711A1 (en) Multi-media data backup method, user terminal and synchronizer
CN105843504B (en) A kind of window regulation method and electronic equipment
CN103812908A (en) Cloud file processing method and 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181030

RJ01 Rejection of invention patent application after publication