Disclosure of Invention
In view of this, embodiments of the present invention provide a method and a server for processing a file, where a target function button capable of implementing at least one target function is disposed on the server, and a response is made to a trigger of the target function button, so as to determine whether a target function to be executed is a cleaning function or a recovery function, and implement a corresponding target function, so that the server can meet more requirements, and further expand a usage scenario of the server.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method of file processing.
The file processing method is applied to a server, a target function button is arranged on the server, and at least one target function is configured on the target function button; the method comprises the following steps:
in response to the target function button being triggered, determining a target function to be executed according to trigger information corresponding to the triggered target function;
under the condition that the target function to be executed is a cleaning function, determining a first file to be processed corresponding to the cleaning function according to a file storage path, a file type and/or effective time of the file indicated in the cleaning configuration file, and cleaning the first file to be processed;
and under the condition that the target function to be executed is a recovery function, reading a second file to be processed from the storage space, and configuring the server according to the second file to be processed.
Alternatively,
the server is provided with a plurality of target function buttons which are respectively corresponding to different target functions.
Alternatively,
when the target function button corresponds to the cleaning function and is a physical button, the target function button is arranged on a mainboard of the server, and the target function button is not shown on the outer side of a case of the server.
Alternatively,
when the target function button corresponds to the resume function and the target function button is a physical button, the target function button is disposed on a rear panel of the server.
Alternatively,
the method further comprises the following steps:
and generating a cleaning configuration file according to a storage path corresponding to at least one test task on the server, the file type generated by the test task and/or the running time of the test task.
Alternatively,
in the case where the target function to be executed is a resume function, the method further includes:
outputting a configuration prompt about configuring the server according to the second file to be processed;
and responding to the received confirmation information aiming at the configuration prompt, and executing the configuration of the server according to the second file to be processed according to the confirmation information.
Alternatively,
under the condition that each target function button corresponds to a plurality of target functions, each target function corresponds to a different trigger time threshold and/or trigger duration threshold;
determining a target function to be executed according to trigger information corresponding to the trigger target function, wherein the method comprises the following steps:
and determining the target function to be executed corresponding to the trigger information according to the trigger time threshold and/or the trigger time threshold which are met by the continuous trigger times and/or the continuous trigger time length indicated by the trigger information.
Alternatively,
the target function buttons are virtual buttons, and each target function button corresponds to a trigger authority; the method further comprises the following steps:
acquiring authentication information of a user, and determining the use authority of the user according to the authentication information;
and when the use permission is matched with the trigger permission, displaying a virtual button on a functional interface of the server.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided a server.
A server of the embodiment of the invention is provided with a target function button, and the target function button is configured with at least one target function; the server comprises a target function determining module, a cleaning module and a configuration module; wherein:
the target function determining module is used for responding to the triggering of the target function button and determining a target function to be executed according to triggering information corresponding to the triggered target function;
the cleaning module is used for determining a first file to be processed corresponding to the cleaning function according to the file storage path, the file type and/or the effective time of the file indicated in the cleaning configuration file under the condition that the target function to be executed is the cleaning function, and cleaning the first file to be processed;
and the configuration module is used for reading the second file to be processed from the storage space and configuring the server according to the second file to be processed under the condition that the target function to be executed is the recovery function.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided an electronic device for file processing.
An electronic device for file processing according to an embodiment of the present invention includes: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by one or more processors, the one or more processors realize the file processing method of the embodiment of the invention.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided a computer-readable storage medium.
A computer-readable storage medium of an embodiment of the present invention has a computer program stored thereon, and when the program is executed by a processor, implements a method of file processing of an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: the server is provided with a target function button capable of realizing at least one target function, the target function button can be triggered to respond, whether the target function to be executed is a cleaning function or a recovery function is determined, and the corresponding target function is realized, so that the server can meet more requirements, and the use scene of the server is further expanded.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments of the present invention and the technical features of the embodiments may be combined with each other without conflict.
Fig. 1 is a schematic diagram of main steps of a method of file processing according to an embodiment of the present invention.
As shown in fig. 1, a method for processing a file according to an embodiment of the present invention is applied to a server, where a target function button is disposed on the server, and the target function button is configured with at least one target function; the method mainly comprises the following steps:
step S101: and responding to the triggering of the target function button, and determining the target function to be executed according to the triggering information corresponding to the triggered target function.
In the embodiment of the present invention, the server may be provided with a plurality of target function buttons, and the plurality of target function buttons respectively correspond to different target functions. For example, a reset button corresponding to a reset function, a switch button corresponding to a switch function, a one-key-clear button corresponding to a clear function, a one-key-restore button corresponding to a restore function, and the like may be provided on the server.
In the embodiment of the present invention, one target function button may correspond to one target function, and may also correspond to a plurality of target functions, and this scheme is not particularly limited.
In the embodiment of the present invention, under the condition that each target function button corresponds to a plurality of target functions, each target function may correspond to a different trigger time threshold and/or trigger duration threshold; at this time, the process of determining the target function to be executed according to the trigger information corresponding to the trigger target function may include: and determining the target function to be executed corresponding to the trigger information according to the trigger time threshold and/or the trigger time threshold which are met by the continuous trigger times and/or the continuous trigger time length indicated by the trigger information.
For example, the server may be provided with a target function button, and the target function button corresponds to four target functions, i.e., a switch, a reset, a cleaning, and a recovery function, where the trigger time threshold corresponding to the switch function and the target function button is four times, the trigger time threshold corresponding to the reset function and the cleaning function is two times, and the trigger time threshold corresponding to the recovery function and the recovery function is one time. Based on this, the server executes the recovery function when the user presses the target function button once; the user continuously presses the target function button twice, and then the server executes a cleaning function; if the user presses the target function button three times continuously, the server executes the reset function; the user presses the target function button four times in succession, and the server performs the switching function.
Further, when each target function button corresponds to a plurality of target functions and each target function corresponds to a different trigger time threshold, the server may pop up a confirmation operation reminder on the function interface connected to the server after monitoring the trigger time of the user, so as to confirm whether the monitored trigger time is correct, and prevent the server from executing a function contrary to the user's will due to user operation errors or poor operation of the target function buttons. For example, after monitoring the number of times of triggering of the user, the server determines a target function to be executed corresponding to the number of times of triggering, and pops up a confirmation operation reminder on a function interface connected to the server, where the confirmation operation reminder may be: the function to be triggered at present is ". star", wherein ". star" is the name of a target function to be executed, if a target function button is pressed for a short time or the target function button is not triggered within 5 seconds, the corresponding operation is confirmed, and if the target function button is pressed for more than 3 seconds, the corresponding operation is cancelled; the confirmation operation reminder may also be: if the user presses the target function button or the target function button is not triggered within 5 seconds, the corresponding operation is confirmed, and if the user continuously presses the target function button more than twice, the corresponding operation is cancelled. The specific content of the operation prompt is confirmed, and the scheme is not particularly limited.
In addition, each target function may also correspond to a different trigger duration threshold. For example, the trigger duration threshold corresponding to the switch function and the target function button is four seconds, the trigger duration threshold corresponding to the reset function is three seconds, the trigger duration threshold corresponding to the cleaning function is two seconds, and the trigger duration threshold corresponding to the recovery function is one second. Based on this, if the user presses the target function button for one second, the server executes the recovery function; the user presses the target function button for two seconds, and then the server executes the cleaning function; the user presses the target function button for three seconds, and then the server executes the reset function; the user presses the target function button for four seconds, and the server performs a switching function.
Further, when each target function button corresponds to a plurality of target functions and each target function corresponds to a different trigger time threshold, the server may pop up a confirmation operation reminder on the function interface connected to the server after monitoring the trigger time of the user, so as to confirm whether the monitored trigger time is correct or not, and prevent the server from executing a function contrary to the user's intention due to a second reading error of the user or poor operation of the target function button. For example, after monitoring the trigger duration of the user, the server determines the target function to be executed corresponding to the trigger duration, and pops up a confirmation operation reminder on a function interface connected to the server, where the confirmation operation reminder may be: the function to be triggered at present is ". star", wherein ". star" is the name of a target function to be executed, if a target function button is pressed for a short time or the target function button is not triggered within 5 seconds, the corresponding operation is confirmed, and if the target function button is pressed for more than 3 seconds, the corresponding operation is cancelled; the confirmation operation reminder may also be: if the user presses the target function button or the target function button is not triggered within 5 seconds, the corresponding operation is confirmed, and if the user continuously presses the target function button more than twice, the corresponding operation is cancelled. The specific content of the operation prompt is confirmed, and the scheme is not particularly limited.
Step S102: and under the condition that the target function to be executed is a cleaning function, determining a first file to be processed corresponding to the cleaning function according to a file storage path, a file type and/or the effective time of the file indicated in the cleaning configuration file, and cleaning the first file to be processed.
In the embodiment of the present invention, when the target function button corresponds to the cleaning function and is a physical button, the target function button may be disposed on a motherboard of the server, and the target function button is not displayed outside a chassis of the server.
As shown in fig. 2, in a preferred embodiment of the present invention, three target function buttons are provided on the main board of the server, which are respectively: a reset button RST corresponding to a reset function, a switch button PWR corresponding to a switch function, and a one-key clear button OCD corresponding to a clear function. The OCD is not led out through the case, and the OCD is mainly used for development and testers to clean the server, so that the error triggering of users in the daily use process is avoided, meanwhile, the development and testers can realize the one-key cleaning function of the test files by triggering the one-key cleaning button according to actual requirements, the recovery efficiency and the operation convenience of the development and testers during testing are improved, and the OCD is favorable for solving the problems of unloading of test software and testing left-over records, junk files and the like after the development and testers complete the testing acceptance of the server.
In an embodiment of the present invention, a method for determining and executing a cleaning function is shown in fig. 3, and the method mainly includes the following steps:
step S301: performing patrol inspection through the CPU to detect whether a target function button corresponding to a cleaning function is triggered;
step S302: starting a cleaning program when a target function button corresponding to a cleaning function is detected to be triggered through a CPU, wherein the cleaning program indicates a corresponding cleaning configuration file;
step S303: determining a first file to be processed according to a file storage path, a file type and/or effective time of the file indicated in the cleaning configuration file;
step S304: cleaning a first file to be processed to execute a cleaning task in a cleaning configuration file;
step S305: and when the cleaning program is executed, quitting the cleaning program, and returning to execute the step S301.
In the embodiment of the invention, the cleaning program can be saved in the protection partition, so that the cleaning program is prevented from being deleted by a user or cleaning software.
In the embodiment of the invention, the cleaning configuration file can be configured by development and test personnel, and the development and test personnel can list all programs and file records which are irrelevant to the use of a user and need to be cleaned into the cleaning configuration file according to the system test process.
In the embodiment of the present invention, the cleaning configuration file may also be automatically generated, and specifically, the cleaning configuration file may be generated according to a storage path corresponding to at least one test task on the server, a file type generated by the test task, and/or a running time of the test task.
In the embodiment of the invention, the first file to be processed is a test temporary file and can be stored on any disk.
Step S103: and under the condition that the target function to be executed is a recovery function, reading a second file to be processed from the storage space, and configuring the server according to the second file to be processed.
In the embodiment of the present invention, when the target function button corresponds to the resume function and the target function button is a physical button, the target function button may be disposed on the rear panel of the server.
As shown in fig. 4, in a preferred embodiment of the present invention, a one-touch restore button OKR corresponding to a restore function is provided on the back panel of the server. The one-key recovery button is mainly used for recovering the system when a user uses the server, so that factory recovery can be quickly realized after user parameter setting is wrong or the system crashes, time is saved, and risks of the user in installing and using the system are reduced. The one-key recovery button is arranged on the rear side panel of the server, so that the server can be conveniently used by a user, and is hidden in position and not easy to be touched by the user by mistake.
In the embodiment of the invention, the one-key recovery button can also be arranged at the edge position of the mainboard, and a more hidden position is reserved outside through the case.
In the embodiment of the present invention, in a case that the target function to be executed is a resume function, the method further includes: outputting a configuration prompt about configuring the server according to the second file to be processed; and responding to the received confirmation information aiming at the configuration prompt, and executing the configuration of the server according to the second file to be processed according to the confirmation information.
In an embodiment of the present invention, a method for determining and executing a recovery function is shown in fig. 5, and the method mainly includes the following steps:
step S501: performing polling through a CPU to detect whether a target function button corresponding to the recovery function is triggered;
step S502: starting a recovery program when detecting that a target function button corresponding to a recovery function is triggered by a CPU;
step S503: outputting a configuration prompt about configuring the server according to the second file to be processed on a functional interface connected with the server, and receiving a response corresponding to the configuration prompt;
step S504: when receiving confirmation information for the configuration prompt in response to the receiving, reading a preset second file to be processed from the storage space;
step S505: modifying the current configuration of the server according to a preset second file to be processed to obtain the modified current configuration;
step S506: the server is restarted to validate the modified current configuration and returns to perform step S501.
In the above embodiment, the second file to be processed is a system configuration file related to the operation of the server system, and when the target function button corresponding to the recovery function is triggered, the server may automatically determine the related system configuration file, and configure the server according to the system configuration file, thereby implementing a one-key recovery function for the server, and thus implementing quick recovery of problems such as parameter setting errors occurring in the server use process by a user or system paralysis caused by improper system use.
In an embodiment of the present invention, the recovery program may be saved in the protected partition, thereby avoiding deletion by a user or cleaning software.
In the embodiment of the present invention, after the recovery program is started, a configuration prompt for configuring the server according to the second file to be processed is first output on a functional interface connected to the server, and a response corresponding to the configuration prompt is received. Similar to mechanical hidden safety operation, a layer of misoperation precaution is added to avoid unintended recovery. If the recovery is not intended, the user can respond to rejection information according to the configuration prompt, at this time, the server receives the rejection information, and then quits the recovery program, and the recovery function is not executed any more.
In the embodiment of the present invention, the second file to be processed is an operating system-related file, and may be stored on a system disk.
In the embodiment of the present invention, the target function button may be not only an entity button but also a virtual button. When the target function buttons are virtual buttons, each target function button corresponds to a trigger authority; at the moment, authentication information of the user can be further acquired, and the use authority of the user is determined according to the authentication information; and only when the use permission is matched with the trigger permission, displaying a virtual button on a functional interface of the server so as to further improve the safety of the operation of the server.
According to the file processing method provided by the embodiment of the invention, the server is provided with the target function button capable of realizing at least one target function, the response can be made according to the triggering of the target function button, whether the target function to be executed is a cleaning function or a recovery function is determined, and the corresponding target function is realized, so that the server can meet more requirements, and the use scene of the server is further expanded. And moreover, the quick operation buttons corresponding to the cleaning function and the recovery function are added on the server mainboard, and the special functions related to cleaning and recovery are quickly executed by combining the special programs in the system protection partition, so that the quick cleaning of the junk files and the system recovery are realized.
Fig. 6 is a schematic diagram of main modules of a server according to an embodiment of the present invention.
As shown in fig. 6, a server 600 according to an embodiment of the present invention is provided with a target function button, and the target function button is configured with at least one target function; the server 600 comprises a target function determining module 601, a cleaning module 602 and a configuration module 603; wherein:
a target function determining module 601, configured to determine, in response to the target function button being triggered, a target function to be executed according to trigger information corresponding to the triggered target function;
a cleaning module 602, configured to, when the target function to be executed is a cleaning function, determine, according to a file storage path, a file type, and/or an effective time of a file indicated in a cleaning configuration file, a first file to be processed corresponding to the cleaning function, and clean the first file to be processed;
the configuration module 603 is configured to, when the target function to be executed is a recovery function, read a second file to be processed from the storage space, and configure the server according to the second file to be processed.
In the embodiment of the present invention, the server 600 is provided with a plurality of target function buttons, and the plurality of target function buttons respectively correspond to different target functions.
In the embodiment of the present invention, when the target function button corresponds to the cleaning function and is a physical button, the target function button is disposed on the motherboard of the server, and the target function button is not displayed outside the chassis of the server 600.
In the embodiment of the present invention, when the target function button corresponds to the resume function and the target function button is a physical button, the target function button is disposed on the rear panel of the server 600.
In an embodiment of the present invention, the cleaning module 602 is further configured to: and generating a cleaning configuration file according to a storage path corresponding to at least one test task on the server, the file type generated by the test task and/or the running time of the test task.
In this embodiment of the present invention, the configuration module 603 is further configured to: outputting a configuration prompt about configuring the server according to the second file to be processed; and responding to the received confirmation information aiming at the configuration prompt, and executing the configuration of the server according to the second file to be processed according to the confirmation information.
In the embodiment of the invention, under the condition that each target function button corresponds to a plurality of target functions, each target function corresponds to a different trigger time threshold and/or trigger duration threshold; the target function determination module 601 is further configured to: and determining the target function to be executed corresponding to the trigger information according to the trigger time threshold and/or the trigger time threshold which are met by the continuous trigger times and/or the continuous trigger time length indicated by the trigger information.
In the embodiment of the invention, the target function buttons are virtual buttons, and each target function button corresponds to a trigger authority; the target function determination module 601 is further configured to: acquiring authentication information of a user, and determining the use authority of the user according to the authentication information; and when the use permission is matched with the trigger permission, displaying a virtual button on a functional interface of the server.
According to the server provided by the embodiment of the invention, the target function button capable of realizing at least one target function is arranged on the server, the response can be made according to the triggering of the target function button, whether the target function to be executed is a cleaning function or a recovery function is determined, and the corresponding target function is realized, so that the server can meet more requirements, and the use scene of the server is further expanded.
Fig. 7 illustrates an exemplary system architecture 700 of a server or a method of file processing to which embodiments of the present invention may be applied.
As shown in fig. 7, the system architecture 700 may include terminal devices 701, 702, 703, a network 704 and an electronic device 705. Network 704 is used to provide a medium for communication links between terminal devices 701, 702, 703 and electronic device 705. Network 704 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 701, 702, 703 to interact with the electronic device 705 over the network 704 to receive or send messages or the like. Various communication client applications, such as shopping applications, web browser applications, search applications, instant messaging tools, mailbox clients, social platform software, and the like, may be installed on the terminal devices 701, 702, and 703.
The terminal devices 701, 702, 703 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The electronic device 705 may be an electronic device that provides various services, such as a background management electronic device that provides support for shopping websites browsed by users using the terminal devices 701, 702, and 703. The background management electronic device may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (e.g., target push information and product information) to the terminal device.
It should be understood that the number of terminal devices, networks, and electronic devices in fig. 7 is merely illustrative. There may be any number of terminal devices, networks, and electronic devices, as desired for implementation.
Referring now to FIG. 8, shown is a block diagram of a computer system 800 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 8, the computer system 800 includes a Central Processing Unit (CPU)801 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the system 800 are also stored. The CPU 801, ROM 802, and RAM 803 are connected to each other via a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
The following components are connected to the I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program executes the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 801.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a target function determination module, a cleaning module, and a configuration module. The names of the modules do not constitute a limitation to the modules themselves in some cases, for example, the target function determining module may also be described as "a module for determining a target function to be executed according to trigger information corresponding to a triggered target function in response to a target function button being triggered".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: in response to the target function button being triggered, determining a target function to be executed according to trigger information corresponding to the triggered target function; under the condition that the target function to be executed is a cleaning function, determining a first file to be processed corresponding to the cleaning function according to a file storage path, a file type and/or effective time of the file indicated in the cleaning configuration file, and cleaning the first file to be processed; and under the condition that the target function to be executed is a recovery function, reading a second file to be processed from the storage space, and configuring the server according to the second file to be processed.
According to the technical scheme of the embodiment of the invention, the server is provided with the target function button capable of realizing at least one target function, the target function button can be triggered to respond, whether the target function to be executed is a cleaning function or a recovery function is determined, and the corresponding target function is realized, so that the server can meet more requirements, and the use scene of the server is further expanded.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.