Server command line operation method and device, equipment, storage medium and product
By loading the console program on the Linux server and integrating the function menu, the problem of the complexity and inefficiency of traditional operation and maintenance methods is solved, and the effect of simplifying the operating process and improving operation and maintenance efficiency is achieved.
Patent Information
- Application Number
- CN202510612577.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-13
- Publication Date
- 2025-09-16
AI Technical Summary
The existing Linux server operation and maintenance method relies on command line instructions, which leads to learning barriers for non-professionals, complex, time-consuming and error-prone operations, and a lack of integrated management entry, which reduces operation and maintenance efficiency and increases maintenance costs.
Provides a server command line operation method, which obtains the console program to load and display the homepage, integrates the device status display and QR code generation module, receives user instructions to call the preset function menu, performs corresponding operations, and integrates network configuration, system settings and other functions into a unified console interface.
It simplifies the server operation and maintenance process, lowers the technical threshold, improves operation and maintenance efficiency and user experience, reduces errors, and enhances information sharing and remote management capabilities.
Smart Images

Figure CN120653339A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer system management technology, and in particular to server command line operation methods, devices, equipment, storage media and products. Background Art
[0002] Currently, Linux server operations require users to log in through a terminal and then enter commands on the command line to complete operations. For example, configuring the network requires manually editing the network configuration file and executing a command to restart the network service. Checking the service status requires entering commands such as systemctl status [service name].
[0003] Although some tools offer graphical user interfaces, these tools rely on a desktop environment, consume system resources, and are not suitable for server farms without graphics. Furthermore, this traditional operation and maintenance approach has significant drawbacks: Because it relies heavily on command-line instructions, it requires users to be fairly familiar with Linux commands, which poses a significant learning barrier for non-professionals and makes daily management and troubleshooting complex and time-consuming. Before each operation can be performed, users must first log in to the system before executing specific commands. This process is lengthy and error-prone, especially when similar operations need to be performed frequently. Different management tasks are distributed across separate commands or configuration files, lacking an integrated management portal. This approach reduces operation and maintenance efficiency, increases maintenance costs, and can lead to configuration errors. Summary of the Invention
[0004] The main purpose of this application is to provide a server command line operation method, device, equipment, storage medium and product, aiming to solve the technical problem of how to simplify the server operation and maintenance process and improve the server operation and maintenance efficiency.
[0005] To achieve the above objectives, the present application proposes a server command line operation method, which includes:
[0006] Obtaining a console program, and loading and displaying a homepage based on the console program;
[0007] receiving a calling instruction input by a user in the displayed homepage, and calling a preset function menu based on the calling instruction;
[0008] Execute corresponding function operations based on the preset function menu.
[0009] In one embodiment, after the steps of obtaining a console program and loading and displaying a homepage based on the console program, the following steps are included:
[0010] Integrate the device status display module and the QR code generation module through the display homepage;
[0011] The QR code generation module is called to generate a preset QR code, wherein the preset QR code is configured to be scanned by an external device and then jump to a small program for local device management to access the status information or remote management interface of the local device.
[0012] In one embodiment, the step of performing a corresponding function operation based on the preset function menu includes:
[0013] Displaying the preset function menu to the user through the display homepage;
[0014] Based on the function number selected by the user in the function menu module, the corresponding function operation is executed.
[0015] In one embodiment, the step of executing the corresponding function operation based on the function number selected by the user in the function menu module includes:
[0016] If the user selects a first function serial number in the function menu module, the network card information is read, and a corresponding network card operation is performed according to the network card number selected by the user based on the network card information;
[0017] If the user selects a second function serial number in the function menu module, device control is executed or the preset QR code is set;
[0018] If the user selects the third function serial number in the function menu module, the relevant tool is called to perform the corresponding management operation;
[0019] If the user selects the fourth function serial number in the function menu module, an account type login option is displayed to the user.
[0020] In one embodiment, if the user selects the first function serial number in the function menu module, the steps of reading the network card information and performing the corresponding network card operation according to the network card number selected by the user based on the network card information include:
[0021] Displaying the network card information to the user, and receiving a corresponding network card number input by the user based on the network card information;
[0022] Enter the corresponding network card configuration operation interface based on the network card number;
[0023] Execute corresponding network card operations according to the network card operation instructions input by the user in the network card configuration operation interface.
[0024] In one embodiment, if the user selects the second function serial number in the function menu module, the step of executing device control or setting the preset QR code includes:
[0025] Entering a system setting interface based on the user selecting a second function serial number in the function menu module;
[0026] Receiving a device control instruction input by a user through the system setting interface;
[0027] If the device control instruction is a device restart / shutdown instruction, then the restart or shutdown operation is performed;
[0028] If the device control instruction is a display / close instruction for the preset QR code, display or hide the preset QR code;
[0029] If the device control instruction is to display the preset QR code instruction in full screen, the size of the preset QR code is adjusted based on the current screen resolution.
[0030] In addition, to achieve the above-mentioned purpose, the present application also proposes a server command line operation device, which includes:
[0031] A display module is used to obtain a console program and load and display a homepage based on the console program;
[0032] A calling module, configured to receive a calling instruction input by a user in the displayed homepage, and call a preset function menu based on the calling instruction;
[0033] The execution module is used to execute corresponding functional operations based on the preset function menu.
[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes a server command line operation device, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program is configured to implement the steps of the server command line operation method described above.
[0035] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and stores a computer program on the storage medium. When the computer program is executed by the processor, the steps of the server command line operation method described above are implemented.
[0036] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the steps of the server command line operation method described above.
[0037] This application proposes a server command line operation method, apparatus, device, storage medium, and product. The method comprises: obtaining a console program and, based on the console program, loading a display homepage; receiving a call instruction input by a user on the display homepage and, based on the call instruction, invoking a preset function menu; and executing a corresponding function operation based on the preset function menu. This solution integrates the control homepage and guides user input through the function menu. The system automatically matches and invokes underlying system commands based on the user input, which not only simplifies the server operation and maintenance process but also improves server operation and maintenance efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0040] Figure 1 This is a flowchart of the first embodiment of the server command line operation method for this application;
[0041] Figure 2 A schematic diagram of a homepage display provided in Example 1 of the present application;
[0042] Figure 3 A schematic diagram of a preset function menu provided in Example 1 of the present application;
[0043] Figure 4 A schematic diagram of the tool selection interface provided in Example 1 of the present application;
[0044] Figure 5 A schematic diagram of account type login options provided in Example 1 of this application;
[0045] Figure 6 This is a flowchart of the second embodiment of the server command line operation method of this application;
[0046] Figure 7 A schematic diagram of the network configuration interface provided in Example 2 of this application;
[0047] Figure 8 A schematic diagram of the configuration operation interface of the corresponding network card provided in Example 2 of this application;
[0048] Figure 9 A schematic diagram of the network configuration provided in Example 2 of this application;
[0049] Figure 10 This is a flowchart of the third embodiment of the server command line operation method of this application;
[0050] Figure 11 This is a schematic diagram of the module structure of the server command line operation device according to an embodiment of the present application;
[0051] Figure 12 This is a schematic diagram of the device structure of the hardware operating environment involved in the server command line operation method in the embodiment of the present application.
[0052] The purpose, features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0053] It should be understood that the specific embodiments described herein are merely used to explain the technical solutions of the present application and are not intended to limit the present application.
[0054] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0055] The main solution of the embodiment of the present application is: obtain a console program, and load a display homepage based on the console program; receive a call instruction entered by the user in the display homepage, and call a preset function menu based on the call instruction; and perform corresponding function operations based on the preset function menu.
[0056] In this embodiment, for ease of description, the following description is made with a Linux server as the execution entity.
[0057] Existing tools that provide graphical user interfaces (GUIs) rely on desktop environments, consume system resources, and are unsuitable for server farms without graphics. Furthermore, this traditional O&M approach has significant drawbacks: Because it relies heavily on command-line instructions, it requires users to be fairly familiar with Linux commands, which poses a significant learning barrier for non-professionals and makes daily management and troubleshooting complex and time-consuming. Each operation requires logging into the system before executing specific commands, a lengthy and error-prone process, especially when similar operations need to be performed frequently. Different management tasks are distributed across separate command lines or configuration files, lacking an integrated management portal. This approach reduces O&M efficiency, increases maintenance costs, and can lead to configuration errors.
[0058] This application provides a solution that allows the server to directly enter the console program upon startup, and integrates a function menu to guide user operations. Network configuration, system settings, and other functions can be performed without logging into the system, breaking through the traditional "login first, then operate" process limitation. This not only significantly lowers the technical threshold for server operation, but also allows users to complete operation and maintenance tasks without having to memorize and enter complex commands. At the same time, it integrates network configuration, system tools, account management, and other functions into a unified console interface, building a centralized, "one-stop" server management platform. Compared with the traditional decentralized command line operation method, it has higher integration and operational convenience.
[0059] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, mobile phone, etc., or an electronic device capable of performing the above functions. The following uses a personal computer as an example to illustrate this embodiment and the following embodiments.
[0060] Based on this, the embodiment of the present application provides a server command line operation method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the server command line operation method of this application.
[0061] In this embodiment, the server command line operation method includes steps S10 to S30:
[0062] Step S10, obtaining a console program, and loading and displaying a homepage based on the console program;
[0063] It should be noted that the console program is an application used for Linux server management. This program usually runs in a terminal environment, but can also have graphical interface elements.
[0064] In addition, it should be noted that the device status display module displays various status information of the server in real time, such as system startup time, system version, node ID, network status, IP, broadband status, console address and disk capacity, etc.
[0065] Specifically, when the Linux server is started, the console program is loaded and the home page is displayed. Figure 2 As shown, Figure 2This is a schematic diagram of the homepage. A device status display module is integrated into the homepage to generate local device status information. Alternatively, a QR code generation module can be used to generate a preset QR code and embed it in a designated area of the homepage. When a user scans the QR code using scanning software on another device (such as WeChat), the homepage will directly redirect to the local device management applet, allowing the user to query local device status information or access the remote management interface.
[0066] The console program obtained through the above steps simplifies the Linux server operation and maintenance process, allowing users to complete various operations without having to memorize complex commands. It also improves efficiency by integrating key functions and services into an easily accessible location. In addition, through functions such as QR code generation, information sharing and remote management capabilities are further enhanced.
[0067] Step S20, receiving a calling instruction input by the user in the displayed homepage, and calling a preset function menu based on the calling instruction;
[0068] It should be noted that the preset function menu refers to a pre-set menu containing multiple commonly used function options.
[0069] In this embodiment, after the user presses the enter key, an instruction to call the preset function menu is sent to the system. The server calls out the preset function menu according to the calling instruction and displays it to the user by displaying the homepage. Figure 3 As shown, Figure 3 The figure is a schematic diagram of the preset function menu. Figure 3 It can be seen that the preset function menu includes but is not limited to network configuration, system settings, tools, language switching, command line mode, and exit menu, etc. In addition, a serial number is used in front of each function to mark it.
[0070] Through the above steps, a pre-set menu guides user input, replacing the traditional command line input method. This allows even non-expert users to quickly get started and improves operational convenience. This approach not only lowers the barrier to entry for Linux server maintenance but also simplifies the process and reduces redundant steps. For users unfamiliar with complex command line operations, this intuitive and centralized menu system greatly enhances the user experience, enabling them to complete their tasks more efficiently. Furthermore, this approach reduces the potential for errors caused by manual command entry, further enhancing system reliability and ease of use.
[0071] Step S30: executing corresponding functional operations based on the preset functional menu.
[0072] It is understandable that in the prior art, it is usually necessary to first log in to the system through a terminal and then rely on command line input instructions to complete various operations, which leads to redundant operation steps and low efficiency. Therefore, by executing step S30, users can select or input the operations they need to perform based on the preset function menu and on the display homepage of the integrated console program, without having to manually log in to the system through a terminal and input command line instructions to complete the same task.
[0073] In a feasible embodiment, step S30 may include steps S31 to S32:
[0074] Step S31, displaying the preset function menu to the user through the display homepage;
[0075] Step S32: executing a corresponding function operation based on the function number selected by the user in the function menu module.
[0076] Specifically, the user browses through different function options in the function menu on the home page and enters a specific function number on the home page to specify the function operation they want to perform. After receiving the user's input, the system identifies the background logic or command corresponding to the selected function and immediately executes the corresponding function operation.
[0077] In another feasible embodiment, step S32 may include steps S321 to S324:
[0078] Step S321: If the user selects a first function serial number in the function menu module, network card information is read, and corresponding network card operation is performed according to the network card number selected by the user based on the network card information;
[0079] Step S322: If the user selects a second function number in the function menu module, device control is executed or the preset QR code is set;
[0080] Step S323: If the user selects the third function serial number in the function menu module, a related tool is called to perform a corresponding management operation;
[0081] Step S324: If the user selects the fourth function serial number in the function menu module, an account type login option is displayed to the user.
[0082] In this embodiment, the function menu on the homepage is marked with the corresponding function number for each function, wherein the first function number (i.e., option "[1]") is marked before "Network Configuration", the second function number (i.e., option "[2]") is marked before "System Settings", the third function number (i.e., option "[3]") is marked before "Tools", the fourth function number (i.e., option "[9]") is marked before "Command Line Mode", the fifth function number (i.e., option "[4]") is marked before "Switch Language", and the sixth function number (i.e., option "[0]") is marked before "Exit Menu".
[0083] If the user selects the first function number (i.e., option "[1]") in the function menu module, the system will read the current system network card information and perform the corresponding network card operation based on the specific network card number selected by the user based on this network card information. For example, the user can select a network card to configure the IP address or adjust other network parameters.
[0084] If the user selects the second function number (i.e., option "[2]") in the function menu module, the system will guide the user to the system settings module. In the system settings module, the user can perform various device control operations, such as managing system services, adjusting system time, and updating system configurations. In addition, the user can also choose to generate or manage preset QR codes.
[0085] If the user selects the third function number (i.e. option "[3]") in the function menu module, the system will call the corresponding tool to perform various management operations, such as Figure 4 As shown, Figure 4 Select an interface diagram for the tool. For example, you can select the one-click system status check function to quickly obtain a system health report, including the status of key indicators such as CPU usage, memory usage, and disk space.
[0086] If the user selects the fourth function number (i.e. option "[9]") in the function menu module, the system will call out the user's selectable account type login options for the user to select the login type and log in directly. Figure 5 As shown, Figure 5 This is a diagram of the account type login options. Figure 5 It can be seen that this embodiment provides at least two types of account login types, including logging in using a root account and logging in using a vendor account.
[0087] By assigning each function a clear function number and providing intuitive menu options through the above steps, even non-professional users can easily complete complex server management tasks, simplifying complex operations. Furthermore, for non-professional users, they do not need to have a deep understanding of Linux command line operations to start managing and maintaining the server, lowering the entry threshold. Furthermore, by integrating common server management functions (such as network configuration, system settings, tools, etc.) into a centralized menu, users can quickly find and use the required functions, improving work efficiency.
[0088] Through the above-described embodiment method, a console program is obtained and, based on the console program, a homepage is loaded and displayed; a call instruction input by the user on the homepage is received and a preset function menu is called based on the call instruction; and corresponding function operations are executed based on the preset function menu. This solution integrates the control homepage and guides user input through the function menu. The system automatically matches and calls underlying system commands based on user input, which not only simplifies the server operation and maintenance process but also improves server operation and maintenance efficiency.
[0089] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above introduction and will not be described in detail later. Figure 6 , step S321 further includes steps A1 to A3:
[0090] Step A1, displaying the network card information to the user, and receiving the corresponding network card number input by the user based on the network card information;
[0091] Step A2: Enter the corresponding network card configuration operation interface based on the network card number;
[0092] Step A3: executing corresponding network card operations according to the network card operation instructions input by the user in the network card configuration operation interface.
[0093] It should be noted that the network card information refers to various attributes and configuration parameters related to the network interface card, including but not limited to the network card name, MAC address, speed, IP, network card, hop, etc.
[0094] Specifically, when the user selects the first function number in the function menu to enter the network configuration module, the system displays the network configuration interface to the user by displaying the home page, such as Figure 7 As shown, Figure 7 This is a diagram of the network configuration interface.
[0095] When the user enters the number of a network card in the network configuration interface and clicks the Enter key, the system receives the network card number entered by the user and executes the command, and then enters the configuration operation of the corresponding network card. Figure 8 As shown, Figure 8 This is a diagram of the configuration operation interface for the corresponding network card.
[0096] When the system enters the corresponding network card selected by the user, the relevant configuration operation options of the corresponding network card are displayed to the user through the display page, including enabling the network card, disabling the network card and clearing the configuration. When the network card is enabled, the network card configuration operation interface will further display the network type option for the user to select the specific corresponding network configuration method. Figure 9 As shown, Figure 9 Configure a diagram for the network.
[0097] Through the above-described embodiment, once the user enters the corresponding network card operation instructions, the system will parse and execute these instructions to complete the specific configuration changes for the selected network card. This method not only provides an intuitive and detailed view of network card information, but also allows users to perform complex network card settings directly within the graphical interface, avoiding the complexity of manually editing configuration files and memorizing command line instructions, greatly facilitating user operations and reducing the possibility of errors.
[0098] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above introduction and will not be described in detail later. Figure 10 , step S322 further includes steps B1 to B5:
[0099] Step B1, based on the user selecting a second function serial number in the function menu module, entering a system setting interface;
[0100] Step B2, receiving a device control instruction input by a user through the system setting interface;
[0101] Step B3: If the device control instruction is a device restart / shutdown instruction, then the restart or shutdown operation is performed;
[0102] Step B4: if the device control instruction is a display / close instruction for the preset QR code, display or hide the preset QR code;
[0103] Step B5: If the device control instruction is to display the preset QR code in full screen, the size of the preset QR code is adjusted based on the current screen resolution.
[0104] It can be understood that, compared with the first and second embodiments, in this embodiment, a system setting and QR code visualization management method based on a function menu is also proposed, which can realize unified management of server basic settings and information display through an integrated console program.
[0105] Specifically, when the user selects the second function number (i.e. option "[2]") in the function menu module, the system will guide the user to enter the system settings interface. This interface provides a series of system-related configuration options and device control functions. Among them, the system settings interface includes but is not limited to options such as restarting or shutting down the device, displaying or shutting down the preset QR code, and displaying the QR code in full screen. Figure 10 As shown, Figure 10 This is a diagram of the system settings interface.
[0106] On the system settings interface, users can select specific device control operations or QR code-related operations. The system will wait for and receive the user's device control input instructions.
[0107] If the system receives a device control instruction from the user to restart or shut down the device, the system will perform the corresponding operation: if it is a restart instruction, the server will enter the restart confirmation interface. When the user confirms the restart, the server will be restarted; if it is a shutdown instruction, the server will enter the shutdown confirmation interface. When the user confirms the shutdown, the server will be shut down.
[0108] If the device control instruction received by the system from the user is to display a QR code, the system will present the QR code on the interface for the user to scan; if the device control instruction input by the user is to close the preset QR code, the QR code will be hidden so that it is no longer displayed.
[0109] If the system receives a device control instruction from the user to view the QR code in full screen, the system will automatically adjust the size of the QR code according to the resolution of the current display to ensure that it can fully adapt to the screen size and is easy to display clearly to the user or other devices for scanning.
[0110] Through the above-described embodiment and method, the system not only provides basic control functions for server hardware, but also enhances the user experience, especially for situations where frequent information sharing (such as QR codes) is required. This design simplifies the operation process, improves efficiency, and enables even non-professional users to easily complete complex tasks.
[0111] It should be noted that the above examples are only used to understand this application and do not constitute a limitation on the server command line operation method of this application. More simple transformations based on this technical concept are all within the scope of protection of this application.
[0112] This application also provides a server command line operation device, please refer to Figure 11 , the server command line operation device includes:
[0113] The display module 10 is used to obtain a console program and load and display a homepage based on the console program;
[0114] The calling module 20 is used to receive a calling instruction input by a user in the displayed homepage, and call a preset function menu based on the calling instruction;
[0115] The execution module 30 is configured to execute corresponding functional operations based on the preset functional menu.
[0116] The server command line operation device provided in this application, which utilizes the server command line operation method described in the aforementioned embodiments, can address the technical problem of simplifying server operation and maintenance processes and improving server operation and maintenance efficiency. Compared to the prior art, the server command line operation device provided in this application achieves the same beneficial effects as the server command line operation method described in the aforementioned embodiments. Other technical features of the server command line operation device are the same as those disclosed in the aforementioned embodiments and are not further elaborated here.
[0117] The present application provides a server command line operation device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the server command line operation method in the above-mentioned embodiment one.
[0118] Reference below Figure 12 , which shows a schematic diagram of the structure of a server command line operation device suitable for implementing the embodiments of the present application. The server command line operation device in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), etc., as well as fixed terminals such as digital TVs and desktop computers. Figure 12 The server command line operation device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0119] like Figure 12As shown, the server command line operation device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes based on programs stored in a read-only memory 1002 or programs loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the server command line operation device. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are connected to each other via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the server command line operation device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a server command line operation device with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems can be implemented or have alternatively.
[0120] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device 1003, or installed from a read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are performed.
[0121] The server command line operation device provided in this application, which utilizes the server command line operation method described in the aforementioned embodiment, can address the technical problem of simplifying server operation and maintenance processes and improving server operation and maintenance efficiency. Compared to the prior art, the server command line operation device provided in this application achieves the same beneficial effects as the server command line operation method described in the aforementioned embodiment. Other technical features of this server command line operation device are the same as those disclosed in the aforementioned embodiment and are not further elaborated upon here.
[0122] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0123] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
[0124] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer program) stored thereon, and the computer-readable program instructions are used to execute the server command line operation method in the above embodiment.
[0125] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0126] The computer-readable storage medium may be included in the server command line operation device; or may exist independently without being assembled into the server command line operation device.
[0127] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the server command line operation device, the server command line operation device: obtains a console program, and loads a display homepage based on the console program; receives a call instruction entered by the user in the display homepage, and calls a preset function menu based on the call instruction; and performs corresponding function operations based on the preset function menu.
[0128] Computer program code for performing the operations of the present application may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0129] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.
[0130] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.
[0131] The computer-readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned server command line operation method. This computer-readable storage medium can address the technical problem of simplifying server operation and maintenance processes and improving server operation and maintenance efficiency. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the server command line operation method provided in the aforementioned embodiment, and are not further elaborated here.
[0132] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned server command line operation method when executed by a processor.
[0133] The computer program product provided in this application can solve the technical problem of simplifying the server operation and maintenance process and improving server operation and maintenance efficiency. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the server command line operation method provided in the above embodiment, and will not be repeated here.
[0134] The above description is only part of the embodiments of the present application and does not limit the patent scope of the present application. All equivalent structural transformations made by using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A server command line operation method, characterized in that: The server command line operation method includes: Obtaining a console program, and loading and displaying a homepage based on the console program; receiving a calling instruction input by a user in the displayed homepage, and calling a preset function menu based on the calling instruction; Execute corresponding function operations based on the preset function menu.
2. The server command line operation method according to claim 1, wherein: After the steps of obtaining the console program and loading and displaying the homepage based on the console program, the following steps are included: Integrate the device status display module and the QR code generation module through the display homepage; The QR code generation module is called to generate a preset QR code, wherein the preset QR code is configured to be scanned by an external device and then jump to a small program for local device management to access the status information or remote management interface of the local device.
3. The server command line operation method according to claim 1, wherein: The step of performing a corresponding function operation based on the preset function menu includes: Displaying the preset function menu to the user through the display homepage; Based on the function number selected by the user in the function menu module, the corresponding function operation is executed.
4. The server command line operation method according to any one of claims 2 to 3, characterized in that: The steps of executing the corresponding function operation based on the function sequence number selected by the user in the function menu module include: If the user selects a first function serial number in the function menu module, the network card information is read, and a corresponding network card operation is performed according to the network card number selected by the user based on the network card information; If the user selects a second function serial number in the function menu module, device control is executed or the preset QR code is set; If the user selects the third function serial number in the function menu module, the relevant tool is called to perform the corresponding management operation; If the user selects the fourth function serial number in the function menu module, an account type login option is displayed to the user.
5. The server command line operation method as claimed in claim 4, characterized in that: If the user selects the first function serial number in the function menu module, the steps of reading the network card information and performing the corresponding network card operation according to the network card number selected by the user based on the network card information include: Displaying the network card information to the user, and receiving a corresponding network card number input by the user based on the network card information; Enter the corresponding network card configuration operation interface based on the network card number; Execute corresponding network card operations according to the network card operation instructions input by the user in the network card configuration operation interface.
6. The server command line operation method as claimed in claim 4, characterized in that: If the user selects the second function serial number in the function menu module, the step of executing device control or setting the preset QR code includes: Entering a system setting interface based on the user selecting a second function serial number in the function menu module; Receiving a device control instruction input by a user through the system setting interface; If the device control instruction is a device restart / shutdown instruction, then the restart or shutdown operation is performed; If the device control instruction is a display / close instruction for the preset QR code, display or hide the preset QR code; If the device control instruction is to display the preset QR code instruction in full screen, the size of the preset QR code is adjusted based on the current screen resolution.
7. A server command line operation device, characterized in that: The server command line operation device includes: A display module is used to obtain a console program and load and display a homepage based on the console program; A calling module, configured to receive a calling instruction input by a user in the displayed homepage, and call a preset function menu based on the calling instruction; The execution module is used to execute corresponding functional operations based on the preset function menu.
8. A server command line operation device, characterized in that: The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the server command line operation method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the server command line operation method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the server command line operation method according to any one of claims 1 to 6 are implemented.