CN112988482B - Server operation management method, device, terminal, server and storage medium - Google Patents

Server operation management method, device, terminal, server and storage medium Download PDF

Info

Publication number
CN112988482B
CN112988482B CN202110184426.7A CN202110184426A CN112988482B CN 112988482 B CN112988482 B CN 112988482B CN 202110184426 A CN202110184426 A CN 202110184426A CN 112988482 B CN112988482 B CN 112988482B
Authority
CN
China
Prior art keywords
server
execution
target server
path
target
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
CN202110184426.7A
Other languages
Chinese (zh)
Other versions
CN112988482A (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202110184426.7A priority Critical patent/CN112988482B/en
Publication of CN112988482A publication Critical patent/CN112988482A/en
Application granted granted Critical
Publication of CN112988482B publication Critical patent/CN112988482B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2289Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • 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/451Execution arrangements for user interfaces

Abstract

The application discloses a server operation management method, a device, a terminal, a server and a storage medium, wherein the server operation management method is applied to the terminal, the terminal is deployed with an application for server operation management, and a graphical user interface is provided when the terminal runs the application, and the method comprises the following steps: displaying a plurality of candidate servers on a graphical user interface; responding to a first selection operation acted on a graphical user interface, determining a target server corresponding to the first selection operation from a plurality of candidate servers, and displaying an operation interface corresponding to the target server; responding to an execution request acting on an operation interface, generating a command execution path of a target server, and sending the command execution path to the target server; and receiving an execution log sent by the target server, wherein the execution log is generated after the target server executes the command execution path. The scheme can reduce the time spent in building the server and searching various operation instructions in the test process.

Description

Server operation management method, device, terminal, server and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for managing server operations, a terminal, a server, and a storage medium.
Background
Because of the need for game testing, users often need to build a game suit server themselves. By setting up the game server, game data and game environment can be modified at will without affecting other users. For example, when the user has a modification requirement such as modification time, global configuration modification, etc., the modification requirement can be realized through a server built by the user. However, in practical application, it is impossible that each user has code authority to implement a process of building a server by itself, and not all users can know the operation instruction of the server. In the game test process, a user needs to spend a great deal of time when building a server and searching various operation instructions, and the test efficiency is low.
Thus, improvements are needed in the art.
Disclosure of Invention
The embodiment of the application provides a server operation management method, a device, a terminal, a server and a storage medium, which can reduce the time spent in building the server and searching various operation instructions in the test process and improve the test efficiency.
The embodiment of the application provides a server operation management method, which is applied to a terminal, wherein the terminal is provided with an application for server operation management, and a graphical user interface is provided when the terminal runs the application, and the method comprises the following steps:
displaying a plurality of candidate servers on the graphical user interface;
responding to a first selection operation acted on the graphical user interface, determining a target server corresponding to the first selection operation from the plurality of candidate servers, and displaying an operation interface corresponding to the target server;
responding to an execution request acted on the operation interface, generating a command execution path of the target server, and sending the command execution path to the target server;
and receiving an execution log sent by the target server, wherein the execution log is generated after the target server executes the command execution path.
In an alternative embodiment, before displaying the plurality of candidate servers on the graphical user interface, the method further comprises:
presetting operation information to be executed of each candidate server, wherein the operation information to be executed comprises a plurality of operations to be executed;
Setting available instructions corresponding to the plurality of operations to be executed;
setting an instruction configuration corresponding to the available instruction, wherein the instruction configuration comprises an execution catalog of the available instruction and a target object corresponding to the available instruction.
In an alternative embodiment, after the determining, from the plurality of candidate servers, a target server corresponding to the first selection operation in response to the first selection operation acting on the graphical user interface, the method further includes:
responding to touch operation of a file editing control corresponding to the target server, and generating a file editing window;
responding to a second selection operation acted on the file editing window, and determining a target file corresponding to the second selection operation from a plurality of files displayed on the file editing window;
sending an acquisition instruction of a file command execution path of the target file to the target server;
and receiving a file execution log generated by the target server executing the file command execution path.
The embodiment of the application provides another server operation management method, which comprises the following steps:
acquiring a command execution path of a target server, wherein a parameter placeholder of an operation to be executed is arranged in the command execution path;
Acquiring the actual parameters of the operation to be executed, and replacing the parameters in the parameter placeholders with the actual parameters;
setting the working state of the target server as an execution state;
executing the command execution path and generating an execution log for executing the command execution path.
In an alternative embodiment, the command execution path includes a target server path and an operation path to be executed, and the obtaining the command execution path of the target server includes:
acquiring a file path of the target server and instruction configuration of the operation to be executed;
generating a target server path according to the file path of the target server, and generating the operation path to be executed according to the instruction configuration corresponding to the operation to be executed.
In an alternative embodiment, after the obtaining the command execution path of the target server, the method further includes:
judging whether the command execution path exists or not;
and if the command execution path does not exist, generating error reporting prompt information.
In an optional embodiment, after the setting the working state of the target server to the execution state, the method further includes:
And generating an execution notice based on the execution state, and sending the execution notice to a target object.
In an alternative embodiment, the executing the command execution path and generating an execution log for executing the command execution path includes:
executing the command execution path through a target process;
starting a corresponding process according to the command execution path, and recording a process identifier of the process, wherein the command execution path corresponds to the process one by one;
recording the execution process of the process through the execution log, and sending the execution process in the execution log to a terminal corresponding to the target server.
In an optional embodiment, after the executing the command execution path and generating an execution log for executing the command execution path, the method further includes:
closing the process, and clearing a process identifier corresponding to the process;
and recording the closing process of the process into the execution log.
In an alternative embodiment, the executing the command execution path and generating an execution log for executing the command execution path includes:
judging whether the executing process of executing the command executing path reports errors or not;
If the execution process of executing the command execution path does not report errors, generating an execution success notification, sending the execution success notification to the target object, and resetting the target server state; or alternatively
If the execution process of executing the command execution path has errors, generating an execution failure notification, sending the execution failure notification to the appointed user, and resetting the target server state.
The embodiment of the application also provides a server operation management device, which comprises:
a display unit for displaying a plurality of candidate servers on the graphical user interface;
a determining unit configured to determine a target server corresponding to a first selection operation from the plurality of candidate servers in response to the first selection operation acting on the image user interface, and display an operation interface corresponding to the target server;
the generating unit is used for responding to the execution request acted on the operation interface, generating a command execution path of the target server and sending the command execution path to the target server;
and the receiving unit is used for receiving the execution log sent by the target server, wherein the execution log is generated after the target server executes the command execution path.
The embodiment of the application also provides another server operation management device, which comprises:
the system comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for acquiring a command execution path of a target server, and parameter placeholders of operations to be executed are arranged in the command execution path;
the input unit is used for acquiring the actual parameters of the operation to be executed and replacing the parameters in the parameter placeholders with the actual parameters;
the setting unit is used for setting the working state of the target server to be an execution state;
and the execution unit is used for executing the command execution path and generating an execution log for executing the command execution path.
The embodiment of the application also provides a terminal which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the steps of the server operation management method when executing the computer program.
The embodiment of the application also provides a server, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the steps of the server operation management method are realized when the processor executes the computer program.
The embodiment of the application also provides a storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the server operation management method as described above.
The embodiment of the application provides a server operation management method, a device, a terminal, a server and a storage medium, which are applied to the terminal, wherein the terminal is deployed with an application for server operation management, and a graphical user interface is provided when the terminal runs the application, and the method comprises the following steps: displaying a plurality of candidate servers on the graphical user interface; responding to a first selection operation acted on the graphical user interface, determining a target server corresponding to the first selection operation from the plurality of candidate servers, and displaying an operation interface corresponding to the target server; responding to an execution request acted on the operation interface, generating a command execution path of the target server, and sending the command execution path to the target server; and receiving an execution log sent by the target server, wherein the execution log is generated after the target server executes the command execution path. Therefore, the embodiment of the application can select the target server from a plurality of servers displayed on the operation interface, and can call the target server based on the related operation of the target server, thereby improving the test efficiency, and reducing the communication cost through information display and timely message notification of the graphical user interface.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a scenario of a server operation management method according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for managing server operations according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a graphical user interface of a service operations management application provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of an operation interface for editing a server according to an embodiment of the present application;
FIG. 5 is a schematic flow chart of an operation interface for editing instructions according to an embodiment of the present application;
FIG. 6 is a schematic illustration of an occupancy situation provided by an embodiment of the present application;
FIG. 7 is a schematic diagram of a notification display provided by an embodiment of the present application;
FIG. 8 is a schematic diagram of an operation interface corresponding to a target server according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a remote file editing function according to an embodiment of the present application;
FIG. 10 is a schematic diagram of an execution log according to an embodiment of the present application;
FIG. 11 is a flowchart illustrating another method for managing server operations according to an embodiment of the present application;
FIG. 12 is a schematic workflow diagram of a server operation management method according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a server operation management device according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of another server operation management device according to an embodiment of the present application;
fig. 15 is a schematic structural diagram of a server according to an embodiment of the present application;
fig. 16 is a schematic structural diagram of a terminal according to an embodiment of the present application;
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
The embodiment of the application provides a server operation management method, a device, a terminal, a server and a storage medium. Specifically, the present embodiment provides a server operation management method suitable for a server operation management apparatus that can be integrated in a computer device.
The computer device may be a terminal or other device, for example, a mobile phone, a tablet computer, a notebook computer, a desktop computer, etc.
The computer device may be a server, which may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, and basic cloud computing services such as big data and artificial intelligence platforms, but is not limited thereto.
In this embodiment, the computer device may be a server, and may be configured to: acquiring a command execution path of a target server, wherein a parameter placeholder of an operation to be executed is arranged in the command execution path; acquiring the actual parameters of the operation to be executed, and replacing the parameters in the parameter placeholders with the actual parameters; setting the working state of the target server as an execution state; executing the command execution path and generating an execution log for executing the command execution path.
In this embodiment, the computer device may be a terminal, and may be configured to: displaying a plurality of candidate servers on the graphical user interface; responding to a first selection operation acted on the graphical user interface, determining a target server corresponding to the first selection operation from the plurality of candidate servers, and displaying an operation interface corresponding to the target server; responding to an execution request acted on the operation interface, generating a command execution path of the target server, and sending the command execution path to the target server; and receiving an execution log sent by the target server, wherein the execution log is generated after the target server executes the command execution path.
In this embodiment, the server operation management tool is to be deployed on a server (such as the server 20 in fig. 1), and the user may interact with the server 20 through the terminal 10. The terminal 10 may be integrated with a client, and a user may interact with the server through the client on the terminal, or the user may log in a web page provided by the server through the terminal 10, and interact with the server through the web page.
The terminal 10 and the server 20 are connected to each other through a network, for example, a wired or wireless network connection.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
Embodiments of the present application will be described in terms of a server operation management apparatus that may be integrated in a computer device in particular.
The embodiment of the application provides a server operation management method, which is applied to a terminal, wherein the terminal is provided with an application for server operation management, and a graphical user interface is provided when the terminal runs the application, as shown in fig. 2, the flow of the server operation management method of the embodiment can be as follows:
201. a plurality of candidate servers are displayed on the graphical user interface.
In the embodiment of the application, a server operation management tool is deployed on each candidate server, applications for server operation management are deployed on terminals corresponding to a plurality of candidate servers, and when the terminal runs the service operation management application, a graphical user interface is displayed on the terminal, as shown in fig. 3, and fig. 3 is a graphical user interface schematic diagram of the service operation management application provided by the application. Referring to fig. 3, in the graphical user interface, a plurality of candidate servers are displayed, and identification information corresponding to each candidate server may include information such as a name, an occupation condition, a server time, a code version, a code branch, a file editing control corresponding to the candidate server, an execution operation control corresponding to the candidate server, and the like of the candidate server. As shown in fig. 3, the header of each column is the name of the information displayed in the column, and the header is a status bar, identifying whether the candidate server is executed or not, for example, a smiling face symbol in the status bar in fig. 3, identifying whether the candidate server is in an executing state or not; other columns of information such as names, code branches, code versions, etc. may also be apparent on the header.
Before the graphical user interface of the terminal displays the plurality of candidate servers, a user can perform the operations of adding and deleting the candidate servers and performing the operations of adding and deleting the instructions of the candidate servers, wherein the user refers to an administrator or an object needing to perform the operations on the target servers. The adding and deleting operations of the candidate server, namely server editing, mainly edit information such as code paths, code branches, available instruction lists and the like. The user presets operation information to be executed corresponding to each candidate server, wherein the operation information to be executed comprises a plurality of operations to be executed, and available instructions corresponding to the plurality of operations to be executed are set. For example, the user may input a corresponding operation request through a control of the newly added server or a control of the editing server shown in fig. 3, and the terminal responds to the operation request of the newly added server or the operation request of the editing server input by the user, so as to perform the adding and deleting operations of the candidate server and the adding and deleting operations of the instruction of the candidate server. The user can conveniently manage the server, and can add and delete the server and add and delete the operation instructions at any time.
Referring to fig. 4, fig. 4 is a schematic diagram of an operation interface for editing a server according to the present application. Each operation to be executed corresponds to an operation instruction respectively, and a user can select and set an available instruction corresponding to each operation to be executed. As shown in fig. 4, it can be known that, taking a server with a server name of trunk as an example, the operation instruction corresponding to the server operation includes an operation instruction of modifying the server time, resetting the server time, updating the weather, and exiting the generating point, etc., and the operation instruction of not hooking the exiting the generating point is selected as the available instruction corresponding to the set server operation in fig. 4. The user can set the available instruction corresponding to each operation to be executed according to the requirement. After all available instructions of the operation to be executed are checked and set, and other information such as server names, code branches, code catalogs and the like are set, a save button is clicked, and the editing operation of the server is completed.
And adding and deleting operations of the instructions of the candidate server, namely instruction editing, mainly comprise instruction configuration corresponding to the editing instructions, including an execution catalog of the editing instructions and target objects corresponding to the instructions. The target object corresponding to the instruction is an object to be notified after the instruction is executed, and may be a specified user or a specified group. Referring to fig. 5, fig. 5 is a schematic diagram of an operation interface for editing instructions according to the present application. As can be seen from fig. 5, the left side displays various operations to be performed and a corresponding list of available instructions, and the right side displays instruction configuration information of the selected available instructions to be edited. Taking the name of the selected instruction in fig. 5 as a name_server service as an example, the instruction configuration information includes an instruction name, an instruction type, a notification object corresponding to the instruction, an execution path, an execution command, and the like.
Each candidate server defaults to occupy before use; for the occupied servers, the names of the occupants are displayed, and each server can only be occupied by one user and is exclusively used when the server operation is performed. As shown in fig. 6, fig. 6 is a schematic view of an occupancy state provided by the present application.
In order to meet the requirement of supporting multiple servers, a host field is added when a server (server) is configured, so that a server operation management tool can be set on the multiple servers, and a server operation management entry of the current server is filtered through different hosts. Where each host can be seen as a site on top of the server, by means of which different hosts it is possible to distinguish which site is visited.
In the embodiment of the application, the application for server operation management also has an automatic occupation cleaning function and a reservation function. Because the design needs to preempt the target server to continue executing related instructions, an automatic cleaning occupying function and a reservation function are also designed, and specific operation details comprise:
(1) When reservation is carried out, reservation queue information can be displayed on a graphical user interface, wherein the reservation queue information comprises user information currently queuing for reservation; if the currently selected target server is unoccupied and reserved by no person, the user can click the reserved control to occupy the target server;
(2) In order to reduce unnecessary queuing time, when the target server is occupied and the reservation occupied time is not full (for example, the reservation occupied time is half an hour), the reservation function cannot be started, and the terminal can display the reserved time on a popup window on a graphical user interface;
(3) When the target server is unoccupied, information prompting reservation is sent to a terminal used by a first user in a current reservation queue, the reservation time is preset, when the reservation time reaches the preset reservation time and a selection operation for selecting the target server sent from the terminal used by the first user is not received, the first user is removed from the queue, and the information prompting reservation is continuously sent to the terminal used by the first user in a new reservation queue until the queue is empty. If the preset retention time is 5 minutes, the first user is retained for 5 minutes, and if the first user is unoccupied in the period, the first user is removed from the queue and notified of the first user in the queue until the queue is empty (using recursion);
(4) In order to avoid excessive reservation, limiting the number of reservation servers of each user, for example, setting the number of reservation servers to be two, so that each user can reserve only two servers; limiting the reservation time of each user, for example, setting the reservation time to be half an hour, if the reservation time of the user exceeds half an hour, the user will be moved out of the reservation queue, and after the user is moved out of the reservation queue, the information for prompting the user to move out of the queue is sent to the terminal used by the user (a global dictionary can be checked by starting a sub-thread cycle, wherein the reservation time of each user to a server is recorded);
(5) Setting a forced occupation function in idle time, for example, setting nine night and weekend to idle time, on the basis of the rule, a user can communicate with the current occupant of the target server after successful reservation, and after preset waiting time (for example, the preset waiting time is 10 minutes), a notification is sent to a terminal used by the user: the server can be preempted at this time, and the user can preempt or cancel the reservation according to the communication condition (no response of the occupant).
The server reservation occupation time, preset reservation time, reservation server number, reservation time length, idle time setting, preset waiting time and the like are all examples, and the application is not limited to this and can be flexibly set according to actual conditions. The method for notifying the user can be that a popo notification is used, popo is an im notification of internet easiness, and if the interface allows, other im can also be realized, for example, some short message pushing platforms, micro-message public number messages and the like; mail notification may also be performed, a mail message in python, etc. Referring to fig. 7, fig. 7 is a schematic diagram of a notification display according to the present application.
202. And responding to a first selection operation acted on the graphical user interface, determining a target server corresponding to the first selection operation from the plurality of candidate servers, and displaying an operation interface corresponding to the target server.
In the embodiment of the application, a user performs operation on a graphical user interface, and a server needing to perform operation to be executed is selected as a target server. The terminal responds to the first selection operation acted on the graphical user interface, determines a target server corresponding to the first selection operation of the user from the displayed plurality of candidate servers, and displays an operation interface corresponding to the target server on the terminal. That is, after selecting the target server to be operated, the user can enter the server to execute all the instructions that the server can operate.
Fig. 8 is a schematic diagram of an operation interface corresponding to a target server according to the present application, as shown in fig. 8. Referring to fig. 8, fig. 8 uses a server with a server name qa as a target server, that is, the operation interface shown in fig. 8 is an operation interface corresponding to the server qa. The left side of the operation interface displays a plurality of operations to be executed, the next stage of each operation to be executed corresponds to each available operation instruction, and the right side of the operation interface displays instruction configuration information corresponding to a certain operation instruction after being selected. As can be seen from fig. 8, the server is operated as a type of operation to be performed, and the server operation corresponds to three available operation instructions of modifying the server time, resetting the server time, and qa clearing. As shown in fig. 8, the operation instruction of modifying the server time is selected in fig. 8, that is, instruction configuration information corresponding to the operation instruction of modifying the server time is displayed on the right side of the operation interface, where the instruction configuration information includes information such as an instruction name, an instruction type, an instruction notification object, an instruction execution path, and an instruction execution command. The operation interface also comprises a new instruction button and an edit instruction button, and when the corresponding button is selected, the operation of the new instruction or the edit instruction is performed. The operation interface also comprises an execution button, and after the corresponding parameters are modified, the execution button is clicked to execute the corresponding operation.
Optionally, in some embodiments, the terminal further has a remote file editing function thereon. Each candidate server of the graphical user interface shown in fig. 3 corresponds to a file editing control, after the user selects the target server, clicking the file editing control corresponding to the target server, and the terminal responds to the touch operation acting on the file editing control corresponding to the target server to generate a file editing window. Referring to fig. 9, fig. 9 is a schematic diagram of a remote file editing function according to the present application. As shown in fig. 9, the left side shows folders under the corresponding path of the current server (target server), wherein the folders in fig. 9 include code, setup, deploy, servers, etc., and clicking on these folders can expand the files of the next hierarchy; the text content in the selected target file is displayed on the right side. After the user selects the target file (only supports editing the text file with the specified suffix), for example, the selected target file in fig. 9 is check_start_done, the terminal responds to the second selection operation acting on the file editing window to determine the target file corresponding to the second selection operation from the files displayed on the file editing window, the terminal sends an acquisition instruction of the file command execution path of the target file to the target server, that is, the terminal sends a cmd string for acquiring the current file path, the target server executes the instruction after receiving the command, reads text content in the target file line by line, reads the text content, generates a file execution log for executing the file command execution path, and the terminal receives the file execution log output by the target server and displays the file execution log in the window. The target file corresponds to a second selection operation of the user, the file execution log is an execution log generated by executing a file command execution path in the target file, the execution log is displayed on the right side in the remote editing window, specific content output in the file execution log is shown in fig. 10, and an operation instruction executed by the target server can be obtained.
203. And responding to the execution request acted on the operation interface, generating a command execution path of the target server, and sending the command execution path to the target server.
In the embodiment of the application, after a user selects a target server and enters an operation interface of the target server, setting an operation to be executed on the target server, namely, inputting a modification parameter of a setting instruction in an instruction command execution column of the operation interface to form an execution request of the user, responding the execution request acted on the operation interface by the terminal, generating a command execution path of the target server according to the execution request of the user, and sending the command execution path to the target server.
204. And receiving an execution log sent by the target server, wherein the execution log is generated after the target server executes the command execution path.
In the embodiment of the application, after receiving the command execution path, the target server executes the command execution path and generates the corresponding execution log, the terminal receives the execution log output by the target server, and the execution log is displayed on the interface of the terminal. The execution process of the execution path of the target server execution command generates an execution log, the execution log is sent to the terminal for printing in real time, and a user can know the real-time progress of the operation of the target server according to the execution log printed in real time. Fig. 10 is a schematic diagram of an execution log according to the present application, as shown in fig. 10.
As shown in fig. 11, the flow of another server operation management method provided in this embodiment may be as follows:
111. and acquiring a command execution path of the target server, wherein a parameter placeholder of an operation to be executed is arranged in the command execution path.
In the embodiment of the application, a command execution path of a target server transmitted by a terminal page is acquired, the command execution path comprises a target server path and an operation path to be executed, a file path of the target server and instruction configuration of the operation to be executed are acquired, the target server path is generated according to the file path of the target server, and the operation path to be executed is generated according to the instruction configuration of the operation to be executed. Taking server1 as a target server as an example, for example, the path where server1 is located is/home/data/server 1; taking "update server" as an example of one available instruction for an operation to be performed, for example, the relative path configured by the current instruction of "update server" is/deploy/; finally, on the operation interface of the terminal, the content input in the execution instruction is a path which can be spliced together according to the two paths to be executed as a final command, the path which is finally executed according to the above example is the path which is finally executed by the target server1 and is to be executed by the target server1, and the subsequent execution instruction is executed under the catalog.
The command execution path is provided with parameter placeholders for operations to be executed, the parameter placeholders are special placeholders, parameter modification can be carried out during execution, actual parameters to be modified are input into an operation interface of the terminal, and the target server can replace the actual parameters into the parameter placeholders. The placeholder is set in a format of a%o or $ package, and parameter names are filled in the middle, for example, before the command echo%var1 is executed, that is, a parameter of var1 needs to be input into an actual value by a user before the command echo%var1 is executed, for example, the actual value is input 123, and the actual value is processed into the echo 123 as a final command actually executed. The placeholder setting format is not limited, and the setting format is only an example. Further, the actual parameters include default parameters and custom parameters. Wherein the default parameters include: NOW$ system current time, $WD$ actual execution catalog, i.e. server code catalog+execution catalog; the custom parameters include at least one of a date format, a file name, and uploaded file information, for example, the custom parameters include: % time%:date format,% file%:upload file, file will upload to execution path, and preserve file name.
After the command execution path of the target server is acquired, judging whether the acquired command execution path exists, if so, continuing to carry out the following steps, and if not, generating error reporting prompt information.
112. And acquiring the actual parameters of the operation to be executed, and replacing the parameters in the parameter placeholders with the actual parameters.
In the embodiment of the application, after the acquired command execution path exists, according to the operation to be executed input by the user at the operation interface of the terminal, the actual parameter of the operation to be executed is acquired, and the actual parameter is input into the parameter placeholder of the command execution path, namely, the parameter in the parameter placeholder is replaced by the actual parameter.
113. Setting the working state of the target server as an execution state.
In the embodiment of the present application, after the parameters in the parameter placeholders of the command execution path are replaced with actual parameters, the working state of the target server is set to the execution state, for example, the state of the target server is set to 1. After the working state of the target server is set, generating an execution notice based on the execution state, and sending the execution notice to a target object, wherein the target object is a designated user or group chat of the designated user.
114. Executing the command execution path and generating an execution log for executing the command execution path.
In the embodiment of the application, the server executes the acquired command execution path, wherein the command can be executed in a process mode, namely, the command execution path is executed through a target process, a corresponding process is started according to the acquired command execution path, a Process Identifier (PID) corresponding to the process is recorded, and the command execution path corresponds to the process one by one. Where PID (Process Identification) refers to a process identification number, i.e., a process identifier, in the operating system, each time a program is opened in the operating system, a process ID, i.e., PID, is created.
Wherein a sub-process (sub-process) module, a library (also called a module) of python itself, may be used, which allows new processes to be generated, connect their input, output, error pipes, and obtain their return codes; the method mainly comprises the steps of inputting the subspecies in the engineering of the subspecies, and calling the subspecies according to parameter requirements at a required place. Alternatively, instead of using sub-processes, separate process objects may be created directly. The methods of creating processes by Python are: the process comprises the following steps: multiprocessing. Sub-processes: sub-processes; background processes of the independent main process: os.fork (). The first process scheme can also be a subprocess or an independent background process, and parameter control can be realized during creation; the third solution is an independent background process.
In the embodiment of the application, the server executes the acquired command execution path and generates an execution log for executing the command execution path. And sending the output in the process execution process to a terminal corresponding to the target server in real time in a websocket mode for display. After the execution log of the execution command execution path is generated, closing the process after the execution is finished, clearing a process identifier corresponding to the process, and recording the closing process of the process into the execution log. Wherein the websocket is a computer communication protocol providing a full duplex (bi-directional communication) communication channel through a single TCP connection, an Application Program Interface (API) of the websocket can perform bi-directional communication between a browser of a user and a server, the user can send a message to the server and receive an event-driven response without polling the server, it can allow a plurality of users to connect to the same real-time server, and communicate through the API and immediately obtain the response.
Judging whether the execution process of the execution command execution path fails to report errors, if not, generating an execution success notification, sending the execution success notification to the target object, and resetting the state of the target server, wherein the working state of the target server can be set to 0; or if the execution process of the execution path of the execution command has errors, generating an execution failure notification, sending the execution failure notification to the target object, and resetting the state of the target server.
In the embodiment of the application, the server operation management device is deployed on the same machine as the server, essentially, different folders are created on the machine to represent different servers, each folder is provided with the independent configuration file, the configuration files in the folders correspond to the operation instructions of the server respectively, the operation instructions of the server are simplified, and because the operation instructions are in the folders, a great amount of time spent in building the server and searching various operation instructions in the test process is reduced, and the test efficiency is improved. By selecting the designated server and executing the operation instruction in the folder where the designated server is located, the effect is also exerted in the folder, so that the operation isolation is realized, namely, the operation between the servers is independent and does not interfere with each other.
All commands are finally converted into a local shell script to be executed, and the flow of executing the foremost core of the shell script is shown in fig. 12. Referring to fig. 12, fig. 12 is a schematic workflow diagram of a server operation management method according to the present application. As shown in fig. 12, the target server concatenates the command execution path according to the incoming data, which includes the file path of the server and the instruction configuration of the operation to be performed. If the command execution path does not exist, the error reporting hint path does not exist. If the command execution path exists, the following steps are continued. The actual parameters are input into the parameter placeholders, original parameter settings in the command execution path are replaced, the working state of the target server is set to be 1, namely the execution state, a notification of an execution instruction is sent to a designated user or group chat, a sub-process library is called, the commands are executed in a sub-process mode, meanwhile, the PID of the sub-process is recorded, and the user can conveniently stop operation at any time. And sending the output in the execution process of the subprocess to a corresponding terminal for display in real time. And closing the subprocess after the execution is finished, recording an execution log, and clearing the execution state of the server and the PID of the subprocess. Judging whether the execution process of the execution command execution path reports errors or not, if the execution process of the execution command execution path does not report errors, generating an execution success notification, sending the execution success notification to a designated user or group chat, and resetting the state of a target server to 0; or if the execution process of the execution path of the execution command has errors, generating an execution failure notification, sending the execution failure notification to the designated user or group chat, and resetting the state of the target server.
In order to better implement the above method, correspondingly, the embodiment of the application also provides a server operation management device, which can be integrated in a computer device, for example in the form of a terminal.
Referring to fig. 13, the server operation management apparatus includes a display unit 131, a determination unit 132, a generation unit 133, and a reception unit 134, as follows:
a display unit for displaying a plurality of candidate servers on the graphical user interface;
a determining unit, configured to determine a target server corresponding to a first selection operation from the plurality of candidate servers in response to the first selection operation acting on the graphical user interface, and display an operation interface corresponding to the target server;
the generating unit is used for responding to the execution request acted on the operation interface, generating a command execution path of the target server and sending the command execution path to the target server;
and the receiving unit is used for receiving the execution log sent by the target server, wherein the execution log is generated after the target server executes the command execution path.
In an alternative embodiment, the display unit is further configured to:
presetting operation information to be executed of each candidate server, wherein the operation information to be executed comprises a plurality of operations to be executed;
setting available instructions corresponding to the plurality of operations to be executed;
setting an instruction configuration corresponding to the available instruction, wherein the instruction configuration comprises an execution catalog of the available instruction and a target object corresponding to the available instruction.
In an alternative embodiment, the determining unit is further configured to:
responding to touch operation of a file editing control corresponding to the target server, and generating a file editing window;
responding to a second selection operation acted on the file editing window, and determining a target file corresponding to the second selection operation from a plurality of files displayed on the file editing window;
sending an acquisition instruction of a file command execution path of the target file to the target server;
and receiving a file execution log generated by the target server executing the file command execution path.
In order to better implement the above method, correspondingly, the embodiment of the application also provides another server operation management device, which can be integrated in a server.
Referring to fig. 14, the server operation management apparatus includes an acquisition unit 141, an input unit 142, a setting unit 143, and an execution unit 144, as follows:
the system comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for acquiring a command execution path of a target server, and parameter placeholders of operations to be executed are arranged in the command execution path;
the input unit is used for acquiring the actual parameters of the operation to be executed and replacing the parameters in the parameter placeholders with the actual parameters;
the setting unit is used for setting the working state of the target server to be an execution state;
and the execution unit is used for executing the command execution path and generating an execution log for executing the command execution path.
In an alternative embodiment, the obtaining unit is further configured to:
acquiring a file path of the target server and instruction configuration of the operation to be executed;
generating a target server path according to the file path of the target server, and generating the operation path to be executed according to the instruction configuration corresponding to the operation to be executed.
In an alternative embodiment, the obtaining unit is further configured to:
judging whether the command execution path exists or not;
and if the command execution path does not exist, generating error reporting prompt information.
In an alternative embodiment, the setting unit is further configured to: and generating an execution notice based on the execution state, and sending the execution notice to a target object.
In an alternative embodiment, the execution unit is further configured to:
executing the command execution path through a target process;
starting a corresponding process according to the command execution path, and recording a process identifier of the process, wherein the command execution path corresponds to the process one by one;
recording the execution process of the process through the execution log, and sending the execution process in the execution log to a terminal corresponding to the target server.
In an alternative embodiment, the execution unit is further configured to:
closing the process, and clearing a process identifier corresponding to the process;
and recording the closing process of the process into the execution log.
In an alternative embodiment, the execution unit is further configured to:
judging whether the executing process of executing the command executing path reports errors or not;
if the execution process of executing the command execution path does not report errors, generating an execution success notification, sending the execution success notification to the target object, and resetting the target server state; or alternatively
If the execution process of executing the command execution path has errors, generating an execution failure notification, sending the execution failure notification to the target object, and resetting the target server state.
Correspondingly, the embodiment of the application also provides a server which can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and a cloud server for providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services and the like. As shown in fig. 15, fig. 15 is a schematic structural diagram of a server according to an embodiment of the present application. The server 800 includes a processor 801 having one or more processing cores, a memory 802 having one or more computer readable storage media, and a computer program stored on the memory 802 and executable on the processor. The processor 801 is electrically connected to the memory 802. It will be appreciated by those skilled in the art that the server architecture shown in the figures is not limiting of the server and may include more or fewer components than shown, or certain components may be combined, or a different arrangement of components.
The processor 801 is a control center of the server 800, connects various parts of the entire server 800 using various interfaces and lines, and performs various functions of the server 800 and processes data by running or loading software programs and/or modules stored in the memory 802, and calling data stored in the memory 802, thereby performing overall monitoring of the server 800.
In the embodiment of the present application, the processor 801 in the server 800 loads the instructions corresponding to the processes of one or more application programs into the memory 802 according to the following steps, and the processor 801 executes the application programs stored in the memory 802, so as to implement various functions:
acquiring a command execution path of a target server, wherein a parameter placeholder of an operation to be executed is arranged in the command execution path;
acquiring the actual parameters of the operation to be executed, and replacing the parameters in the parameter placeholders with the actual parameters;
setting the working state of the target server as an execution state;
executing the command execution path and generating an execution log for executing the command execution path. The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Correspondingly, the embodiment of the application also provides a terminal which can be a computer device such as a smart phone, a tablet personal computer, a notebook computer, a touch screen, a game machine, a personal computer (PC, personal Computer), a personal digital assistant (Personal Digital Assistant, PDA) and the like. Fig. 16 is a schematic structural diagram of a terminal 900 according to an embodiment of the present application, as shown in fig. 16. The terminal 900 includes a processor 901 having one or more processing cores, a memory 902 having one or more computer readable storage media, and a computer program stored on the memory 902 and executable on the processor. The processor 901 is electrically connected to the memory 902. It will be appreciated by those skilled in the art that the configuration of terminal 900 shown in the figures is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
Processor 901 is a control center of terminal 900, connects various parts of the entire terminal 900 using various interfaces and lines, and performs various functions of terminal 900 and processes data by running or loading software programs and/or modules stored in memory 902 and invoking data stored in memory 902, thereby performing overall monitoring of terminal 900.
In the embodiment of the present application, the processor 901 in the terminal 900 loads the instructions corresponding to the processes of one or more application programs into the memory 902 according to the following steps, and the processor 901 executes the application programs stored in the memory 902, so as to implement various functions:
displaying a plurality of candidate servers on the graphical user interface;
responding to a first selection operation acted on the graphical user interface, determining a target server corresponding to the first selection operation from the plurality of candidate servers, and displaying an operation interface corresponding to the target server;
responding to an execution request acted on the operation interface, generating a command execution path of the target server, and sending the command execution path to the target server;
and receiving an execution log sent by the target server, wherein the execution log is generated after the target server executes the command execution path.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Optionally, as shown in fig. 16, the terminal 900 further includes: a touch display 903, a radio frequency circuit 904, an audio circuit 905, an input unit 906, and a power supply 907. The processor 901 is electrically connected to the touch display 903, the radio frequency circuit 904, the audio circuit 905, the input unit 906, and the power supply 907, respectively. It will be appreciated by those skilled in the art that the terminal structure shown in fig. 16 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The touch display 903 may be used to display a graphical user interface and receive an operation instruction generated by a user acting on the graphical user interface. The touch display 903 may include a display panel and a touch panel. Wherein the display panel may be used to display information entered by a user or provided to the user and various graphical user interfaces of the terminal, which may be composed of graphics, text, icons, video and any combination thereof. Alternatively, the display panel may be configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. The touch panel may be used to collect touch operations on or near the user (such as operations on or near the touch panel by the user using any suitable object or accessory such as a finger, stylus, etc.), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Alternatively, the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 901, and can receive and execute commands sent from the processor 901. The touch panel may overlay the display panel, and upon detection of a touch operation thereon or thereabout, the touch panel is passed to the processor 901 to determine the type of touch event, and the processor 901 then provides a corresponding visual output on the display panel based on the type of touch event. In the embodiment of the present invention, the touch panel and the display panel may be integrated into the touch display 903 to realize input and output functions. In some embodiments, however, the touch panel and the touch panel may be implemented as two separate components to perform the input and output functions. I.e. the touch display 903 may also implement an input function as part of the input unit 906.
The rf circuit 904 may be configured to receive and transmit rf signals to and from a network device or other terminal via wireless communication to and from the network device or other terminal.
The audio circuit 905 may be used to provide an audio interface between the user and the terminal through a speaker, microphone. The audio circuit 905 may transmit the received electrical signal converted from audio data to a speaker, and convert the electrical signal into a sound signal to output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 905 and converted into audio data, which is processed by the audio data output processor 901 and transmitted to, for example, another terminal via the radio frequency circuit 904, or which is output to the memory 902 for further processing. The audio circuit 905 may also include an ear bud jack to provide communication of the peripheral ear bud with the terminal.
The input unit 906 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
A power supply 907 is used to power the various components of terminal 900. Alternatively, the power supply 907 may be logically connected to the processor 901 through a power management system, so as to implement functions of managing charging, discharging, and power consumption management through the power management system. The power supply 907 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown in fig. 16, the terminal 900 may further include a camera, a sensor, a wireless fidelity module, a bluetooth module, etc., which will not be described herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a computer readable storage medium having stored therein a plurality of computer programs that can be loaded by a processor to perform the steps in any of the server operation management methods provided by the embodiment of the present application. For example, the computer program may perform the steps of:
displaying a plurality of candidate servers on the graphical user interface;
responding to a first selection operation acted on the graphical user interface, determining a target server corresponding to the first selection operation from the plurality of candidate servers, and displaying an operation interface corresponding to the target server;
Responding to an execution request acted on the operation interface, generating a command execution path of the target server, and sending the command execution path to the target server;
and receiving an execution log sent by the target server, wherein the execution log is generated after the target server executes the command execution path. And
acquiring a command execution path of a target server, wherein a parameter placeholder of an operation to be executed is arranged in the command execution path;
acquiring the actual parameters of the operation to be executed, and replacing the parameters in the parameter placeholders with the actual parameters;
setting the working state of the target server as an execution state;
executing the command execution path and generating an execution log for executing the command execution path.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The foregoing describes in detail a server operation management method, device, terminal, server and storage medium provided in the embodiments of the present application, and specific examples are applied to illustrate the principles and embodiments of the present application, where the foregoing examples are only used to help understand the method and core idea of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.

Claims (12)

1. The server operation management method is applied to a terminal, the terminal is deployed with an application for server operation management, and a graphical user interface is provided when the terminal runs the application, and the method is characterized by comprising the following steps:
presetting operation information to be executed of each candidate server, wherein the operation information to be executed comprises a plurality of operations to be executed;
setting available instructions corresponding to the plurality of operations to be executed;
setting instruction configuration corresponding to the available instructions, wherein the instruction configuration comprises an execution catalog of the available instructions and a target object corresponding to the available instructions;
displaying a plurality of candidate servers on the graphical user interface, and identifying information corresponding to each candidate server, wherein the identifying information comprises names, occupation conditions, server time, code versions, code branches, file editing controls corresponding to the candidate servers and execution operation controls corresponding to the candidate servers;
responding to a first selection operation acted on the graphical user interface, determining a target server corresponding to the first selection operation from the plurality of candidate servers, and displaying an operation interface corresponding to the target server;
Responding to an execution request acted on the operation interface, generating a command execution path of the target server, and sending the command execution path to the target server;
and receiving an execution log sent by the target server, wherein the execution log is generated after the target server executes the command execution path.
2. The server operation management method according to claim 1, further comprising, after the target server corresponding to the first selection operation is determined from the plurality of candidate servers in response to the first selection operation acting on the graphical user interface:
responding to touch operation of a file editing control corresponding to the target server, and generating a file editing window;
responding to a second selection operation acted on the file editing window, and determining a target file corresponding to the second selection operation from a plurality of files displayed on the file editing window;
sending an acquisition instruction of a file command execution path of the target file to the target server;
and receiving a file execution log generated by the target server executing the file command execution path.
3. The server operation management method is characterized by being applied to a target server, wherein the target server is a first selection operation of a terminal responding to a plurality of candidate servers displayed on a graphical user interface and identification information corresponding to each candidate server, the identification information comprises names, occupation conditions, server time, code versions, code branches, file editing controls corresponding to the candidate servers and execution operation controls corresponding to the candidate servers, wherein the servers are determined from the plurality of candidate servers and correspond to the first selection operation, and the execution operation controls corresponding to the candidate servers comprise:
receiving a command execution path of a target server sent by a terminal, wherein the command execution path comprises a file path of the target server and an operation to be executed, and the command execution path is a command execution path of the target server generated by an execution request on an operation interface corresponding to the target server, which is displayed by the terminal after the target server is determined;
acquiring a file path of the target server and instruction configuration of the operation to be executed;
generating a target server path according to the file path of the target server, and generating an operation path to be executed according to instruction configuration corresponding to the operation to be executed, wherein a parameter placeholder of the operation to be executed is arranged in the instruction execution path;
Acquiring the actual parameters of the operation to be executed, and replacing the parameters of the parameter placeholders with the actual parameters;
setting the working state of the target server as an execution state;
executing the command execution path through a target process;
starting a corresponding process according to the command execution path, and recording a process identifier of the process, wherein the command execution path corresponds to the process one by one;
recording the execution process of the process through an execution log, and sending the execution process in the execution log to a terminal corresponding to the target server.
4. The server operation management method according to claim 3, further comprising, after the generating the target server path according to the file path of the target server and generating the operation path to be executed according to the instruction configuration corresponding to the operation to be executed:
judging whether the command execution path exists or not;
and if the command execution path does not exist, generating error reporting prompt information.
5. The server operation management method according to claim 3, wherein after the setting the operation state of the target server to the execution state, further comprising:
And generating an execution notice based on the execution state, and sending the execution notice to a target object.
6. The server operation management method according to claim 5, wherein after the execution of the command execution path and the generation of the execution log for executing the command execution path, further comprising:
closing the process, and clearing a process identifier corresponding to the process;
and recording the closing process of the process into the execution log.
7. The server operation management method according to claim 3, wherein the executing the command execution path and generating an execution log for executing the command execution path, comprises:
judging whether the executing process of executing the command executing path reports errors or not;
if the execution process of executing the command execution path does not report errors, generating an execution success notification, sending the execution success notification to a target object, and resetting the state of the target server; or alternatively
If the execution process of executing the command execution path has errors, generating an execution failure notification, sending the execution failure notification to a target object, and resetting the state of the target server.
8. A server operation management apparatus for executing the server operation management method according to any one of claims 1 and 2, applied to a terminal deployed with an application for server operation management, the terminal providing a graphical user interface when running the application, comprising:
the display unit is used for presetting operation information to be executed of each candidate server, wherein the operation information to be executed comprises a plurality of operations to be executed;
setting available instructions corresponding to the plurality of operations to be executed;
setting instruction configuration corresponding to the available instructions, wherein the instruction configuration comprises an execution catalog of the available instructions and a target object corresponding to the available instructions;
displaying a plurality of candidate servers on a graphical user interface, and identifying information corresponding to each candidate server, wherein the identifying information comprises names, occupation conditions, server time, code versions, code branches, file editing controls corresponding to the candidate servers and execution operation controls corresponding to the candidate servers;
a determining unit, configured to determine a target server corresponding to a first selection operation from the plurality of candidate servers in response to the first selection operation acting on the graphical user interface, and display an operation interface corresponding to the target server;
The generating unit is used for responding to the execution request acted on the operation interface, generating a command execution path of the target server and sending the command execution path to the target server;
and the receiving unit is used for receiving the execution log sent by the target server, wherein the execution log is generated after the target server executes the command execution path.
9. A server operation management apparatus that performs the server operation management method according to any one of claims 3 to 7, applied to a target server that is a server corresponding to a first selection operation of a terminal in response to a plurality of candidate servers displayed on a graphical user interface and identification information corresponding to each candidate server, the identification information including a name, an occupancy, a server time, a code version, a code branch, a file editing control corresponding to the candidate server, an execution operation control corresponding to the candidate server, and the server corresponding to the first selection operation, determined from the plurality of candidate servers, comprising:
receiving a command execution path of a target server sent by a terminal, wherein the command execution path comprises a file path of the target server and an operation to be executed, and the command execution path is a command execution path of the target server generated by an execution request on an operation interface corresponding to the target server, which is displayed by the terminal after the target server is determined;
The acquisition unit is used for acquiring the file path of the target server and the instruction configuration of the operation to be executed;
generating a target server path according to the file path of the target server, and generating an operation path to be executed according to instruction configuration corresponding to the operation to be executed, wherein a parameter placeholder of the operation to be executed is arranged in the instruction execution path;
the input unit is used for acquiring the actual parameters of the operation to be executed and replacing the parameters in the parameter placeholders with the actual parameters;
the setting unit is used for setting the working state of the target server to be an execution state;
the execution unit is used for executing the command execution path through the target process;
starting a corresponding process according to the command execution path, and recording a process identifier of the process, wherein the command execution path corresponds to the process one by one;
recording the execution process of the process through an execution log, and sending the execution process in the execution log to a terminal corresponding to the target server.
10. A terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the server operation management method according to any one of claims 1 and 2 when the computer program is executed by the processor.
11. A server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the server operation management method according to any of claims 3-7 when the computer program is executed by the processor.
12. A storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the server operation management method according to any of claims 1-7.
CN202110184426.7A 2021-02-08 2021-02-08 Server operation management method, device, terminal, server and storage medium Active CN112988482B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110184426.7A CN112988482B (en) 2021-02-08 2021-02-08 Server operation management method, device, terminal, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110184426.7A CN112988482B (en) 2021-02-08 2021-02-08 Server operation management method, device, terminal, server and storage medium

Publications (2)

Publication Number Publication Date
CN112988482A CN112988482A (en) 2021-06-18
CN112988482B true CN112988482B (en) 2023-12-12

Family

ID=76393128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110184426.7A Active CN112988482B (en) 2021-02-08 2021-02-08 Server operation management method, device, terminal, server and storage medium

Country Status (1)

Country Link
CN (1) CN112988482B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630443A (en) * 2021-07-16 2021-11-09 深圳市元征未来汽车技术有限公司 Service management method, device, server and medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005010875A (en) * 2003-06-17 2005-01-13 Ricoh Co Ltd Method for operating file having configuration to be managed in software configuration management system and program for operating this file and computer-readable recording medium with this program recorded thereon
US7117259B1 (en) * 2000-03-03 2006-10-03 International Business Machines Corporation Server time window for multiple selectable servers in a graphical user interface
CN102638486A (en) * 2011-02-15 2012-08-15 鸿富锦精密工业(深圳)有限公司 Log file processing system and method
CN103744695A (en) * 2013-12-25 2014-04-23 新浪网技术(中国)有限公司 Method and system for operating system remote installation on basis of PXE
CN107577469A (en) * 2017-08-21 2018-01-12 厦门悦讯教育科技有限公司 A kind of Software package method for release management
CN107992337A (en) * 2017-10-19 2018-05-04 用友网络科技股份有限公司 Method, the system of cross-system remote deployment operation system
CN108965480A (en) * 2018-09-07 2018-12-07 平安科技(深圳)有限公司 Cloud desktop login management-control method, device and computer readable storage medium
CN110162451A (en) * 2019-04-22 2019-08-23 腾讯科技(深圳)有限公司 A kind of method for analyzing performance, device, server and storage medium
CN110336695A (en) * 2019-06-21 2019-10-15 威富通科技有限公司 A kind of method and server of deployment and maintenance application
CN111800295A (en) * 2020-06-23 2020-10-20 四川虹美智能科技有限公司 Server audit management method, device and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070214178A1 (en) * 2006-03-13 2007-09-13 Sheffler Thomas J Multi-project verification environment
US8918449B2 (en) * 2011-11-20 2014-12-23 Bhupendra Mohanlal PATEL Terminal user-interface client for managing multiple servers in hybrid cloud environment
JP2017107357A (en) * 2015-12-09 2017-06-15 セイコーエプソン株式会社 Control device, control method for the same, server, and network system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7117259B1 (en) * 2000-03-03 2006-10-03 International Business Machines Corporation Server time window for multiple selectable servers in a graphical user interface
JP2005010875A (en) * 2003-06-17 2005-01-13 Ricoh Co Ltd Method for operating file having configuration to be managed in software configuration management system and program for operating this file and computer-readable recording medium with this program recorded thereon
CN102638486A (en) * 2011-02-15 2012-08-15 鸿富锦精密工业(深圳)有限公司 Log file processing system and method
CN103744695A (en) * 2013-12-25 2014-04-23 新浪网技术(中国)有限公司 Method and system for operating system remote installation on basis of PXE
CN107577469A (en) * 2017-08-21 2018-01-12 厦门悦讯教育科技有限公司 A kind of Software package method for release management
CN107992337A (en) * 2017-10-19 2018-05-04 用友网络科技股份有限公司 Method, the system of cross-system remote deployment operation system
CN108965480A (en) * 2018-09-07 2018-12-07 平安科技(深圳)有限公司 Cloud desktop login management-control method, device and computer readable storage medium
CN110162451A (en) * 2019-04-22 2019-08-23 腾讯科技(深圳)有限公司 A kind of method for analyzing performance, device, server and storage medium
CN110336695A (en) * 2019-06-21 2019-10-15 威富通科技有限公司 A kind of method and server of deployment and maintenance application
CN111800295A (en) * 2020-06-23 2020-10-20 四川虹美智能科技有限公司 Server audit management method, device and system

Also Published As

Publication number Publication date
CN112988482A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
US10831453B2 (en) Connectors framework
CN108205467A (en) The intelligence auxiliary of repetitive operation
CN103729425B (en) Operate response method, client, browser and system
JP5489807B2 (en) Information processing apparatus, form data creation method, and computer program
CN100530085C (en) Method and apparatus for implementing a virtual push-to-talk function
US20210337015A1 (en) Method and system of application development for multiple device client platforms
CN104035683B (en) A kind of communicating terminal split screen multi-task interaction method
CN103365840A (en) Web-based screenshot taking method and device
CN101662463A (en) Device and method for customizing service flow for user
CN112988482B (en) Server operation management method, device, terminal, server and storage medium
CN111914072A (en) Information interaction method, equipment and device
CN102243576A (en) Image forming apparatus and image forming method
CN113535541A (en) Test method, test device, storage medium and computer equipment
CN116112457A (en) Method, device, computer equipment and storage medium for notifying message
CN110275785A (en) Data processing method, device, client and server
CN108011964A (en) Picture upload method, device, electric terminal and readable storage medium storing program for executing
JP2007122691A (en) Information processor, information processing method and program
CN114610446A (en) Method, device and system for automatically injecting probe
CN116225286A (en) Page jump control method, operating system, electronic device and storage medium
CN111880698A (en) Information processing method and device of intelligent terminal, electronic equipment and storage medium
US9122519B1 (en) Governor for elimination of repetitive requests
CN114328272B (en) Application testing method, device and system and electronic equipment
CN114466401B (en) Image transmission method and electronic equipment
CN113868299A (en) Data processing method executed by rule engine and device of rule engine
CN115174504A (en) Interface display method, terminal 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