CN105407124B - A kind of server control method and user terminal - Google Patents

A kind of server control method and user terminal Download PDF

Info

Publication number
CN105407124B
CN105407124B CN201410471232.5A CN201410471232A CN105407124B CN 105407124 B CN105407124 B CN 105407124B CN 201410471232 A CN201410471232 A CN 201410471232A CN 105407124 B CN105407124 B CN 105407124B
Authority
CN
China
Prior art keywords
operational order
remote server
operating result
static
web page
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
CN201410471232.5A
Other languages
Chinese (zh)
Other versions
CN105407124A (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
Tencent Cloud Computing Beijing 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 CN201410471232.5A priority Critical patent/CN105407124B/en
Publication of CN105407124A publication Critical patent/CN105407124A/en
Application granted granted Critical
Publication of CN105407124B publication Critical patent/CN105407124B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present invention discloses a kind of server control method and user terminal, and wherein method includes the following steps: when controlling remote server, and inputted operational order is obtained in the webpage Web page of the remote server;When the operational order is dynamic instruction, the operational order is converted to static operational order, and the operational order of the static state is sent to the remote server, so that the remote server executes the corresponding operation of operational order of the static state, the remote server is made to generate operating result;The operating result that the remote server is sent is received, and the operating result is exported in the Web page.It may not need the remote access technology by SSH, realize the operation of the dynamic instruction to server, reduce the limitation controlled by Web page server, promote the effect controlled server.

Description

A kind of server control method and user terminal
Technical field
The present invention relates to field of computer technology more particularly to a kind of server control methods and user terminal.
Background technique
With the social stepped into information epoch, the appearance of miscellaneous server ensure that the hair of society without any confusion Exhibition, server can be used for information resource management, and provide service for user, have the spy of stability, safety etc. Point.
It is existing to be controlled (such as: O&M and exploitation etc.) to server by the page of terminal webpage (Web), into The mode of row control is the remote access technology by safety shell protocol (Secure Shell, SSH), however the service of SSH It configures complex, and needs to open specific firewall, port etc., increase and server is controlled by Web page The limitation of system, however if the dynamic to server can not be realized by Web page by the remote access technology of SSH The operation of instruction affects the effect controlled server.
Summary of the invention
The embodiment of the present invention provides a kind of server control method and user terminal, may not need the long-range visit by SSH It asks technology, realizes the operation of the dynamic instruction to server, reduce the limitation controlled by Web page server, mention Rise the effect controlled server.
In order to solve the above-mentioned technical problem, first aspect of the embodiment of the present invention provides a kind of server control method, can Include:
When controlling remote server, inputted operation is obtained in the Web page of the remote server Instruction;
When the operational order is dynamic instruction, the operational order is converted to static operational order, and by institute It states static operational order and is sent to the remote server, so that the remote server executes the operational order of the static state Corresponding operation makes the remote server generate operating result;
The operating result that the remote server is sent is received, and the operating result is carried out in the Web page Output.
Second aspect of the embodiment of the present invention provides a kind of user terminal, it may include:
Instruction acquisition module, for when controlling remote server, in the Web page of the remote server Obtain inputted operational order;
Sending module, for when the operational order is dynamic instruction, the operational order to be converted to static behaviour It instructs, and the operational order of the static state is sent to the remote server, so that described in remote server execution The static corresponding operation of operational order makes the remote server generate operating result;
Output module, the operating result sent for receiving the remote server, and to described in the Web page Operating result is exported.
In embodiments of the present invention, when controlling remote server, by the Web page of remote server Inputted operational order is obtained, when operational order is dynamic instruction, operational order is converted to static operational order, and Static operational order is sent to remote server, so that remote server executes the static corresponding operation of operational order, Remote server generation operating result is exported in Web page.By being converted to the dynamic operational order inputted For static operational order, it may not need the remote access technology by SSH, realize the behaviour of the dynamic instruction to server Make, reduces the limitation controlled by Web page server, and then improve the effect controlled server.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of server control method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another server control method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of user terminal provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of another user terminal provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of sending module provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another user terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Server control method provided in an embodiment of the present invention can be applied to the scene remotely controlled server, Such as: when controlling remote server, user terminal, which obtains in the Web page of the remote server, to be inputted Operational order, when the operational order is dynamic instruction, the operational order is converted to static behaviour by the user terminal It instructs, and the operational order of the static state is sent to the remote server, the remote server executes the static state The corresponding operation of operational order, so that the remote server is generated operating result, the user terminal receives the long-range clothes The operating result that business device is sent, and the scene etc. that the operating result is exported in the Web page.By defeated to institute The dynamic operational order entered is converted to static operational order, may not need the remote access technology by SSH, realizes pair The operation of the dynamic instruction of server reduces the limitation controlled by Web page server, and then improves to clothes The effect that business device is controlled.
The present embodiments relate to user terminal may include: computer, tablet computer, smart phone, notebook electricity The terminal devices such as brain, palm PC and mobile internet device (MID).
Below in conjunction with attached drawing 1 and attached drawing 2, it is situated between in detail to server control method provided in an embodiment of the present invention It continues.
Referring to Figure 1, for the embodiment of the invention provides a kind of flow diagrams of server control method.Such as Fig. 1 institute Show, the embodiment of the present invention the method may include following steps S101- step S103.
S101, when controlling remote server, acquisition is inputted in the Web page of the remote server Operational order;
Specifically, can be entered by user terminal described remote when user needs to control long-range server The Web page of journey server, the available user of user terminal are defeated in the Web page for the remote server The operational order entered.
Preferably, user can match the Web of the remote server before controlling remote server It sets, configuration process may include the Web page built for operating result output, and the operation standard etc. of defining operation instruction is taken Building Web page can be built by JavaScript language, and defining operation standard can use a kind of terminal emulator Keyboard shortcut (such as: SecureCRT etc.) be defined.
The operational order is converted to static operational order when the operational order is dynamic instruction by S102, and The operational order of the static state is sent to the remote server, so that the remote server executes the operation of the static state Corresponding operation is instructed, the remote server is made to generate operating result;
Specifically, the user terminal can use default transformation rule will when the operational order is dynamic instruction The operational order is converted to static operational order, i.e., the operational order that once property executes, then passes through instruction format to institute It states static operational order and carries out conversion process, the static operational order after alloing conversion process is by the remote server It identifies and executes.
Preferably, the user terminal by the static operational order after conversion process by asynchronous JavaScript and The method of calling of XML (Asynchronous JavaScript and XML, AJAX) is sent to the remote server, wherein XML (Extensible Markup Language) is extensible markup language.
The remote server receives the static operational order after the conversion process that the user terminal is sent, and executes The static corresponding operation of operational order after the conversion process, the remote server are generated according to the process for executing operation Operating result, and operating result is back to the user terminal.
S103 receives the operating result that the remote server is sent, and to the operating result in the Web page It is exported;
Specifically, the user terminal receives the operating result that the remote server is sent, it is to be understood that described The output format for the operating result that remote server generates is preferably a kind of data interchange format of lightweight, such as: Json (JavaScript Object Notation) format etc., the user terminal can be using preset web formats to the operation As a result output format is converted, and is shown in the Web page of the remote server.
In embodiments of the present invention, when controlling remote server, by the Web page of remote server Inputted operational order is obtained, when operational order is dynamic instruction, operational order is converted to static operational order, and Static operational order is sent to remote server, so that remote server executes the static corresponding operation of operational order, Remote server generation operating result is exported in Web page.By being converted to the dynamic operational order inputted For static operational order, it may not need the remote access technology by SSH, realize the behaviour of the dynamic instruction to server Make, reduces the limitation controlled by Web page server, and then improve the effect controlled server.
Fig. 2 is referred to, for the embodiment of the invention provides the flow diagrams of another server control method.Such as Fig. 2 It is shown, the embodiment of the present invention the method may include following steps S201- step S208.
S201 is obtained in the access webpage of the remote server and is inputted when controlling remote server Operational order;
Specifically, can be entered by user terminal described remote when user needs to control long-range server The Web page of journey server, the available user of user terminal are defeated in the Web page for the remote server The operational order entered.
Preferably, user can match the Web of the remote server before controlling remote server It sets, configuration process may include the Web page built for operating result output, and the operation standard etc. of defining operation instruction is taken Building Web page can be built by JavaScript language, and defining operation standard can use a kind of terminal emulator Keyboard shortcut (such as: SecureCRT etc.) be defined.Meanwhile access authority, example can be set for access webpage Such as: username and password is configured to maintenance or developer, it, can be first defeated to user institute when controlling remote server The username and password entered is verified, and enters the Web page of remote server after being verified.
S202 matches the operational order in default dynamic instruction library;
Specifically, the operational order may include static instruction and dynamic instruction, the dynamic instruction indicates to need remote The operational order that journey server timing executes, static instruction indicate the operational order disposably executed, deposit in the user terminal In default dynamic instruction library, the user terminal can be in the default dynamic instruction library to operational order progress Match.
It is understood that when finding the dynamic instruction to match with the operational order in default dynamic instruction library When, it is transferred to and executes step S203;Refer to when not finding the dynamic to match with the operational order in default dynamic instruction library When enabling, it is transferred to and executes step S205.
S203 is used when finding the dynamic instruction to match with the operational order in default dynamic instruction library The operational order is converted to static operational order by default transformation rule, and is instructed to the operational order of the static state The conversion process of format;
Specifically, being moved when matching result indicates to find in default dynamic instruction library with what the operational order matched When state instructs, that is, indicate that the operational order is dynamic instruction, the user terminal can use default transformation rule described Operational order is converted to static operational order, i.e., the operational order that once property executes, then passes through instruction format to described quiet The operational order of state carries out conversion process, and the static operational order after alloing conversion process is known by the remote server Not and execute.
Static operational order after the conversion process is sent to the remote server by S204, so that described remote Journey server executes the static corresponding operation of operational order after the conversion process, and the remote server is made to generate operation As a result;
Specifically, the user terminal sends the static operational order after conversion process by the method for calling of AJAX To the remote server.The operation that the remote server receives the static state after the conversion process that the user terminal is sent refers to It enables, and executes the static corresponding operation of operational order after the conversion process, the remote server is according to executing operation Process generate operating result, and operating result is back to the user terminal.
S205 is right when not finding the dynamic instruction to match with the operational order in default dynamic instruction library The operational order carries out the conversion process of instruction format;
Specifically, matching when matching result indicates not find in default dynamic instruction library with the operational order When dynamic instruction, that is, indicate that the operational order is static instruction, the user terminal can be directly by instruction format to institute It states operational order and carries out conversion process, the operational order after alloing conversion process is identified and held by the remote server Row.
Operational order after the conversion process is sent to the remote server by S206, so that the remote service Device executes the corresponding operation of operational order after the conversion process, and the remote server is made to generate operating result;
Specifically, the user terminal operational order after conversion process is sent to by the method for calling of AJAX it is described Remote server.The remote server receives the operational order after the conversion process that the user terminal is sent, and executes institute The corresponding operation of operational order after stating conversion process, the remote server generate operation knot according to the process for executing operation Fruit, and operating result is back to the user terminal.
S207 receives the operating result that the remote server is sent, and to the operating result in the Web page It is exported;
Specifically, the user terminal receives the operating result that the remote server is sent, it is to be understood that described The output format for the operating result that remote server generates is preferably a kind of data interchange format of lightweight, such as: Json lattice Formula etc., the user terminal can convert the output format of the operating result using preset web format, and in institute It states in the Web page of remote server and is shown.
It indicates to find the dynamic to match with the operational order in default dynamic instruction library for when matching result When instruction, that is, indicate that the operational order is dynamic instruction, the user terminal can be first using preset web format to described The output format of operating result is converted, and uses the preset web format further according to the attribute information of the operational order Operating result is updated processing to the Web page, and will update that treated the Web page exports, it is described more New processing includes replacement and merges.Such as: it is the dynamic instruction of a periodic refreshing for dynamic instruction top, top, therefore needs Top static instruction is periodically converted to, periodically obtains the corresponding operating result of top static instruction, the use to remote server Family terminal cannot directly be shown in the Web page operating result at this time, and need to refer to this received top static state Enable the corresponding operating result replacement last time corresponding operating result of top static instruction, i.e. the operation knot of the last display of covering Fruit, while guaranteeing that the position for being updated processing in the Web page each time is all identical, complete top dynamic instruction It realizes.It is the dynamic instruction of a real-time update for dynamic instruction tail, tail, it is therefore desirable to periodically be converted to tail static state Instruction periodically obtains the corresponding operating result of tail static instruction to remote server, and the user terminal at this time cannot be direct The operating result is shown in the Web page, and is needed the corresponding operating result of this received tail static instruction Operating result corresponding with last tail static instruction is compared, and obtains the corresponding behaviour of this received tail static instruction Make the content that result is updated the corresponding operating result of last tail static instruction, by the part of the content of the update with The corresponding operating result of last tail static instruction merges, and completes the realization of tail dynamic instruction.
It is moved for when matching result indicates not finding in default dynamic instruction library with what the operational order matched When state instructs, that is, indicate that the operational order is static instruction, preset web format pair can be directly used in the user terminal The output format of the operating result is converted, and the operating result that output format is converted the Web page into Row output.
S208 stores the operational order and the operating result;
Specifically, the user terminal can for the operational order that is inputted each time and corresponding operating result into Row record storage, it is preferred that user can be generated to the operation log of remote server, storage is distinguished with user name, it can To facilitate user to check.It should be noted that the step of operational order is stored with operating result can separate into Row executes, i.e., when getting the operational order of user's input, so that it may store to operational order, and work as and get operation When as a result, then operating result is stored.
In embodiments of the present invention, when controlling remote server, by the Web page of remote server Inputted operational order is obtained, when operational order is dynamic instruction, operational order is converted to static operational order, and Static operational order is sent to remote server, so that remote server executes the static corresponding operation of operational order, Remote server generation operating result is exported in Web page.By being converted to the dynamic operational order inputted For static operational order, it may not need the remote access technology by SSH, realize the behaviour of the dynamic instruction to server Make, reduces the limitation controlled by Web page server, and then improve the effect controlled server; By establishing default dynamic instruction library, realizes and intellectual analysis is carried out to the operational order inputted;By creating to server The Web page operated can not be limited by conditions such as time, places, realize remote control server, improve clothes Business device O&M and the efficiency of development, reduce human cost;By generating the operation log to server, user is facilitated Backtracking is checked;By using the asynchronous implement mode of AJAX, the resource consumption to server is reduced.
Below in conjunction with attached drawing 3- attached drawing 5, describe in detail to user terminal provided in an embodiment of the present invention.It needs It is bright, the attached user terminal shown in fig. 5 of attached drawing 3-, the method for executing Fig. 1 of the present invention and embodiment illustrated in fig. 2, in order to Convenient for explanation, only parts related to embodiments of the present invention are shown, disclosed by specific technical details, please refers to figure of the present invention 1 and embodiment shown in Fig. 2.
Fig. 3 is referred to, for the embodiment of the invention provides a kind of structural schematic diagrams of user terminal.As shown in figure 3, this hair The user terminal 1 of bright embodiment may include: instruction acquisition module 11, sending module 12 and output module 13.
Instruction acquisition module 11, for when controlling remote server, in the Web page of the remote server It is middle to obtain inputted operational order;
In the specific implementation, when user need long-range server is controlled when, can by the user terminal 1 into Enter the Web page of the remote server, described instruction obtains the available user of module 11 and exists for the remote server The operational order that the Web page is inputted.
Preferably, user can match the Web of the remote server before controlling remote server It sets, configuration process may include the Web page built for operating result output, and the operation standard etc. of defining operation instruction is taken Building Web page can be built by JavaScript language, and defining operation standard can use a kind of terminal emulator Keyboard shortcut (such as: SecureCRT etc.) be defined.
Sending module 12, for when the operational order is dynamic instruction, the operational order to be converted to static state Operational order, and the operational order of the static state is sent to the remote server, so that the remote server executes institute The static corresponding operation of operational order is stated, the remote server is made to generate operating result;
In the specific implementation, the sending module 12 can be using default conversion when the operational order is dynamic instruction The operational order is converted to static operational order, i.e., the operational order that once property executes by rule, then passes through instruction lattice Formula carries out conversion process to the operational order of the static state, and the static operational order after alloing conversion process is by described long-range Server is identified and is executed.
Preferably, the sending module 12 sends out the static operational order after conversion process by the method for calling of AJAX It send to the remote server.
The remote server receives the static operational order after the conversion process that the sending module 12 is sent, and holds The static corresponding operation of operational order after the row conversion process, the remote server are raw according to the process for executing operation The user terminal 1 is back at operating result, and by operating result.
Output module 13, the operating result sent for receiving the remote server, and to institute in the Web page Operating result is stated to be exported;
In the specific implementation, the output module 13 receives the operating result that the remote server is sent, it is possible to understand that It is that the output format for the operating result that the remote server generates is preferably a kind of data interchange format of lightweight, such as: Json format etc., the output module 13 can turn the output format of the operating result using preset web format Change, and in the Web page of the remote server in shown.
In embodiments of the present invention, when controlling remote server, by the Web page of remote server Inputted operational order is obtained, when operational order is dynamic instruction, operational order is converted to static operational order, and Static operational order is sent to remote server, so that remote server executes the static corresponding operation of operational order, Remote server generation operating result is exported in Web page.By being converted to the dynamic operational order inputted For static operational order, it may not need the remote access technology by SSH, realize the behaviour of the dynamic instruction to server Make, reduces the limitation controlled by Web page server, and then improve the effect controlled server.
Fig. 4 is referred to, for the embodiment of the invention provides the structural schematic diagrams of another user terminal.As shown in figure 4, this The user terminal 1 of inventive embodiments may include: instruction acquisition module 11, sending module 12, output module 13, matching mould Block 14 and memory module 15.
Instruction acquisition module 11, for when controlling remote server, in the access net of the remote server Inputted operational order is obtained in page;
In the specific implementation, when user need long-range server is controlled when, can by the user terminal 1 into Enter the Web page of the remote server, described instruction obtains the available user of module 11 and exists for the remote server The operational order that the Web page is inputted.
Preferably, user can match the Web of the remote server before controlling remote server It sets, configuration process may include the Web page built for operating result output, and the operation standard etc. of defining operation instruction is taken Building Web page can be built by JavaScript language, and defining operation standard can use a kind of terminal emulator Keyboard shortcut (such as: SecureCRT etc.) be defined.Meanwhile access authority, example can be set for access webpage Such as: username and password is configured to maintenance or developer, it, can be first defeated to user institute when controlling remote server The username and password entered is verified, and enters the Web page of remote server after being verified.
Matching module 14, for being matched in default dynamic instruction library to the operational order;
In the specific implementation, the operational order may include static instruction and dynamic instruction, the dynamic instruction indicates to need The operational order for wanting remote server timing to execute, static instruction indicate the operational order disposably executed, the user terminal 1 Middle have a default dynamic instruction library, the matching module 14 can in the default dynamic instruction library to the operational order into Row matching.
Sending module 12, for when the operational order is dynamic instruction, the operational order to be converted to static state Operational order, and the operational order of the static state is sent to the remote server, so that the remote server executes institute The static corresponding operation of operational order is stated, the remote server is made to generate operating result;
In the specific implementation, the sending module 12 can be using default conversion when the operational order is dynamic instruction The operational order is converted to static operational order, i.e., the operational order that once property executes by rule, then passes through instruction lattice Formula carries out conversion process to the operational order of the static state, and the static operational order after alloing conversion process is by described long-range Server is identified and is executed.
Preferably, the sending module 12 sends out the static operational order after conversion process by the method for calling of AJAX It send to the remote server.
The remote server receives the static operational order after the conversion process that the sending module 12 is sent, and holds The static corresponding operation of operational order after the row conversion process, the remote server are raw according to the process for executing operation The user terminal 1 is back at operating result, and by operating result.
Specifically, please also refer to Fig. 5, for the embodiment of the invention provides the structural schematic diagrams of sending module.Such as Fig. 5 institute Show, the sending module 12 may include:
Converting unit 121 finds the dynamic to match with the operational order in default dynamic instruction library for working as When instruction, the operational order is converted to using default transformation rule by static operational order, and the operation to the static state Instruction carries out the conversion process of instruction format;
In the specific implementation, matching when matching result expression is found in default dynamic instruction library with the operational order Dynamic instruction when, that is, indicate that the operational order is dynamic instruction, the converting unit 121 can be using default transformation rule The operational order is converted to static operational order, i.e., the operational order that once property executes, then passes through instruction format pair The operational order of the static state carries out conversion process, and the static operational order after alloing conversion process is by the remote service Device is identified and is executed.
Transmission unit 122, for the static operational order after the conversion process to be sent to the remote server, So that the remote server executes the static corresponding operation of operational order after the conversion process, make the remote service Device generates operating result;
In the specific implementation, the calling that the static operational order after conversion process is passed through AJAX by the transmission unit 122 Mode is sent to the remote server.After the remote server receives the conversion process that the transmission unit 122 is sent Static operational order, and execute the static corresponding operation of operational order after the conversion process, the remote server Operating result is generated according to the process for executing operation, and operating result is back to the user terminal 1.
In embodiments of the present invention:
The converting unit 121 is also used to find in default dynamic instruction library and the operational order phase When the dynamic instruction matched, the conversion process of instruction format is carried out to the operational order;
In the specific implementation, when matching result expression is not found and the operational order phase in default dynamic instruction library When the dynamic instruction matched, that is, indicate that the operational order is static instruction, the converting unit 121 can directly pass through instruction lattice Formula carries out conversion process to the operational order, and the operational order after alloing conversion process is identified by the remote server And it executes.
The transmission unit 122 is also used to the operational order after the conversion process being sent to the remote server, So that the remote server executes the corresponding operation of operational order after the conversion process, generate the remote server Operating result;
In the specific implementation, the transmission unit 122 sends out the operational order after conversion process by the method for calling of AJAX It send to the remote server.The remote server receives the operation after the conversion process that the transmission unit 122 is sent and refers to It enables, and executes the corresponding operation of operational order after the conversion process, the remote server is according to the process for executing operation Operating result is generated, and operating result is back to the user terminal 1.
Output module 13, the operating result sent for receiving the remote server, and to institute in the Web page Operating result is stated to be exported.
Specifically, the output module 13 receives the operating result that the remote server is sent, it is to be understood that institute The output format for stating the operating result of remote server generation is preferably a kind of data interchange format of lightweight, such as: Json Format etc., the output module 13 can convert the output format of the operating result using preset web format, and It is shown in the Web page of the remote server.
It indicates to find the dynamic to match with the operational order in default dynamic instruction library for when matching result When instruction, that is, indicate that the operational order is dynamic instruction, the output module 13 can be first using preset web format to institute The output format for stating operating result is converted, and uses the preset web format further according to the attribute information of the operational order Operating result processing is updated to the Web page, and will update that treated the Web page exports, it is described Processing is updated to include replacement and merge.Such as: it is the dynamic instruction of a periodic refreshing for dynamic instruction top, top, therefore It needs timing to be converted to top static instruction, periodically obtains the corresponding operating result of top static instruction to remote server, it is described Output module 13 cannot directly be shown in the Web page operating result at this time, and need this received top is quiet State instructs corresponding operating result to replace the last time corresponding operating result of top static instruction, the i.e. behaviour of the last display of covering Make to complete top and dynamically refer to as a result, guarantee that the position for being updated processing in the Web page each time is all identical simultaneously The realization of order.It is the dynamic instruction of a real-time update for dynamic instruction tail, tail, it is therefore desirable to periodically be converted to tail Static instruction periodically obtains the corresponding operating result of tail static instruction to remote server, and the output module 13 is at this time not Directly the operating result can be shown in the Web page, and needed the corresponding behaviour of this received tail static instruction Make result to be compared with the last time corresponding operating result of tail static instruction, obtains this received tail static instruction pair The content that the operating result answered is updated the corresponding operating result of last tail static instruction, by the content of the update Part operating result corresponding with last tail static instruction merges, and completes the realization of tail dynamic instruction.
It is moved for when matching result indicates not finding in default dynamic instruction library with what the operational order matched When state instructs, that is, indicate that the operational order is static instruction, preset web format can be directly used in the output module 13 The operating result converted to the output format of the operating result, and output format is converted is in the Web page It is exported.
Memory module 15, for being stored to the operational order and the operating result;
In the specific implementation, the memory module 15 can be for the operational order and corresponding operation inputted each time As a result record storage is carried out, it is preferred that user can be generated to the operation log of remote server, distinguish and deposit with user name Storage, can be convenient user and checks.It should be noted that the step of storing to operational order with operating result can divide Drive capable execution into, i.e., when getting the operational order of user's input, so that it may store to operational order, and work as and get When operating result, then operating result is stored.
In embodiments of the present invention, when controlling remote server, by the Web page of remote server Inputted operational order is obtained, when operational order is dynamic instruction, operational order is converted to static operational order, and Static operational order is sent to remote server, so that remote server executes the static corresponding operation of operational order, Remote server generation operating result is exported in Web page.By being converted to the dynamic operational order inputted For static operational order, it may not need the remote access technology by SSH, realize the behaviour of the dynamic instruction to server Make, reduces the limitation controlled by Web page server, and then improve the effect controlled server; By establishing default dynamic instruction library, realizes and intellectual analysis is carried out to the operational order inputted;By creating to server The Web page operated can not be limited by conditions such as time, places, realize remote control server, improve clothes Business device O&M and the efficiency of development, reduce human cost;By generating the operation log to server, user is facilitated Backtracking is checked;By using the asynchronous implement mode of AJAX, the resource consumption to server is reduced.
Fig. 6 is referred to, for the embodiment of the invention provides the structural schematic diagrams of another user terminal.As shown in fig. 6, institute Stating user terminal 1000 may include: at least one processor 1001, such as CPU, at least one network interface 1004, Yong Hujie Mouth 1003, memory 1005, at least one communication bus 1002.Wherein, communication bus 1002 is for realizing between these components Connection communication.Wherein, user interface 1003 may include display screen (Display), keyboard (Keyboard), and optional user connects Mouth 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include the wired of standard Interface, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to non-labile deposit Reservoir (non-volatile memory), for example, at least a magnetic disk storage.Memory 1005 optionally can also be at least One is located remotely from the storage device of aforementioned processor 1001.As shown in fig. 6, the memory as a kind of computer storage medium It may include operating system, network communication module, Subscriber Interface Module SIM and server control application program in 1005.
In user terminal 1000 shown in Fig. 6, network interface 1004 can be used for being connected with remote server, with institute It states remote server and carries out order transmission;And processor 1001 can be used for that the server stored in memory 1005 is called to control Application program, and specifically execute following steps:
When controlling remote server, acquisition is inputted in the webpage Web page of the remote server Operational order;
When the operational order is dynamic instruction, the operational order is converted to static operational order, and by institute It states static operational order and is sent to the remote server, so that the remote server executes the operational order of the static state Corresponding operation makes the remote server generate operating result;
The operating result that the remote server is sent is received, and the operating result is carried out in the Web page Output.
In one embodiment, the processor 1001 obtains institute in execution in the Web page of the remote server After the operational order of input, following steps are also executed:
The operational order is matched in default dynamic instruction library.
In one embodiment, the processor 1001 is being executed when the operational order is dynamic instruction, will be described Operational order is converted to static operational order, and when the operational order of static state is sent to the remote server, has Body executes following steps:
When finding the dynamic instruction to match with the operational order in default dynamic instruction library, turned using default It changes rule and the operational order is converted to static operational order, and instruction format is carried out to the operational order of the static state Conversion process;
Static operational order after the conversion process is sent to the remote server, so that the remote service Device executes the static corresponding operation of operational order after the conversion process, and the remote server is made to generate operating result.
In one embodiment, the processor 1001 is executing in the Web page to operating result progress When output, following steps are specifically executed:
The output format of the operating result is converted into preset web format, according to the attribute information of the operational order Processing is updated to the Web page using the operating result of the preset web format, and the Web page that will update that treated Face is exported, and the update processing includes replacement and merges.
In one embodiment, the processor 1001 also executes following steps:
When not finding the dynamic instruction to match with the operational order in default dynamic instruction library, to the behaviour Make the conversion process that instruction carries out instruction format;
Operational order after the conversion process is sent to the remote server, so that the remote server executes The corresponding operation of operational order after the conversion process makes the remote server generate operating result.
In one embodiment, the processor 1001 also executes following steps:
The operational order and the operating result are stored.
In embodiments of the present invention, when controlling remote server, by the Web page of remote server Inputted operational order is obtained, when operational order is dynamic instruction, operational order is converted to static operational order, and Static operational order is sent to remote server, so that remote server executes the static corresponding operation of operational order, Remote server generation operating result is exported in Web page.By being converted to the dynamic operational order inputted For static operational order, it may not need the remote access technology by SSH, realize the behaviour of the dynamic instruction to server Make, reduces the limitation controlled by Web page server, and then improve the effect controlled server; By establishing default dynamic instruction library, realizes and intellectual analysis is carried out to the operational order inputted;By creating to server The Web page operated can not be limited by conditions such as time, places, realize remote control server, improve clothes Business device O&M and the efficiency of development, reduce human cost.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (12)

1. a kind of server control method characterized by comprising
When controlling remote server, inputted operation is obtained in the webpage Web page of the remote server Instruction;
When the operational order is dynamic instruction, the operational order is converted to static operational order, and will be described quiet The operational order of state is sent to the remote server, so that the operational order that the remote server executes the static state is corresponding Operation, so that the remote server is generated operating result, what the dynamic instruction indicated remote server timing is needed to execute The operational order of operational order, the static state indicates the operational order disposably executed;
The operating result that the remote server is sent is received, and the operating result is exported in the Web page.
2. the method according to claim 1, wherein described obtain in the Web page of the remote server After the operational order inputted, further includes:
The operational order is matched in default dynamic instruction library.
3. according to the method described in claim 2, it is characterized in that, it is described when the operational order be dynamic instruction when, by institute It states operational order and is converted to static operational order, and the operational order of the static state is sent to the remote server, wrap It includes:
When finding the dynamic instruction to match with the operational order in default dynamic instruction library, advised using default conversion The operational order is then converted to static operational order, and carries out the conversion of instruction format to the operational order of the static state Processing;
Static operational order after the conversion process is sent to the remote server, so that the remote server is held The static corresponding operation of operational order after the row conversion process, makes the remote server generate operating result.
4. according to the method described in claim 3, it is characterized in that, it is described in the Web page to the operating result into Row output, comprising:
The output format of the operating result is converted into preset web format, is used according to the attribute information of the operational order The operating result of the preset web format is updated processing to the Web page, and the Web page that will update that treated into Row output, the update processing include replacement and merge.
5. according to the method described in claim 2, it is characterized by further comprising:
When not finding the dynamic instruction to match with the operational order in default dynamic instruction library, the operation is referred to Enable the conversion process for carrying out instruction format;
Operational order after the conversion process is sent to the remote server, so that described in remote server execution The corresponding operation of operational order after conversion process makes the remote server generate operating result.
6. the method according to claim 1, wherein further include:
The operational order and the operating result are stored.
7. a kind of user terminal characterized by comprising
Instruction acquisition module, for being obtained in the Web page of the remote server when controlling remote server The operational order inputted;
Sending module, for the operational order being converted to static operation and is referred to when the operational order being dynamic instruction It enables, and the operational order of the static state is sent to the remote server, so that the remote server executes the static state The corresponding operation of operational order, so that the remote server is generated operating result, the dynamic instruction indicates to need long-range clothes The operational order that business device timing executes, the operational order of the static state indicate the operational order disposably executed;
Output module, the operating result sent for receiving the remote server, and to the operation in the Web page As a result it is exported.
8. user terminal according to claim 7, which is characterized in that further include:
Matching module, for being matched in default dynamic instruction library to the operational order.
9. user terminal according to claim 8, which is characterized in that the sending module includes:
Converting unit, for when finding the dynamic instruction to match with the operational order in default dynamic instruction library, The operational order is converted to using default transformation rule by static operational order, and the operational order of the static state is carried out The conversion process of instruction format;
Transmission unit, for the static operational order after the conversion process to be sent to the remote server, so that institute It states remote server and executes the static corresponding operation of operational order after the conversion process, generate the remote server Operating result.
10. user terminal according to claim 9, which is characterized in that the output module is specifically used for receiving described remote The operating result that journey server is sent, is converted to preset web format for the output format of the operating result, according to the behaviour Make the attribute information instructed and processing is updated to the Web page using the operating result of the preset web format, and will Update that treated that Web page is exported, the updates processing includes replacement and merging.
11. user terminal according to claim 8, which is characterized in that the sending module includes:
Converting unit does not find the dynamic instruction to match with the operational order in default dynamic instruction library for working as When, the conversion process of instruction format is carried out to the operational order;
Transmission unit, for the operational order after the conversion process to be sent to the remote server, so that described long-range Server executes the corresponding operation of operational order after the conversion process, and the remote server is made to generate operating result.
12. user terminal according to claim 7, which is characterized in that further include:
Memory module, for being stored to the operational order and the operating result.
CN201410471232.5A 2014-09-16 2014-09-16 A kind of server control method and user terminal Active CN105407124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410471232.5A CN105407124B (en) 2014-09-16 2014-09-16 A kind of server control method and user terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410471232.5A CN105407124B (en) 2014-09-16 2014-09-16 A kind of server control method and user terminal

Publications (2)

Publication Number Publication Date
CN105407124A CN105407124A (en) 2016-03-16
CN105407124B true CN105407124B (en) 2019-01-15

Family

ID=55472372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410471232.5A Active CN105407124B (en) 2014-09-16 2014-09-16 A kind of server control method and user terminal

Country Status (1)

Country Link
CN (1) CN105407124B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107357559B (en) * 2016-05-10 2021-05-25 北京京东尚科信息技术有限公司 Information control method and device of remote execution server
CN110825758B (en) * 2019-10-31 2022-11-15 中国银联股份有限公司 Transaction processing method and device
CN112804076B (en) * 2019-11-14 2022-11-04 大唐移动通信设备有限公司 Instruction response method and network equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102322A (en) * 2007-08-24 2008-01-09 华为技术有限公司 A method, system and client for realizing remote control via GUI
CN102957567A (en) * 2012-11-09 2013-03-06 北京百度网讯科技有限公司 Server information management method and server management device
CN103095781A (en) * 2011-11-08 2013-05-08 浙江省公众信息产业有限公司 Wireless long-distance switch method and device
CN104160708A (en) * 2012-03-09 2014-11-19 汤姆逊许可公司 Distributed control of synchronized content

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5444455B2 (en) * 2010-03-26 2014-03-19 パナソニック株式会社 Wireless remote control signal transmitting device and wireless remote control signal receiving device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102322A (en) * 2007-08-24 2008-01-09 华为技术有限公司 A method, system and client for realizing remote control via GUI
CN103095781A (en) * 2011-11-08 2013-05-08 浙江省公众信息产业有限公司 Wireless long-distance switch method and device
CN104160708A (en) * 2012-03-09 2014-11-19 汤姆逊许可公司 Distributed control of synchronized content
CN102957567A (en) * 2012-11-09 2013-03-06 北京百度网讯科技有限公司 Server information management method and server management device

Also Published As

Publication number Publication date
CN105407124A (en) 2016-03-16

Similar Documents

Publication Publication Date Title
US11625530B2 (en) Systems and methods for updating a mobile application
KR102131159B1 (en) Methods and devices for controlling smart devices and computer storage media
US9436439B2 (en) Method and apparatus for code virtualization and remote process call generation
JP7241813B2 (en) METHOD AND DEVICE FOR CONSTRUCTING IMAGE EDITING MODEL
WO2016010831A1 (en) Interoperable machine learning platform
CN105204871B (en) A kind of plug-in type development approach and device
CN109634751B (en) Method for realizing communication between application layer and bottom layer by utilizing electron framework
US10063490B2 (en) Method and system of operating an online application service in a deployment environment to facilitate run-time experimentation with user interface configurations
CN105407124B (en) A kind of server control method and user terminal
CN108259598A (en) A kind of awareness apparatus unified access method based on isomery fusion and cloud analytic technique
CN105190530B (en) Transmit the graph data of Hardware Render
CN103176804A (en) User interface realization method
CN105354240B (en) Report file treating method and apparatus
CN109891855A (en) The method and apparatus of sensor and/or actuator data processing on server
US9614900B1 (en) Multi-process architecture for a split browser
CN113242244B (en) Data transmission method, device and system
CN110480633A (en) A kind of method, apparatus and storage medium controlling equipment
CN104956358B (en) Terminal Server Client application
CN104598554B (en) Webpage loading method and device
CN110147518A (en) Local resource access method, local resource access mechanism and electronic equipment
Zhang et al. The web-based user interface for EAST plasma control system
JP2022541805A (en) Systems, methods and apparatus for developing smart contracts
CN109240680A (en) A kind of private clound variable operating method and electronic equipment based on graphic programming
Kelényi et al. Supporting energy-efficient mobile application development with model-driven code generation
CN108089899A (en) Inquire about the implementation method and device of report

Legal Events

Date Code Title Description
C06 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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190802

Address after: Shenzhen Futian District City, Guangdong province 518000 Zhenxing Road, SEG Science Park 2 East Room 403

Co-patentee after: Tencent cloud computing (Beijing) limited liability company

Patentee after: Tencent Technology (Shenzhen) Co., Ltd.

Address before: Shenzhen Futian District City, Guangdong province 518000 Zhenxing Road, SEG Science Park 2 East Room 403

Patentee before: Tencent Technology (Shenzhen) Co., Ltd.