CN109117246B - Server and command execution method and control method thereof - Google Patents

Server and command execution method and control method thereof Download PDF

Info

Publication number
CN109117246B
CN109117246B CN201810736592.1A CN201810736592A CN109117246B CN 109117246 B CN109117246 B CN 109117246B CN 201810736592 A CN201810736592 A CN 201810736592A CN 109117246 B CN109117246 B CN 109117246B
Authority
CN
China
Prior art keywords
server
script
executed
command
file
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
CN201810736592.1A
Other languages
Chinese (zh)
Other versions
CN109117246A (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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201810736592.1A priority Critical patent/CN109117246B/en
Publication of CN109117246A publication Critical patent/CN109117246A/en
Application granted granted Critical
Publication of CN109117246B publication Critical patent/CN109117246B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45508Runtime interpretation or emulation, e g. emulator loops, bytecode interpretation
    • G06F9/45512Command shells
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Abstract

The embodiment of the invention relates to the field of communication, and discloses a server and a command execution method and a control method thereof. The embodiment of the invention is applied to the slave server; the command execution method comprises the following steps: acquiring a file script from a main server; the file script at least comprises a command to be executed; judging whether the file script meets a preset condition or not; and if the file script meets the preset condition, executing the command to be executed in the file script. The embodiment of the invention also provides a command execution method and a control method of the server; the embodiment of the invention greatly simplifies the preparation work before the slave server executes the command, saves the cost, improves the efficiency and reduces the maintenance burden and the load of the master server.

Description

Server and command execution method and control method thereof
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a server and a command execution method and a control method thereof.
Background
With the continuous development of the information age, IT operation and maintenance become important components in IT services, and in the face of more and more complex services, more and more diversified user requirements and more servers, server automatic management and automatic operation and maintenance become more and more important.
The existing execution mode of the client server command is as follows: the server side server sends the command to be executed to the client side software of the client side server, and the client side software executes the command to be executed after receiving the command. However, the inventors found that the following problems exist in the prior art: the existing client server executes the command to be executed and needs to install client software; when the number of the client servers is large, the server needs to maintain a large number of IPs of the client servers and send a large number of commands to be executed, which may result in a high load on the server.
Disclosure of Invention
The embodiment of the invention aims to provide a server, a command execution method and a control method thereof, which greatly simplify the preparation work before the slave server executes a command, save the cost, improve the efficiency and reduce the maintenance burden and load of a main server.
In order to solve the above technical problem, an embodiment of the present invention provides a command execution method for a server, which is applied to a slave server; the command execution method comprises the following steps: acquiring a file script from a main server; the file script at least comprises a command to be executed; judging whether the file script meets a preset condition or not; and if the file script meets the preset condition, executing the command to be executed in the file script.
The embodiment of the invention also provides a control method of the server, which is applied to the main server; the control method comprises the following steps: generating a script file; the script file at least comprises a command to be executed; and receiving access of a slave server, so that the slave server can acquire the script file, and executing the command to be executed in the file script when the file script is judged to meet the preset condition.
An embodiment of the present invention further provides a server, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the command execution method of the server as described above.
Embodiments of the present invention also provide a server, at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the command execution method of the server as described above.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program, wherein the computer program is used for realizing the command execution method of the server when being executed by a processor.
The embodiment of the present invention also provides a computer-readable storage medium storing a computer program, wherein the computer program is configured to implement the control method of the server described above when executed by a processor.
Compared with the prior art, the method and the system have the advantages that the slave server obtains the file script from the master server, and when the file script is judged to meet the preset conditions, the command to be executed in the file script is executed; because the file script can be automatically executed by depending on the self-function of the system (the self-function of the system, such as the scheduled task of a windows system, the condtab timing function of a linux system, and the like), the slave server does not need to install client software, the preparation work before the slave server executes the command is greatly simplified, the cost is saved, the efficiency is improved, the master server does not need to maintain the IP of the slave server, and the maintenance burden and load of the master server are reduced.
In addition, the method is applied to the slave server with the server mark; the file script also comprises a script identifier; the judging whether the file script meets preset conditions specifically includes: judging whether the script identification of the file script is matched with the server mark; and if the script identification is matched with the server mark, judging that the file script meets the preset condition. In this embodiment, a manner of determining whether the file script satisfies the preset condition is provided.
In addition, before the determining that the file script satisfies the preset condition, the method further includes: judging whether the command to be executed in the file script is executed; and if the command to be executed is not executed, entering the step of judging that the file script meets the preset condition. In this embodiment, when it is determined that the command to be executed in the file script is not executed, the command to be executed is executed, thereby avoiding the command to be executed from being repeatedly executed, improving the stability of the slave server, and avoiding occupying resources as much as possible.
In addition, the acquiring of the file script from the main server specifically includes: accessing a service program of the main server according to a preset period; and acquiring the file script through a preset website of the file script. In this embodiment, an obtaining method of the file script is provided.
In addition, before receiving an access from a server for the slave server to obtain the script file, the method further includes: identifying whether the slave server meets a preset access condition; and if so, accessing to the receiving slave server for the slave server to acquire the script file. In the embodiment, only the slave server meeting the access condition has the authority to access the master server, so that the safety of the master server is improved.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a detailed flowchart of a command execution method of a server according to a first embodiment;
fig. 2 is another detailed flowchart of a command execution method of a server according to the first embodiment;
fig. 3 is a detailed flowchart of a command execution method of a server according to a second embodiment;
fig. 4 is a detailed flowchart of a command execution method of a server according to a third embodiment;
fig. 5 is a specific flowchart of a control method of a server according to a fourth embodiment;
fig. 6 is another specific flowchart of a control method of a server according to a fourth embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
A first embodiment of the present invention relates to a command execution method of a server, applied to a slave server; as shown in fig. 1, the command execution method of the server includes:
step 101, a file script is obtained from a main server.
In this embodiment, the master server is a server, the slave servers are client servers, the number of the slave servers may be one or multiple, and this embodiment is not limited at all; the file script is stored in the main server in advance, and the file script at least includes a command to be executed and a step to be executed in the embodiment.
In an example, the host server may generate a script file by writing a file function in a programming language (e.g., Php, Java, Go, Python), and the like, where the script file may be a script file of type txt, html, log, and the like, and the embodiment does not limit the writing language and the file type of the script file.
In a specific example, a shell script file is generated by a Php programming language using a fwrite writing function, or a file _ put _ contents writing function; however, this is merely an example and is not limited thereto.
In this embodiment, the command to be executed may be set according to an actual requirement, and the command to be executed is, for example, a command to restart the slave server, install a certain software, determine whether a log is expired, and perform a software batch upgrade.
In this embodiment, the slave server may periodically obtain the data from the master server according to a preset period, where the preset period may be 5 minutes or 10 minutes, and a specific value of the preset period is not limited at all.
Step 102, judging whether the file script meets a preset condition or not; if yes, go to step 103, otherwise return to step 101.
And 103, executing the command to be executed in the file script.
Compared with the prior art, the embodiment of the invention obtains the file script from the main server by the slave server, and executes the command to be executed in the file script when the file script is judged to meet the preset condition; because the file script can be automatically executed by depending on the self-function of the system (the self-function of the system, such as the scheduled task of a windows system, the condtab timing function of a linux system, and the like), the slave server does not need to install client software, the preparation work before the slave server executes the command is greatly simplified, the cost is saved, the efficiency is improved, the master server does not need to maintain the IP of the slave server, and the maintenance burden and load of the master server are reduced.
The following describes in detail the implementation details of the command execution method of the server according to the present embodiment, and the following is only provided for the convenience of understanding and is not necessary for implementing the present embodiment.
In one example, step 102, determining whether the file script satisfies a preset condition specifically includes:
step 102, judging whether the script identification of the file script is matched with the server mark; if so, go to step 103, otherwise return to step 101.
In this embodiment, the slave server is a slave server with a server mark, and the file script further includes a script identifier corresponding to the server mark; for example, a file script has an A identification, which corresponds to the server tag A; or the a identification corresponds to a group a slave server group (the group a slave server group may include a plurality of slave servers each having the same server label), so that batch command execution and batch control of the slave servers can be realized.
In one example, firstly, a script identifier in a file script is identified, then the script identifier is compared with a preset server mark, so that whether the script identifier of the file script is matched with the server mark is judged, and if so, the file script is judged to meet a preset condition; however, the present embodiment does not limit the determination method of whether the script identifier and the server tag are matched.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are within the scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A second embodiment of the present invention relates to a command execution method of a server. The second embodiment is improved on the basis of the first embodiment, and the main improvement lies in that: in the second embodiment of the present invention, when it is determined that the script file is not executed, the command to be executed is executed from the server.
Fig. 3 shows a command execution method in this embodiment, steps 201 and 203 in this embodiment are the same as steps 101 and 103 in the first embodiment, step 102 is taken as sub-step 2021 of step 202, which is not described herein again, and step 202 in this embodiment further includes the following sub-steps:
substep 2022, determining whether the command to be executed in the file script has been executed; if the execution is finished, the process returns to step 201, and if the execution is not finished, the process proceeds to step 203.
In this embodiment, each time a script file is executed, the script file may be marked to indicate that the script file has been executed.
In one example, executed marks can be added to the executed script file and a list can be pre-stored (the executed marks are, for example, time marks, but not limited thereto); when the acquired script file is identified in the pre-stored list, the script file can be judged to be executed; however, this is merely an example and is not limited thereto.
Compared with the first implementation mode, the embodiment of the invention needs to judge whether the command to be executed in the file script is executed or not under the condition that the script identifier of the file script is judged to be matched with the server mark, and executes the command to be executed when the command to be executed in the file script is judged not to be executed, thereby avoiding the repeated execution of the command to be executed, improving the stability of the slave server and avoiding occupying resources as much as possible.
A third embodiment of the present invention relates to a command execution method of a server. The third embodiment is improved on the basis of the second embodiment, and the main improvement lies in that: in a third embodiment of the present invention, a manner of obtaining a script file is provided.
Fig. 4 shows a command execution method in this embodiment, steps 302 and 303 in this embodiment are the same as steps 202 and 203 in the first embodiment, and are not described herein again, and step 301 in this embodiment includes the following sub-steps:
sub-step 3011, accessing the service program of the main server according to a preset period.
In the present embodiment, the main server provides a service to the outside by placing the script file under the service program.
In one example, the service program is, for example, a WEB container (e.g., nginx, apache), but in practice, the service program is not limited thereto, and the embodiment does not set any limit to the type of the service program.
In another example, according to the characteristics of programs such as Php, Java, Go, Python, and the like, an open port externally provides HTTP services, for example, the Python language adopts a django framework, the open port externally provides HTTP services, and a script file is placed in a directory of the HTTP services; however, this is merely an example and is not limited thereto.
In this embodiment, the preset period may be 5 minutes or 10 minutes, and the specific value of the preset period is not limited in any way and may be set according to actual needs.
And a substep 3012, obtaining the file script through the website of the preset file script.
In this embodiment, the slave server may add a website for periodically detecting the script file through the linux provided crontab, so as to obtain the script file according to the website.
In one example, the script file is of txt type, the script mark is a, the script file is a.txt, the script file is placed under a WEB container to provide services for the outside, and the website can be http:// www.xxx.com/a.txt; the timed task with a preset period of 5 minutes is added by the crontab: 5 a curr-fsSL http:// www.xxx.com/a.txt | sed's/\\ r// g' | sh; however, this is merely an example and is not limited thereto.
In one example, the command to be executed in the file script is a software batch upgrading command, a plurality of slave servers access a service program of the master server every 10 minutes, each slave server obtains the file script from the master server according to a preset website, and when the identification of the file script is judged to be matched with the identification of the server, the software batch upgrading command is executed; however, this is merely an example and is not limited thereto.
In fact, this embodiment may also be a modification of the first embodiment.
Compared with the second implementation mode, the embodiment of the invention provides a file script obtaining mode, namely, the file script is obtained through the website of the preset file script according to the service program of the main server accessed in the preset period, and the method is simple and reliable.
A fourth embodiment of the present invention relates to a server control method applied to a main server, and as shown in fig. 5, the server control method includes:
step 401, generating a script file.
In this embodiment, the main server is a server side server; the script file includes at least a command to be executed.
In an example, the host server may generate a script file by writing a file function in a programming language (e.g., Php, Java, Go, Python), and the like, where the script file may be a script file of type txt, html, log, and the like, and the embodiment does not limit the writing language and the file type of the script file.
In a specific example, a shell script file is generated by a Php programming language using a fwrite writing function, or a file _ put _ contents writing function; however, this is merely an example and is not limited thereto.
And 402, receiving access from the server to obtain the script file from the server, and executing the command to be executed in the file script when the file script is judged to meet the preset condition.
In this embodiment, the master server may receive access from the server via a service program (e.g., a WEB container).
In one example, the IP of the home network is dynamically changed, the server usually has a firewall to set a fixed IP, and the following realizes that the master server remotely adds the dynamic IP to the firewall of the slave server by the embodiment, so as to realize that the slave server is remotely managed by the dynamic IP. Specifically, the master server generates a script file, the script file includes an allowed dynamic IP command, a command to be executed, an identifier for executing the command to be executed once, and an identifier for executing the command to be executed repeatedly (one of switches for executing once and repeatedly may be turned on, for example, a switch for executing once is turned on), and at least one slave server accesses the master server, acquires the script file, and executes the command to be executed, so that the master server allows the dynamic IP to remotely manage the slave server. When the allowed dynamic IP changes, the above operation is repeated, thereby allowing a new dynamic IP command to manage the slave server. However, this is merely an example and is not limited thereto.
Compared with the prior art, the method and the device have the advantages that the script file is generated in advance by the master server, the access of the slave server is received, so that the slave server can obtain the script file, the command to be executed in the file script is executed when the file script meets the preset condition is judged, and the method and the device replace the mode that the master server actively sends the command to be executed to the slave server in the prior art, so that the master server does not need to maintain the IP of the slave server, the maintenance burden and load of the master server are reduced, and the control efficiency of the slave server is improved.
The following describes implementation details of the server control method in this embodiment in detail, and the following is only provided for easy understanding and is not necessary for implementing this embodiment.
Preferably, in this embodiment, as shown in fig. 6, steps 501 and 503 in this embodiment are the same as steps 401 and 402, which are not described herein again, and the following steps are added in this embodiment:
step 502, identifying whether the slave server meets a preset access condition; if yes, go to step 503, otherwise end directly.
In one example, the preset access condition is, for example, that the slave server is a slave server belonging to a preset access list; or the place of the slave server is the place of the slave server in a preset place list; according to the embodiment, only the slave server meeting the access condition has the authority to access the master server, so that the safety of the master server is improved; however, this is merely an example and is not limited thereto.
A fifth embodiment of the present invention relates to a server including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the command execution method of the server as in any one of the first to third embodiments.
Where the memory and processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting together one or more of the various circuits of the processor and the memory. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
Compared with the prior art, the method and the system have the advantages that the slave server obtains the file script from the master server, and when the file script is judged to meet the preset conditions, the command to be executed in the file script is executed; because the file script is automatically executed by depending on the self-function of the system (the self-function of the system, such as the scheduled task of a windows system, the condtab timing function of a linux system, and the like), the slave server does not need to install client software, the preparation work before the slave server executes the command is greatly simplified, the cost is saved, the efficiency is improved, the master server does not need to maintain the IP of the slave server, and the maintenance burden and load of the master server are reduced.
A sixth embodiment of the present invention relates to a server including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the control method of the server according to the fourth embodiment.
Where the memory and processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting together one or more of the various circuits of the processor and the memory. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
Compared with the prior art, the method and the device have the advantages that the script file is generated in advance by the master server, the access of the slave server is received, so that the slave server can obtain the script file, the command to be executed in the file script is executed when the file script meets the preset condition is judged, and the method and the device replace the mode that the master server actively sends the command to be executed to the slave server in the prior art, so that the master server does not need to maintain the IP of the slave server, the maintenance burden and load of the master server are reduced, and the control efficiency of the slave server is improved.
A seventh embodiment of the present invention relates to a computer-readable storage medium storing a computer program that, when executed by a processor, implements the command execution method of the server in any one of the first to third embodiments.
Compared with the prior art, the method and the system have the advantages that the slave server obtains the file script from the master server, and when the file script is judged to meet the preset conditions, the command to be executed in the file script is executed; because the file script is automatically executed depending on the self-function of the system or (the self-function of the system, such as the scheduled task of a windows system, the condtab timing function of a linux system, and the like), the slave server does not need to install client software, the preparation work before the slave server executes the command is greatly simplified, the cost is saved, the efficiency is improved, the master server does not need to maintain the IP of the slave server, and the maintenance burden and load of the master server are reduced.
An eighth embodiment of the present invention relates to a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method of controlling a server of the fourth embodiment.
Compared with the prior art, the method and the device have the advantages that the script file is generated in advance by the master server, the access of the slave server is received, so that the slave server can obtain the script file, the command to be executed in the file script is executed when the file script meets the preset condition is judged, and the method and the device replace the mode that the master server actively sends the command to be executed to the slave server in the prior art, so that the master server does not need to maintain the IP of the slave server, the maintenance burden and load of the master server are reduced, and the control efficiency of the slave server is improved.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (8)

1. A command execution method of a server, applied to slave servers having server marks, the slave servers having the same server mark belonging to the same server group; the command execution method comprises the following steps:
acquiring a file script from a main server; the file script is pre-stored in the main server, the file script at least comprises a command to be executed and a script identifier, and the script identifier corresponds to a server group;
judging whether the command to be executed in the file script is executed;
if the command to be executed is not executed, judging whether the file script meets a preset condition or not; namely:
judging whether the script identification in the file script is matched with the server mark;
if the script identification is matched with the server mark, the file script meets the preset condition, the slave server with the same server mark executes the command to be executed in the file script, and the slave server does not need to install client software for executing the command to be executed.
2. The method for executing the command of the server according to claim 1, wherein the obtaining of the file script from the main server specifically includes:
accessing a service program of the main server according to a preset period;
and acquiring the file script through a preset website of the file script.
3. A control method of a server is characterized in that the method is applied to a main server; the control method comprises the following steps:
generating a file script, and storing the file script in a main server in advance; the file script at least comprises a command to be executed and a script identifier, and the script identifier corresponds to a server group;
and receiving the access of each slave server in the same server group, so that each slave server with the same server mark acquires the file script, judging that the command to be executed in the file script is not executed when the script mark is judged to be matched with the server mark, and executing the command to be executed in the file script by each slave server with the same server mark without installing client software for executing the command to be executed by the slave server.
4. The method according to claim 3, wherein before receiving access from each slave server in the same server group, the method further comprises:
identifying whether each slave server with the same server mark meets a preset access condition;
and if so, executing the access of the receiving slave server so that the slave server can obtain the file script.
5. A server, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a command execution method of the server according to claim 1 or 2.
6. A server, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a command execution method of the server according to claim 3 or 4.
7. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements a command execution method of the server of claim 1 or 2.
8. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the control method of the server according to claim 3 or 4.
CN201810736592.1A 2018-07-06 2018-07-06 Server and command execution method and control method thereof Active CN109117246B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810736592.1A CN109117246B (en) 2018-07-06 2018-07-06 Server and command execution method and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810736592.1A CN109117246B (en) 2018-07-06 2018-07-06 Server and command execution method and control method thereof

Publications (2)

Publication Number Publication Date
CN109117246A CN109117246A (en) 2019-01-01
CN109117246B true CN109117246B (en) 2022-05-10

Family

ID=64822116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810736592.1A Active CN109117246B (en) 2018-07-06 2018-07-06 Server and command execution method and control method thereof

Country Status (1)

Country Link
CN (1) CN109117246B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110806922B (en) * 2019-10-14 2022-06-21 广州微算互联信息技术有限公司 Script execution method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6910166B2 (en) * 2001-11-06 2005-06-21 Fujitsu Limited Method of and apparatus for timing verification of LSI test data and computer product
CN104267993A (en) * 2014-09-30 2015-01-07 珠海市君天电子科技有限公司 Software updating method, device and mobile terminal
CN105468379A (en) * 2015-12-25 2016-04-06 北京金山安全软件有限公司 Script file execution method and device
CN105978849A (en) * 2015-12-08 2016-09-28 乐视网信息技术(北京)股份有限公司 Client updating method and system, client and server
KR20160121037A (en) * 2015-04-09 2016-10-19 한국전자통신연구원 Method for executing Java Script based application in optimized manner
CN106713053A (en) * 2017-02-19 2017-05-24 郑州云海信息技术有限公司 Method and device for batch updating server firmware based on Linux
CN107688538A (en) * 2017-08-31 2018-02-13 北京蓝海讯通科技股份有限公司 A kind of script execution, device and computing device
CN108170512A (en) * 2017-12-27 2018-06-15 德阳源创能源科技有限公司 Script drives analysis method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101398762A (en) * 2007-09-29 2009-04-01 联想(北京)有限公司 Method and device for automatic installing operating system on computer
CN103067422A (en) * 2011-10-19 2013-04-24 华为终端有限公司 Business distribution method, business distribution equipment and business distribution system
CN103516566B (en) * 2012-06-26 2017-02-01 华为技术有限公司 Method and system for realizing server controlling by home network equipment, and apparatuses
CN106250104B (en) * 2015-06-09 2019-08-20 阿里巴巴集团控股有限公司 A kind of remote operating system for server, method and device
CN105100277A (en) * 2015-09-01 2015-11-25 国家电网公司 Software inspection method, device and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6910166B2 (en) * 2001-11-06 2005-06-21 Fujitsu Limited Method of and apparatus for timing verification of LSI test data and computer product
CN104267993A (en) * 2014-09-30 2015-01-07 珠海市君天电子科技有限公司 Software updating method, device and mobile terminal
KR20160121037A (en) * 2015-04-09 2016-10-19 한국전자통신연구원 Method for executing Java Script based application in optimized manner
CN105978849A (en) * 2015-12-08 2016-09-28 乐视网信息技术(北京)股份有限公司 Client updating method and system, client and server
CN105468379A (en) * 2015-12-25 2016-04-06 北京金山安全软件有限公司 Script file execution method and device
CN106713053A (en) * 2017-02-19 2017-05-24 郑州云海信息技术有限公司 Method and device for batch updating server firmware based on Linux
CN107688538A (en) * 2017-08-31 2018-02-13 北京蓝海讯通科技股份有限公司 A kind of script execution, device and computing device
CN108170512A (en) * 2017-12-27 2018-06-15 德阳源创能源科技有限公司 Script drives analysis method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
crontab -让服务器执行定时任务;subying;《https://www.cnblogs.com/subying/p/5815703.html》;20160828;第1-2页 *
服务器定时执行计划任务,定时访问页面(windows/linux);mdxy-dxy;《https://www.jb51.net/article/96624.htm》;20161106;第1-4页 *

Also Published As

Publication number Publication date
CN109117246A (en) 2019-01-01

Similar Documents

Publication Publication Date Title
US20140007076A1 (en) Separate upgrade/modification of remote software in machine to machine communication
CN110808948B (en) Remote procedure calling method, device and system
CN111526052B (en) Network element instruction management method, device, network equipment and storage medium
CN112532711A (en) Edge computing application deployment method, terminal, edge computing node and storage medium
US20090031011A1 (en) Device management system and method for setting configuration-valve therein
CN111880446A (en) Control instruction sending method and control instruction receiving method
CN111273924B (en) Software updating method and device
CN110365508B (en) Method for instantiating virtual network function and network function virtualization orchestrator
CN108989471A (en) The management method and device of log in network system
CN107947906B (en) Slave device
CN109117246B (en) Server and command execution method and control method thereof
CN105530323B (en) File upgrading method, related equipment and system
CN108958786B (en) Matching and updating processing method and device for refrigerator software
CN111832273A (en) Method and device for determining destination message, storage medium and electronic device
CN109922120B (en) Method and terminal for improving DNS availability
CN113467832A (en) Equipment control processing method, device, storage medium and electronic device
CN110474825B (en) Equipment access system, equipment access server method, application and equipment server
CN116760822A (en) Method, system and device for transmitting files of Internet of things equipment
CN107844366B (en) Power grid application service calling method and device, storage medium and computer equipment
CN107171915B (en) Communication protocol changing method and device
US20190052347A1 (en) Communication system, control device, relay device, control method, and storage medium in which program is stored
CN112698948A (en) Method and device for acquiring product resources, storage medium and electronic device
KR20150088462A (en) Method for linking network device in cloud environment and apparatus therefor
CN109981725B (en) Communication method across security domains, server and readable storage medium
CN110909055A (en) Data processing method, data processing device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant