CN108984069A - A kind of progress control method and system based on linux system - Google Patents

A kind of progress control method and system based on linux system Download PDF

Info

Publication number
CN108984069A
CN108984069A CN201810833806.7A CN201810833806A CN108984069A CN 108984069 A CN108984069 A CN 108984069A CN 201810833806 A CN201810833806 A CN 201810833806A CN 108984069 A CN108984069 A CN 108984069A
Authority
CN
China
Prior art keywords
input
user
console terminal
consumer process
interface
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.)
Pending
Application number
CN201810833806.7A
Other languages
Chinese (zh)
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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN201810833806.7A priority Critical patent/CN108984069A/en
Publication of CN108984069A publication Critical patent/CN108984069A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication

Abstract

The embodiment of the present application provides a kind of progress control method and system based on linux system, for improving the safety of Linux system.The embodiment of the present application method includes: to open and activate a console terminal of the system, and standard input, standard output, standard error are all redirected on the console terminal when running the initialization process of linux system starting up;Consumer process is run in the initialization process, the consumer process is for detecting whether input of the user on the console terminal meets preset input rule;When input of the user on the console terminal meets preset input rule, then controls the consumer process and respond the input, corresponding output is shown on the console terminal.

Description

A kind of progress control method and system based on linux system
Technical field
This application involves technical field of system control more particularly to a kind of progress control method based on linux system and System.
Background technique
What server on the market usually filled is the Linux system of no graphical interfaces at present, this means that all operations It requires to realize by inputting relevant order in Command Line Interface, and at present in Linux system, in order to protect service Necessary account number cipher can be all arranged in the safety of device, resulted in this way in server for the management to system safety When executing network configuration or order in Linux system, it is necessary to correct account number cipher is inputted, and the leakage of account number cipher can be System safety causes some potential safety problems.
Therefore how in the case where guaranteeing Linux system safety, simple configuration to Linux system is realized, be at present urgently A problem to be solved.
Apply for content
The embodiment of the present application provides a kind of progress control method and system based on linux system, for improving linux The safety of system.
The embodiment of the present application first aspect provides a kind of progress control method based on linux system, comprising:
When running the initialization process of linux system starting up, a console of the system is opened and activated Terminal, and standard input, standard output, standard error are all redirected on the console terminal;
A consumer process is run in the initialization process, the consumer process is for detecting user in the control Whether the input in platform terminal meets preset input rule;
When input of the user on the console terminal meets preset input rule, control consumer process responds institute Input is stated, corresponding output is shown on console terminal.
Preferably, this method further include:
When input of the user on the console terminal does not meet preset input rule, control consumer process is not rung The input is answered, does not show corresponding output on console terminal;
Or,
When input of the user on the console terminal does not meet preset input rule, control consumer process is not rung The input is answered, the input is prompted to malfunction on console terminal.
Preferably, consumer process includes:
First consumer process, first consumer process are used to show menu graphical interface, the menu graphical to user Interface is for providing a user instruction input interface options, so that the user passes through different input interface options, into institute State instruction input interface different on console terminal.
Preferably, described instruction input interface option includes:
Network configuration graphical interfaces interface and/or command prompt interface;
Consumer process further include:
Second user process and third consumer process;
The second user process is used for when user selects the network configuration graphical interfaces interface, generation and network The graphical interfaces of configurations match;
The third consumer process, for it is defeated to generate command prompt when user selects the command prompt interface Enter interface.
Preferably, it when the input as user on the console terminal meets preset input rule, then controls Consumer process responds the input, and corresponding output is shown on console terminal, comprising:
When user is instructed by the described instruction input interface input first on the menu graphical interface, described in calling Second user process or the third consumer process detect first instruction, and whether judge first instruction Meet preset input rule;
If meeting, first instruction of user's input is responded, is shown on console terminal to the user Corresponding output.
The embodiment of the present application second aspect provides a kind of operation control system based on linux system, comprising:
Activation redirects unit, for opening and activating institute when running the initialization process of linux system starting up A console terminal of system is stated, and standard input, standard output, standard error are all redirected to the console terminal On;
Process running unit, for running a consumer process in the initialization process, the consumer process is used for Detect whether input of the user on the console terminal meets preset input rule;
First execution unit, for when input of the user on the console terminal meets preset input rule, It then controls consumer process and responds the input, corresponding output is shown on console terminal.
Preferably, the system further include:
Second execution unit, for not meeting preset input rule when input of the user on the console terminal When, control consumer process is not responding to the input, does not show corresponding output on console terminal;
Or,
Third execution unit, for not meeting preset input rule when input of the user on the console terminal When, control consumer process is not responding to the input, and the input is prompted to malfunction on console terminal.
Preferably, consumer process includes:
First consumer process, first consumer process are used to show menu graphical interface, the menu graphical to user Interface is for providing a user instruction input interface options, so that the user passes through different input interface options, into institute State instruction input interface different on console terminal.
Preferably, instruction input interface options include:
Network configuration interface and/or command prompt interface;
Consumer process further include:
Second user process and third consumer process;
The second user process is used for when user selects the network configuration graphical interfaces interface, generation and network The graphical interfaces of configurations match;
The third consumer process, for it is defeated to generate command prompt when user selects the command prompt interface Enter interface.
Preferably, the first execution unit, comprising:
Judgment module is called, for inputting the by described instruction input interface on the menu graphical interface as user When one instruction, the consumer process is called, first instruction is detected, and it is pre- to judge whether first instruction meets The input rule set;
Respond module, described in when first instruction meets preset input rule, control consumer process is responded First instruction of user's input, shows corresponding output to the user.
The embodiment of the present application also provides a kind of computer installation, including processor, which is stored in execution When computer program on reservoir, the operation control based on linux system that is provided for realizing the embodiment of the present application first aspect Method processed.
The embodiment of the present application also provides a kind of computer readable storage mediums, are stored thereon with computer program, the meter When calculation machine program is executed by processor, for realizing the operation based on linux system of the embodiment of the present application first aspect offer Control method.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
In the embodiment of the present application, when running the initialization process of linux system starting up, opens and activate the system One console terminal of system, and standard input, standard output, standard error are all redirected on the console terminal; Consumer process is run in the initialization process, which is for detecting input of the user on the console terminal It is no to meet preset input rule;When input of the user on the console terminal meets preset input rule, then control Consumer process responds the input, and corresponding output is shown on console terminal.Because in starting up in the present embodiment Initialization process in open activation one console terminal when, by standard input, output, standard error be all redirected to the control In platform terminal processed, and run consumer process in the initialization process, for input of the user on the console terminal into Row detection, in this way, allowing for input and output of the user on the console terminal all passes through the detection of consumer process, and all exports On the console terminal, thus play the role of controlling user's input and output on the console terminal, so that with Family, which does not pass through account number cipher, can log in and configure linux system, improve the safety of Linux system.
Detailed description of the invention
Fig. 1 is one embodiment schematic diagram of the progress control method based on linux system in the embodiment of the present application;
Fig. 2 is the schematic diagram that consumer process outputs and inputs response on console terminal to user;
Fig. 3 is another embodiment schematic diagram of the progress control method based on linux system in the embodiment of the present application;
Fig. 4 is another embodiment schematic diagram of the progress control method based on linux system in the embodiment of the present application;
Fig. 5 is another embodiment schematic diagram of the progress control method based on linux system in the embodiment of the present application;
Fig. 6 is one embodiment schematic diagram of the operation control system based on linux system in the embodiment of the present application.
Specific embodiment
The embodiment of the present application provides a kind of progress control method and system based on linux system, for improving linux The safety of system.
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection It encloses.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing Four " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein or describing Sequence other than appearance is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that covering is non-exclusive Include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to clearly arrange Those of out step or unit, but may include be not clearly listed or it is solid for these process, methods, product or equipment The other step or units having.
The problem of based on account number cipher leakage in the linux system of game server, is faced in the prior art, the application A kind of progress control method and system based on linux system is proposed, the safety of linux system can be improved.
For convenience of understanding, referring to Fig. 1, a kind of progress control method based on linux system in the embodiment of the present application One embodiment, comprising:
101, it when running the initialization process of linux system starting up, opens and activates one of the system to control Platform terminal, and standard input, standard output, standard error are all redirected on the console terminal;
In order to solve in the prior art when logging in linux system, need to input account number cipher, and it is close to may cause account Caused network security problem when code leakage, the embodiment of the present application when running the initialization process of linux system starting up, One new console terminal tty1 of activation is opened, in general, a linux system can carry multiple console terminals, i.e., Multiple control users can be set similar to a Windows system in multiple tty, and user can pass through different tty pairs Linux system is controlled.
Initialization process in the application is after opening one console terminal tty1 of activation, then by linux system Standard input, standard output, standard error are all redirected on the tty1 of the console terminal, specifically, in linux system, Standard input, standard output, standard error can be all redirected on the tty1 of the console terminal by calling api interface, And the api interface of redirection calling is all had a detailed description in the prior art, details are not described herein again.
102, consumer process is run in initialization process, the consumer process is for detecting user in the console terminal On input whether meet preset input rule;
A console terminal ttyl is activated when opening in the initialization process in linux system starting up, and is passed through Api interface is called, the standard input of linux system, standard output, standard error are all redirected to console terminal tty1 After upper, consumer process is run in initialization process, the consumer process is mainly for detection of user in the console terminal Whether the input on tty1 meets preset input rule, when meeting preset input rule, 103 is thened follow the steps, when not When meeting preset input rule, then other processes are executed, herein with no restrictions.
It is easily understood that the consumer process run in initialization process in the present embodiment is mainly the defeated of control user Enter, responded in this way, consumer process can only input the user for meeting presetting rule, to play filtering user's input Purpose, and the content of preset input rule can also be customized according to user demand, it can be stored in presetting rule The arbitrary disposition interface command opened to user, so that user is only in the open configuration interface command of input, user Process just responds user input, and then plays the role of controlling user's input and output, to realize that user is not having When the account number cipher of linux system, linux system can also be configured, but without the safety for influencing linux system.
103, when the input as user on the console terminal meets preset input rule, control consumer process response The input shows corresponding output on console terminal.
Corresponding to step 102, when input of the user on the tty1 of console terminal meets preset input rule, user Process then responds user input, and corresponding user's output is shown on tty1.
Specifically, such as when the presetting rule being arranged in consumer process, which allows user to input sock, to be instructed, then in console When terminal tty1 receives " sock 127.0.0.1443 " instruction of user's input, consumer process calls external command to test 127.0.0.1443 after connectivity, the connection of the IP address is shown on tty1 as a result, as " connect 127.0.0.1: 443success.".In actual use, the control instruction that tty1 can receive, the existing instruction of locking system, not can also be use The customized instruction of the instruction of family process virtual, i.e. consumer process, and solution of the realization to custom instruction inside consumer process Analysis, wherein Fig. 2 is the response schematic diagram that consumer process outputs and inputs user on tty1.
It should be noted that the sock instruction in the present embodiment is an exemplary illustration to preset input rule, Wherein preset input rule can be customized according to user demand, not do specific limit to preset input rule content herein System.
In the embodiment of the present application, when running the initialization process of linux system starting up, opens and activate the system One console terminal of system, and standard input, standard output, standard error are all redirected on the console terminal; Consumer process is run in the initialization process, which is for detecting input of the user on the console terminal It is no to meet preset input rule;When input of the user on the console terminal meets preset input rule, then control Consumer process responds the input, and corresponding output is shown on console terminal.Because in starting up in the present embodiment Initialization process in open activation one console terminal when, by standard input, output, standard error be all redirected to the control In platform terminal processed, and run consumer process in the initialization process, for input of the user on the console terminal into Row detection, in this way, allowing for input and output of the user on the console terminal all passes through the detection of consumer process, and all exports On the console terminal, thus play the role of controlling user's input and output on the console terminal, so that with Family, which does not pass through account number cipher, can log in and configure linux system, improve the safety of Linux system.
Based on Fig. 1 the embodiment described, be described below the input as user on console terminal be unsatisfactory for it is preset defeated When entering rule, the case where consumer process is to the response of input, referring to Fig. 3, based on the fortune of linux system in the embodiment of the present application Another embodiment of row control method, comprising:
301, when the input as user on console terminal does not meet preset input rule, then consumer process is controlled not Respond the input;
Corresponding to the step 102 in embodiment described in Fig. 1, when consumer process detection user is on the tty1 of console terminal When input is unsatisfactory for preset input rule, then controls consumer process and user input is not responded, to play filtering The purpose of user's input.
Further, in order to improve the usage experience of user, consumer process is detecting user on the tty1 of console terminal Input when being unsatisfactory for preset input rule, step 302 can also be performed in the input in addition to that can be not responding to user.
302, when the input as user on console terminal does not meet preset input rule, then consumer process is controlled not The input is responded, and prompts input error on console terminal.
In order to improve the usage experience of user, when consumer process does not allow user to input some instruction in console terminal When, i.e., when consumer process detects that input of the user in console terminal is unsatisfactory for preset input rule, in addition to being not responding to use Family can also further prompt the user with input error outside the input of console terminal, prevent user from continuously inputting in vain Instruction.
When input of the present embodiment to user in console terminal is unsatisfactory for preset input rule, consumer process is to input Response the case where be described, improve the operability of the embodiment of the present application.
Based on Fig. 1 the embodiment described, in order to improve the operability of console terminal, the application is different from the prior art In only on console terminal provide command prompt interface outside, the graphical interfaces of configurable interface can also be provided a user, I.e. in the step 102 of Fig. 1 the embodiment described, consumer process can specifically include first with process, second user process and Third consumer process, referring specifically to Fig. 4, a kind of progress control method based on linux system is another in the embodiment of the present application One embodiment, comprising:
401, the first consumer process is run, for showing that menu graphical interface, the menu graphical interface are used to user In providing a user instruction input interface options, so that the user passes through different input interface options, into different fingers Input interface is enabled, described instruction input interface option includes network configuration graphical interfaces interface and/or command prompt interface.
For the technical foundation of different operation personnel, in the present embodiment in addition to understand technology personnel provide command prompt Outside instruction input interface, the graphical interfaces of configurable interface can also be provided a user, such as after linux system starting up, It not only opens by the initialization process of starting up and activates a console terminal tty1, and the weight on the console terminal After the input of orientation standard, standard output and standard error, also run the first consumer process in the initialization process, with for User shows menu graphical interface, and wherein the menu graphical interface is used to provide a user instruction input interface options, so that with Family is by different input interface options, into different instruction input interfaces.
Specifically, may include: network configuration graphical interfaces interface options and/or command cue on the menu graphical interface Accord with interface options.
402, when user selects the network configuration graphical interfaces interface, operation second user process generation is matched with network Set matched graphical interfaces;
In this way, when user selects network configuration graphical interfaces interface, so that it may run second user process, such as call Dialog instruction generates matched network configuration graphical interfaces, as IP address, subnet mask, default gateway, DNS configure figure circle Face etc., it should be noted that above-mentioned network configuration graphical interfaces is only to Instruction Graphics interface configurable in network configuration interface For example, user can according to actual needs set the config option of network interface card in practical application, do not do and have herein Body limitation.
It should be noted that dialog instruction is called to simply generate a kind of mode of graphical interfaces, third may call upon Square graphical control generates graphical interfaces, is not particularly limited herein to the instruction for generating graphical interfaces.
403, when user selects the command prompt interface, operation third consumer process generates command prompt input Interface.
And when user's select command prompt interface options, so that it may run third consumer process, such as call ssl_vm_ Cmd program simulates the command prompt under linux system, and certainly according to actual needs, consumer process only can allow user to hold The specified several system commands of row, such as: ping, ifconfig, arp are mainly used for the correctness of test network address configuration; Can also according to actual needs, limit the command parameter of user's input or not limit input parameter etc., user is inputted herein Command context be not particularly limited.
It should be noted that calling ssl_vm_cmd program is to simulate one kind of the command prompt under linux system Mode, herein with no restrictions to the specific procedure of the command prompt under simulation linux system.
In the present embodiment, the interface options of command prompt are not only provided a user by menu graphical interface, also to The graphical interfaces that family provides network configuration interface improves in order to which user is configured system configuration in graphical interfaces Linux system ease for use and operability.
Based on Fig. 4 the embodiment described, it is described below in detail what the input to user on console terminal was detected Process, referring to Fig. 5, a kind of another embodiment of the progress control method based on linux system in the embodiment of the present application, packet It includes:
501, when user is instructed by the instruction input interface input first on menu graphical interface, described second is called Consumer process or third consumer process detect first instruction, and it is preset to judge whether first instruction meets Input rule;
When user enters finger by network configuration interface option on menu graphical interface or command prompt interface options When enabling input interface, and inputting the first instruction, second user process or third consumer process detect first instruction, and Judge whether first instruction meets preset input rule, wherein preset input rule is the permission user of preset in advance The operational order of input, and the operational order for allowing user to input in preset input rule can be determined according to actual needs System, and when the first instruction of user's input meets the preset input rule, step 502 is executed, and it is discontented in the first instruction Enough when preset input rule, step 503 is executed.
502, the first instruction of response user input, shows corresponding output to the user.
If the first instruction of user's input meets preset input rule, second user process or third consumer process are rung Should the first instruction, and show corresponding output to user on tty1.
503, it is not responding to the first instruction of user's input, and prompts user's input error.
If the first instruction of user's input is unsatisfactory for preset input rule, second user process or third consumer process It is not responding to first instruction, and prompts the user with input error in tty1.
In the present embodiment, the consumer process being described in detail on console terminal inputs the process detected to user, Improve the operability of the embodiment of the present application.
Described above is the progress control methods based on linux system in the embodiment of the present application, below to the application reality The operation control system based on linux system applied in example is described, referring to Fig. 6, being based on Linux in the embodiment of the present application One embodiment of the operation control system of system, comprising:
Activation redirects unit 601, for opening and swashing when running the initialization process of linux system starting up One console terminal of the system living, and standard input, standard output, standard error are all redirected to the console In terminal;
Process running unit 602, for running consumer process in the initialization process, the consumer process is for examining Survey whether input of the user on the console terminal meets preset input rule;
First execution unit 603, for meeting preset input rule when input of the user on the console terminal When, then it controls consumer process and responds the input, corresponding output is shown on console terminal.
Preferably, the system further include:
Second execution unit 604, for not meeting preset input rule when input of the user on the console terminal When then, control consumer process is not responding to the input, and does not show corresponding output on console terminal;
Or,
Third execution unit 605, for not meeting preset input rule when input of the user on the console terminal When then, control consumer process is not responding to the input, and prompts the input to malfunction on console terminal.
Preferably, the consumer process includes:
First consumer process, for showing menu graphical interface to user, the menu graphical interface to user for mentioning For instruction input interface options so that the user is by different input interface options, into the console terminal on not Same instruction input interface.
Preferably, instruction input interface options include:
Network configuration interface and/or command prompt interface;
The consumer process further include:
Second user process and third consumer process;
Second user process is used for when user selects the network configuration graphical interfaces interface, generation and network configuration Matched graphical interfaces;
Third consumer process, for generating command prompt and inputting boundary when user selects the command prompt interface Face.
Preferably, the first execution unit 603, comprising:
Judgment module 6031 is called, it is defeated by the described instruction input interface on the menu graphical interface for working as user When entering the first instruction, the second user process or third consumer process are called, first instruction is detected, and judges Whether first instruction meets preset input rule;
Respond module 6032, in the preset input rule of the first command character, responding the institute of user's input The first instruction is stated, shows corresponding output to the user.
It should be noted that the effect of above-mentioned each unit and each module is similar with described in Fig. 1, Fig. 3, Fig. 4, Fig. 5, this Place repeats no more.
In the embodiment of the present application, when running the initialization process of linux system starting up, redirected by activation single Member 601 is opened and activates a console terminal of the system, and standard input, standard output, standard error are all reset To on the extremely console terminal;Run consumer process in the initialization process by process running unit 602, the user into Journey is for detecting whether input of the user on the console terminal meets preset input rule;When user is in the console When input in terminal meets preset input rule, the input is responded by the first execution unit 603, is shown corresponding defeated Out.Because will be marked when opening one console terminal of activation in the present embodiment in the initialization process of linux system starting up Quasi- input, output, standard error be all redirected on the console terminal, and in the initialization process run a user into Journey, for being detected to input of the user on the console terminal, in this way, allowing for user on the console terminal The detection of consumer process is all passed through in input and output, and all output is on the console terminal, to play in the console terminal On effect that user's input and output are controlled so that user does not pass through account number cipher and can log in linux system, and complete Configuration work improves the safety of Linux system.
System is controlled to the operation based on linux system in the embodiment of the present invention from the angle of modular functionality entity above System is described, and the computer installation in the embodiment of the present invention is described from the angle of hardware handles below:
The computer installation for realizing the operation control system based on linux system function, in the embodiment of the present invention Computer installation one embodiment includes:
Processor and memory;
Memory can when processor is used to execute the computer program stored in memory for storing computer program To realize following steps:
When running the initialization process of linux system starting up, a console of the system is opened and activated Terminal, and standard input, standard output, standard error are all redirected on the console terminal;
Consumer process is run in the initialization process, the consumer process is whole in the console for detecting user Whether the input on end meets preset input rule;
When input of the user on the console terminal meets preset input rule, then consumer process response is controlled The input shows corresponding output on console terminal.
In some embodiments of the invention, processor can be also used for realizing following steps:
When input of the user on the console terminal does not meet preset input rule, control consumer process is not rung The input is answered, and does not show corresponding output on console terminal;
Or,
When input of the user on the console terminal does not meet preset input rule, control consumer process is not rung The input is answered, and prompts the input to malfunction on console terminal.
Preferably, consumer process includes: the first consumer process;
In some embodiments of the invention, processor can be also used for realizing following steps:
The first consumer process is run, first consumer process is used to show menu graphical interface, the menu to user Graphical interfaces is for providing a user instruction input interface options, so that the user passes through different input interface options, into Enter instruction input interface different on the console terminal.
Preferably, described instruction input interface option includes:
Network configuration interface and/or command prompt interface;
Consumer process further include: second user process and third consumer process.
In some embodiments of the invention, processor can be also used for realizing following steps:
When user selects the network configuration graphical interfaces interface, operation second user process is generated and network configuration The graphical interfaces matched;
When user selects the command prompt interface, operation third consumer process generates command prompt and inputs boundary Face.
In some embodiments of the invention, processor can be also used for realizing following steps:
When user is instructed by the described instruction input interface input first on the menu graphical interface, described in calling Second user process or third consumer process detect first instruction, and judge whether first instruction meets Preset input rule;
If meeting, first instruction of user's input is responded, shows corresponding output to the user.
It is understood that when the processor in above explained computer installation executes the computer program, it can also To realize the function of each unit in above-mentioned corresponding each Installation practice, details are not described herein again.Illustratively, the computer journey Sequence can be divided into one or more module/units, and one or more of module/units are stored in the memory In, and executed by the processor, to complete the present invention.One or more of module/units can be can complete it is specific The series of computation machine program instruction section of function, the instruction segment is for describing the computer program described based on Linux system The implementation procedure of the operation control system of system.For example, the computer program can be divided into it is above-mentioned based on linux system Each unit in operation control system, each unit may be implemented the above-mentioned accordingly operation control system based on linux system such as and say Bright concrete function.
The computer installation can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The computer installation may include, but are not limited to processor, memory.It will be understood by those skilled in the art that processor, Memory is only the example of computer installation, does not constitute the restriction to computer installation, may include more or fewer Component perhaps combines certain components or different components, such as the computer installation can also be set including input and output Standby, network access equipment, bus etc..
The processor can be central processing unit (Central Processing Unit, CPU), can also be it His general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable GateArray, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng the processor is the control centre of the computer installation, utilizes various interfaces and the entire computer installation of connection Various pieces.
The memory can be used for storing the computer program and/or module, and the processor is by operation or executes Computer program in the memory and/or module are stored, and calls the data being stored in memory, described in realization The various functions of computer installation.The memory can mainly include storing program area and storage data area, wherein storage program It area can application program needed for storage program area, at least one function etc.;Storage data area can store the use according to terminal The data etc. created.In addition, memory may include high-speed random access memory, it can also include non-volatile memories Device, such as hard disk, memory, plug-in type hard disk, intelligent memory card (SmartMedia Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other volatibility are solid State memory device.
The present invention also provides a kind of computer readable storage medium, the computer readable storage medium is for realizing being based on The function of the operation control system of linux system is stored thereon with computer program, when computer program is executed by processor, Processor can be used for executing following steps:
When running the initialization process of linux system starting up, a console of the system is opened and activated Terminal, and standard input, standard output, standard error are all redirected on the console terminal;
A consumer process is run in the initialization process, the consumer process is for detecting user in the control Whether the input in platform terminal meets preset input rule;
When input of the user on the console terminal meets preset input rule, then consumer process response is controlled The input shows corresponding output on console terminal.
In some embodiments of the invention, the computer program of computer-readable recording medium storage is executed by processor When, processor can be specifically used for executing following steps:
When input of the user on the console terminal does not meet preset input rule, control consumer process is not rung The input is answered, and does not show corresponding output on console terminal;
Or,
When input of the user on the console terminal does not meet preset input rule, control consumer process is not rung The input is answered, and prompts the input to malfunction on console terminal.
Preferably, consumer process includes: the first consumer process;
In some embodiments of the invention, the computer program of computer-readable recording medium storage is executed by processor When, processor can be specifically used for executing following steps:
The first consumer process is run, which is used to show menu graphical interface, the menu map to user Shape interface is for providing a user instruction input interface options, so that the user is entered by different input interface options Different instruction input interface on the console terminal.
Preferably, described instruction input interface option includes:
Network configuration interface and/or command prompt interface;
Consumer process further include: second user process and third consumer process.
In some embodiments of the invention, the computer program of computer-readable recording medium storage is executed by processor When, processor can be specifically used for executing following steps:
When user selects the network configuration graphical interfaces interface, operation second user process is generated and network configuration The graphical interfaces matched;
When user selects the command prompt interface, operation third consumer process generates command prompt and inputs boundary Face.
In some embodiments of the invention, the computer program of computer-readable recording medium storage is executed by processor When, processor can be specifically used for executing following steps:
When user is instructed by the described instruction input interface input first on the menu graphical interface, described in calling Second user process or third consumer process detect first instruction, and judge whether first instruction meets Preset input rule;
If meeting, first instruction of user's input is responded, shows corresponding output to the user.
It is understood that if the integrated unit is realized in the form of SFU software functional unit and as independent production Product when selling or using, can store in a corresponding computer-readable storage medium.Based on this understanding, this hair The bright all or part of the process realized in above-mentioned corresponding embodiment method, can also be instructed relevant by computer program Hardware is completed, and the computer program can be stored in a computer readable storage medium, which is being located It manages when device executes, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program generation Code, the computer program code can be source code form, object identification code form, executable file or certain intermediate forms Deng.The computer-readable medium may include: any entity or device, record that can carry the computer program code Medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), with Machine access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc.. It should be noted that the content that the computer-readable medium includes can be according to legislation and patent practice in jurisdiction It is required that carrying out increase and decrease appropriate, such as in certain jurisdictions, do not wrapped according to legislation and patent practice, computer-readable medium Include electric carrier signal and telecommunication signal.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of progress control method based on linux system characterized by comprising
When running the initialization process of linux system starting up, a console terminal of the system is opened and activates, And standard input, standard output, standard error are all redirected on the console terminal;
Consumer process is run in the initialization process, the consumer process is for detecting user in the console terminal Input whether meet preset input rule;
When input of the user on the console terminal meets the preset input rule, then the consumer process is controlled The input is responded, corresponding output is shown on the console terminal.
2. the method according to claim 1, wherein the method also includes:
When input of the user on the console terminal does not meet the preset input rule, the consumer process is controlled It is not responding to the input, does not show corresponding output on the console terminal;
Or,
When input of the user on the console terminal does not meet the preset input rule, the consumer process is controlled It is not responding to the input, the input is prompted to malfunction on the console terminal.
3. the method according to claim 1, wherein the consumer process includes:
First consumer process, first consumer process are used to show menu graphical interface, the menu graphical interface to user For providing a user instruction input interface options, so that the user passes through different input interface options, into the control Different instruction input interface in platform terminal processed.
4. according to the method described in claim 3, it is characterized in that, described instruction input interface option includes:
Network configuration graphical interfaces interface and/or command prompt interface;
The consumer process further include:
Second user process and third consumer process;
The second user process is used for when user selects the network configuration graphical interfaces interface, generation and network configuration Matched graphical interfaces;
The third consumer process, for generating command prompt and inputting boundary when user selects the command prompt interface Face.
5. according to the method described in claim 4, it is characterized in that, the input symbol as user on the console terminal When closing the preset input rule, then controls the consumer process and respond the input, shown on the console terminal Corresponding output, comprising:
When user is instructed by the described instruction input interface input first on the menu graphical interface, described second is called Consumer process or the third consumer process detect first instruction, and judge whether first instruction meets The preset input rule;
If meeting, first instruction of user's input is responded, is shown on the console terminal to the user Corresponding output.
6. a kind of operation control system based on linux system characterized by comprising
Activation redirects unit, for opening and activating the system when running the initialization process of linux system starting up One console terminal of system, and standard input, standard output, standard error are all redirected on the console terminal;
Process running unit, for running consumer process in the initialization process, the consumer process is for detecting user Whether the input on the console terminal meets preset input rule;
First execution unit, for when input of the user on the console terminal meets the preset input rule, It then controls the consumer process and responds the input, corresponding output is shown on the console terminal.
7. system according to claim 6, which is characterized in that the system also includes:
Second execution unit, for not meeting the preset input rule when input of the user on the console terminal When, it controls the consumer process and is not responding to the input, do not show corresponding output on the console terminal;
Or,
Third execution unit, for not meeting the preset input rule when input of the user on the console terminal When, it controls the consumer process and is not responding to the input, the input is prompted to malfunction on the console terminal.
8. system according to claim 6, which is characterized in that the consumer process includes:
First consumer process, first consumer process are used to show menu graphical interface, the menu graphical interface to user For providing a user instruction input interface options, so that the user passes through different input interface options, into the control Different instruction input interface in platform terminal processed.
9. a kind of computer installation, including processor, which is characterized in that the meter that the processor is stored on memory in execution When calculation machine program, for realizing described in any one of claims 1 to 5 based on the progress control method of linux system.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program When being executed by processor, for realizing described in any one of claims 1 to 5 based on the progress control method of linux system.
CN201810833806.7A 2018-07-26 2018-07-26 A kind of progress control method and system based on linux system Pending CN108984069A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810833806.7A CN108984069A (en) 2018-07-26 2018-07-26 A kind of progress control method and system based on linux system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810833806.7A CN108984069A (en) 2018-07-26 2018-07-26 A kind of progress control method and system based on linux system

Publications (1)

Publication Number Publication Date
CN108984069A true CN108984069A (en) 2018-12-11

Family

ID=64551311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810833806.7A Pending CN108984069A (en) 2018-07-26 2018-07-26 A kind of progress control method and system based on linux system

Country Status (1)

Country Link
CN (1) CN108984069A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102322A (en) * 2007-08-24 2008-01-09 华为技术有限公司 A method, system and client for realizing remote control via GUI
US20140235306A1 (en) * 2013-02-19 2014-08-21 David Walls Systems and methods for a token match game
CN105718171A (en) * 2016-01-14 2016-06-29 广州杰赛科技股份有限公司 Data processing method and terminal
CN106685923A (en) * 2016-11-25 2017-05-17 合肥海亚信息科技有限公司 Linux network firewall-based design system
CN106790308A (en) * 2017-03-28 2017-05-31 北京中电普华信息技术有限公司 A kind of user authen method, apparatus and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102322A (en) * 2007-08-24 2008-01-09 华为技术有限公司 A method, system and client for realizing remote control via GUI
US20140235306A1 (en) * 2013-02-19 2014-08-21 David Walls Systems and methods for a token match game
CN105718171A (en) * 2016-01-14 2016-06-29 广州杰赛科技股份有限公司 Data processing method and terminal
CN106685923A (en) * 2016-11-25 2017-05-17 合肥海亚信息科技有限公司 Linux network firewall-based design system
CN106790308A (en) * 2017-03-28 2017-05-31 北京中电普华信息技术有限公司 A kind of user authen method, apparatus and system

Similar Documents

Publication Publication Date Title
CN103942898B (en) Method, mobile terminal and POS machine for realizing security element selection in near field communication
CN104811359B (en) A kind of serial port communication method and terminal
CN102932542B (en) Method for switching working mode of mobile terminal and mobile terminal
CN110109427A (en) Process control software security architecture based on least privilege
CN104749992B (en) The method for configuring the system and configuration safety relay program of industry security relay
CN105208232B (en) A kind of method and apparatus of automatic dialing phone
CN104866752B (en) A kind of application guard method and user terminal
CN107743075A (en) A kind of multisystem network InterWorking Equipment, method and device
CN107562201A (en) Orient exchange method, device, electronic equipment and storage medium
CN109688150A (en) A kind of multi-platform account interoperability methods and device
CN109271223A (en) Windows switching method, device, terminal and computer readable storage medium
CN107229854A (en) Application program registration method and device, electronic equipment and storage medium
CN109902026A (en) A kind of processing method and test platform of interface testing information
US11090565B2 (en) User-specific recap for computer-generated interactive environments
CN109739456A (en) A kind of adaptive UI adaptation method and system
CN111427677A (en) Artificial intelligence product generation method and device and server
CN106204003B (en) Method, device and system for safely transferring virtual resources
CN103853993A (en) Information processing method and electronic equipment
CN108255936A (en) A kind of edit methods of webpage, system and editing machine
CN107135201A (en) A kind of webserver login authentication method and device
CN107580000A (en) Digital certificate authentication method and device
CN105809002B (en) A kind of user terminal charging method and user terminal
CN108984069A (en) A kind of progress control method and system based on linux system
CN110191054A (en) Route processing method and device, storage medium and electronic equipment
CN103873303B (en) A kind of equipment configuration method and system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181211

RJ01 Rejection of invention patent application after publication