CN107623581A - Service list generation method, apparatus and system, acquisition, report method and device - Google Patents
Service list generation method, apparatus and system, acquisition, report method and device Download PDFInfo
- Publication number
- CN107623581A CN107623581A CN201610560803.1A CN201610560803A CN107623581A CN 107623581 A CN107623581 A CN 107623581A CN 201610560803 A CN201610560803 A CN 201610560803A CN 107623581 A CN107623581 A CN 107623581A
- Authority
- CN
- China
- Prior art keywords
- script file
- pid
- process identification
- mark
- type
- 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.)
- Granted
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of service list generation method, apparatus and system, acquisition, report method and device.Wherein, this method includes:The request message for coming from first terminal is received, wherein, request message is used for the service list for obtaining one or more second terminals that server currently manages;It is determined that the script file mark of the part or all of initialization type of one or more second terminals;It is determined that partly or entirely process identification (PID) corresponding to the script file mark of initialization type;According to the script file mark determined and process identification (PID), service list is generated;Service list is sent to first terminal.The present invention is solved in correlation technique because that can not realize being mutually matched between service list and process list and then can not realize the technical problem of the automatic management of Linux services.
Description
Technical field
The present invention relates to computer realm, in particular to a kind of service list generation method, apparatus and system, obtains
Take, report method and device.
Background technology
Linux services exist generally in the form of finger daemon similar to windows application program, are Linux user
Corresponding function is provided.Such as:Secure Shell finger daemon (Secure SHell Daemon, referred to as SSHD) services, and it is
User provides Telnet and performs the service of Linux command.Secure Shell (Secure SHell, referred to as SSH) is a kind of
Secure remote login and the agreement of other secure web services are provided on insecure network.SSH can be divided into client part
With service end part.Service end is a finger daemon (Daemon), and it is in running background and responds the connection from client
Request.Server end is usually SSHD processes, can provide the processing to remotely connecting, and is included but is not limited to:Public keys is recognized
Card, key exchange, symmetric key and unsecured connections.Client can include SSH programs and such as telecopy (scp), remote
Other application programs such as Cheng Denglu (slogin), Implementation of File Transfer (sftp).
In the (SuSE) Linux OS of current main flow, the information of service and start script be all maintained in it is set in advance
Directory name (such as:/ etc/init.d/) under, and service (service) order is provided to manage these services, wherein, each
Service can only possess a process or possess multiple different processes.Main flow (SuSE) Linux OS provides service operations frame
Frame, it can include but is not limited to:Startup script, the executable program of service.The startup script of service is generally in/etc/
Under init.d/ catalogues, it is managed using service orders.Under normal conditions, service orders need to start script point
Indescribably for start service (start), close service (stop), restarting service (restart) and check state (status) ginseng
Number interface.
However, using the management method of service orders there is many defects, due to the reason increased income, service script
Write and do not follow strictly a set of specific rule, be thus easily caused the form that service orders lack fixation, such as:Such as
Fruit user needs to check service A state, so user has write service A status service scripts, its result may be returned
Return service A is stopped;If user needs to check service B state, so user has write service B
Status service scripts, its result may return to service B is not running.These return to the very different of form
Ground adds the difficulty of automation services management, can not positioning service exactly start and stop state.In addition, existing service management
Instrument lacks acquisition and the exhibition scheme of a kind of performance cost data that can provide service, such as:The central processing unit of service
(CPU) acquisition of, internal memory, disk and network traffics, and these data are all pole for the management of daily service and abnormal monitoring
To be important.Moreover, the existing instrument to service management is normally based on service and order line runlevel is set
(chkconfig) order to develop, such as:WDlinux control panels (WDlinux Control Panel, referred to as
WDCP the service management in), can by chkconfig orders come obtain the service whether self-starting, and pass through service
The state for ordering to operate startup/stopping of service and judge service.However, it turns out that during actual use,
Service state in WDCP is difficult to be obtained exactly.
It is the old process of on/off service in Linux service managements below, specifically comprises the following steps:
The first step, pass through/etc/init.d/ catalogues acquisition service identifiers list;
Second step, service status order service is checked to each service identifiers xxx in service identifiers list, operation
Xxx status, check in return value whether include the content such as " run " or " stop ", and then judge whether service has been started up into
Work(;
3rd step, started using on/off service command service xxx start/stop or close service;
4th step, reuse service xxx status judge service whether have been started up success.
However, there is following defect in above-mentioned flow:
1) file under/etc/init.d/ catalogues is all not that service starts script, therefore, directly reads the catalogue
Under content the service catalogue that obtains can be caused inaccurate.
2) directly it is to judge whether service has been started up operation by service status order service xxx status
Lack accuracy, its reason is:And not all script is all write in strict accordance with specific format, and then it is unfavorable for reality
Now to the automatic management of various services.
3) above method can not obtain the performance cost of service, and these performance costs are for management service and monitoring service
Whether occur abnormal is as important.
For it is above-mentioned the problem of, not yet propose effective solution at present.
The content of the invention
The embodiments of the invention provide a kind of service list generation method, apparatus and system, acquisition, report method and dress
Put, at least to solve in correlation technique because that can not realize being mutually matched between service list and process list and then can not realize
The technical problem of the automatic management of Linux services.
One side according to embodiments of the present invention, there is provided a kind of service list generates system, including:
First terminal, for sending request message to one or more servers, wherein, request message is used to obtain one
Or the service list of one or more second terminals that multiple servers currently manage;One or more servers, for passing through
Receive first terminal send request message, determine second terminal part or all of initialization type script file mark and
Process identification (PID) corresponding to the script file mark of part or all of initialization type, and identified according to the script file determined
And process identification (PID), service list is generated, and service list is sent to first terminal;One or more second terminals, for
One or more servers report the process identification (PID) that the script file currently run is identified and currently run.
Another aspect according to embodiments of the present invention, there is provided a kind of service list generation method, including:
The request message for coming from first terminal is received, wherein, request message is used to obtain server currently manages one
The service list of individual or multiple second terminals;It is determined that the script of the part or all of initialization type of one or more second terminals
File identification;It is determined that partly or entirely process identification (PID) corresponding to the script file mark of initialization type;According to the pin determined
This document identifies and process identification (PID), generates service list;Service list is sent to first terminal.
Alternatively, script file mark corresponds to script file.
Alternatively, script file corresponds to the service of startup optimization association.
Optionally it is determined that partly or entirely the script file mark of initialization type includes:Inquire about the script that there is currently
Script type corresponding to file identification and each script file mark;According to script type from the script file that there is currently
The script file mark of predefined type is removed in mark, screening obtains the script file mark of part or all of initialization type,
Wherein, predefined type script file mark includes:All the script file mark of executable type and/or whole Symbolic Links classes
The script file mark of type.
Alternatively, it is determined that corresponding to script file mark before process identification (PID), in addition to:Inquire about the process that there is currently
Mark;Obtain the running state information of each process identification (PID) in the process identification (PID) that there is currently;Each process identification (PID) with it is corresponding
Running state information between establish incidence relation.
Optionally it is determined that partly or entirely process identification (PID) corresponding to the script file mark of initialization type includes:Ought
Preceding existing process identification (PID) and the script text of each initialization type in the script file mark of part or all of initialization type
Part mark is compared;If it is determined that one or more of process identification (PID) that there is currently process identification (PID) with partly or entirely just
The script file mark of any of the script file mark of beginningization type initialization type is identical, then in the process mark determined
Know and establish corresponding relation between the script file of initialization type mark.
Optionally it is determined that partly or entirely process identification (PID) corresponding to the script file mark of initialization type includes:Ought
Preceding existing process identification (PID) and the script text of each initialization type in the script file mark of part or all of initialization type
Part mark is compared;If it is determined that one or more of process identification (PID) that there is currently process identification (PID) with partly or entirely just
The file identification of any of the script file mark of the beginningization type script file of initialization type differs, then calculates and work as
Preceding existing process identification (PID) and the script text of each initialization type in the script file mark of part or all of initialization type
The similarity of part mark;It is less than in similarity between the process identification (PID) of predetermined threshold value and the script file mark of initialization type and builds
Vertical corresponding relation.
Alternatively, calculate every in the script file mark for the process identification (PID) and part or all of initialization type that there is currently
The similarity of the script file mark of individual initialization type includes:Obtain m-th process identification (PID) in n-th initialization type
The quantity K of identical characters in script file mark, wherein, 1≤M≤T1,1≤N≤T2, T1 are the sum of process identification (PID), and T2 is
The sum of the script file mark of initialization type, and M, N, T1, T2 are positive integer;Calculate m and K the first difference and n
With K the second difference, and ask for the first difference and the second difference and, obtain m-th process identification (PID) and n-th initialization type
Script file mark difference value, wherein, the length for the character string that m is included by m-th process identification (PID), n for n-th it is initial
The script file for changing type identifies the length of included character string.
Alternatively, it is less than in similarity between the process identification (PID) of predetermined threshold value and the script file mark of initialization type and builds
Vertical corresponding relation includes:By difference value compared with predetermined threshold value;If difference value is less than predetermined threshold value, enter in m-th
Journey identifies establishes corresponding relation between the script file of n-th initialization type mark.
Alternatively, after according to the script file determined mark and process identification (PID) generation service list, in addition to
It is at least one lower:Identify whether that corresponding process identification (PID) be present determines the initialization according to the script file of each initialization type
The running status of service corresponding to the script file mark of type;By corresponding to the script file mark of each initialization type
The performance indications set of process identification (PID) calculates the performance cost of the script file mark corresponding with service of each initialization type respectively;
After one or more service command is received, every service command in one or more service command is sequentially performed, and
After preset duration, the script file of initialization type corresponding with the service command currently performed is obtained from service list
Running status;If running status changes, the prompt message that service command runs succeeded is sent, if running status
Do not change, then send the prompt message that service command performs failure.
Another aspect according to embodiments of the present invention, there is provided a kind of service list acquisition methods, including:
Request message is sent to server, wherein, request message is used to obtain the one or more that server currently manages
The service list of second terminal;The service list that simultaneously display server is sent is received, wherein, server list is true in server
Make the script file mark of the part or all of initialization type of second terminal and the script of part or all of initialization type
After process identification (PID) corresponding to file identification, generated according to the script file mark determined and process identification (PID).
Another aspect according to embodiments of the present invention, there is provided a kind of service list report method, including:
Obtain the script file mark currently run and the process identification (PID) currently run;The script file got is identified
Server is reported to process identification (PID).
Another further aspect according to embodiments of the present invention, there is provided a kind of service list generating means, including:
Receiving module, the request message of first terminal is come from for receiving, wherein, request message is used to obtain server
The service list of the one or more second terminals currently managed;First determining module, for determining one or more second eventually
The script file mark of the part or all of initialization type at end;Second determining module, for determining partly or entirely to initialize
Process identification (PID) corresponding to the script file mark of type;Generation module, for according to the script file mark and process determined
Mark, generate service list;Sending module, for service list to be sent to first terminal.
Alternatively, script file mark corresponds to script file.
Alternatively, script file corresponds to the service of startup optimization association.
Alternatively, the first determining module includes:Query unit, identified for the script file that inquiry there is currently and every
The corresponding script type of individual script file mark;Clearing cell, for according to script type from the script file that there is currently
The script file mark of predefined type is removed in mark, screening obtains the script file mark of part or all of initialization type,
Wherein, predefined type script file mark includes:All the script file mark of executable type and/or whole Symbolic Links classes
The script file mark of type.
Alternatively, said apparatus also includes:Enquiry module, for inquiring about the process identification (PID) that there is currently;Acquisition module, use
In the running state information for obtaining each process identification (PID) in the process identification (PID) that there is currently;Module is established, in each process
Mark between corresponding running state information with establishing incidence relation.
Alternatively, the second determining module includes:First comparing unit, for by the process identification (PID) that there is currently with part or
The script file mark of each initialization type is compared in the script file mark of whole initialization types;First establishes list
Member, for if it is determined that one or more of process identification (PID) that there is currently process identification (PID) and part or all of initialization type
Any of script file mark initialization type script file mark it is identical, then the process identification (PID) determined with it is initial
Corresponding relation is established between the script file mark of change type.
Alternatively, the second determining module includes:Second comparing unit, for by the process identification (PID) that there is currently with part or
The script file mark of each initialization type is compared in the script file mark of whole initialization types;Computing unit,
For if it is determined that one or more of process identification (PID) that there is currently process identification (PID) and part or all of initialization type
The file identification of any of the script file mark script file of initialization type differs, then what calculating there is currently enters
Journey identifies the phase with the script file mark of each initialization type in the script file of part or all of initialization type mark
Like degree;Second establishes unit, for being less than the process identification (PID) of predetermined threshold value and the script file mark of initialization type in similarity
Corresponding relation is established between knowledge.
Alternatively, computing unit includes:Subelement is obtained, class is initialized with n-th for obtaining in m-th process identification (PID)
The quantity K of identical characters in the script file mark of type, wherein, 1≤M≤T1,1≤N≤T2, T1 are the sum of process identification (PID),
T2 is the sum that the script file of initialization type identifies, and M, N, T1, T2 are positive integer;Computation subunit, for calculating m
With K the first difference and n and K the second difference, and ask for the first difference and the second difference and, obtain m-th process mark
Know the difference value identified with the script file of n-th initialization type, wherein, the character string that m is included by m-th process identification (PID)
Length, the length of character string that n is included by the script file mark of n-th initialization type.
Alternatively, second establish unit and include:Comparing subunit, for by difference value compared with predetermined threshold value;Build
Vertical subelement, if being less than predetermined threshold value for difference value, in m-th process identification (PID) and the script of n-th initialization type
Corresponding relation is established between file identification.
Alternatively, said apparatus includes at least one of:3rd determining module, for according to each initialization type
Script file identifies whether that corresponding process identification (PID) be present determines service corresponding to the script file mark of the initialization type
Running status;Computing module, the performance for process identification (PID) corresponding to the script file mark by each initialization type refer to
Mark set calculates the performance cost of the script file mark corresponding with service of each initialization type respectively;Execution module, for
After receiving one or more service command, every service command in one or more service command is sequentially performed, and passing through
Cross after preset duration, the script file of initialization type corresponding with the service command currently performed is obtained from service list
Running status;If running status changes, the prompt message that service command runs succeeded is sent, if running status is not
Change, then send the prompt message that service command performs failure.
Another further aspect according to embodiments of the present invention, there is provided a kind of service list acquisition device, including:
Sending module, for sending request message to server, wherein, request message currently manages for obtaining server
One or more second terminals service list;Receiving module, the service list sent for the reception server, wherein, clothes
Business device list be server determine the part or all of initialization type of second terminal script file mark and part or
After process identification (PID) corresponding to the script file mark of whole initialization types, according to the script file mark and process determined
Mark generation;Display module, for showing service list.
Another further aspect according to embodiments of the present invention, there is provided a kind of service list reporting device, including:
Acquisition module, for the process identification (PID) for obtaining the script file currently run mark and currently running;Reporting module,
For the script file got mark and process identification (PID) to be reported into server.
In embodiments of the present invention, using receive come from first terminal be used for obtain one or more servers
After the request message of the service list of the one or more second terminals currently managed, it is determined that the portion of one or more second terminals
Point or whole initialization types script file mark and determine part or all of initialization type script file mark pair
The process identification (PID) answered, and according to the script file mark and the mode of process identification (PID) generation service list determined, reached reality
When check the purpose of each service list corresponding to second terminal under second terminal cluster, it is achieved thereby that by using service pin
The completeization service list that this document compares with process provides convenient and technical support skill for the Linux automatic managements serviced
Art effect, and then solve in correlation technique because being mutually matched between service list and process list can not be realized and then can not
Realize the technical problem of the automatic management of Linux services.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of a scenario of service list generation system according to embodiments of the present invention;
Fig. 2 is multiple terminal lists according to the preferred embodiment of the invention by server admin;
Fig. 3 is service list corresponding to particular terminal according to the preferred embodiment of the invention;
Fig. 4 is the flow chart of service list generation method according to embodiments of the present invention;
Fig. 5 is the flow chart of service list acquisition methods according to embodiments of the present invention;
Fig. 6 is the flow chart of service list report method according to embodiments of the present invention;
Fig. 7 is the structured flowchart of service list generating means according to embodiments of the present invention;
Fig. 8 is the structured flowchart of service list generating means according to the preferred embodiment of the invention;
Fig. 9 is the structured flowchart of service list acquisition device according to embodiments of the present invention;
Figure 10 is the structured flowchart of service list reporting device according to embodiments of the present invention;
Figure 11 is a kind of structured flowchart of server according to embodiments of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects
Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use
Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or
Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment
Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product
Or the intrinsic other steps of equipment or unit.
Embodiment 1
According to embodiments of the present invention, a kind of system embodiment for updating service list is additionally provided.Fig. 1 is according to the present invention
The schematic diagram of a scenario of the service list generation system of embodiment.As shown in figure 1, the system can include:First terminal, for
One or more servers send request message, wherein, request message is used to obtain what one or more servers currently managed
The service list of one or more second terminals;One or more servers, for the request sent by receiving first terminal
Message, determine the script file mark of the part or all of initialization type of second terminal and part or all of initialization type
Process identification (PID) corresponding to script file mark, and according to the script file mark determined and process identification (PID), generation service row
Table, and service list is sent to first terminal;One or more second terminals, work as being reported to one or more servers
The script file mark of preceding operation and the process identification (PID) currently run.
Specifically, said one or multiple servers can be data base management system (DMS) server.First terminal with
It can be established and communicated by HTTP (HTTP) between DMS servers, i.e., first terminal can use http protocol
Sending request message and first terminal to DMS can also use http protocol to receive service list from DMS servers.In addition,
It can be communicated between DMS servers and one or more second terminals using the remote protocol based on linux kernel, example
Such as:Remote terminal protocol (Telnet), safety shell protocol (SSH).Further, above-mentioned script file mark corresponds to script
File, above-mentioned script file correspond to the associated service of linux system self-starting operation.
As the optional embodiment of the present invention, first terminal can send above-mentioned request to multiple servers and disappear
Breath, it is advantageous that:In the case of an only server job, the machine if server is delayed because breaking down, then
First terminal will be unable to get above-mentioned service list from the server.Therefore, in the case of using multiple servers, due to
The multiple servers of warp-wise send request message to first terminal, the machine even if one of server is delayed because breaking down, may be used also
In a manner of using masterslave switchover, the server that this breaks down is substituted using other servers, so that it is guaranteed that first terminal
Above-mentioned service list can successfully be got.In addition, in the case of using multiple servers, if one of server
Load too high, can not the above-mentioned request message of timely processing, at this point it is possible to provide this clothes from relatively low server is loaded
Business.
Fig. 2 is multiple terminal lists according to the preferred embodiment of the invention by server admin.It is as shown in Fig. 2 logical
Cross above-mentioned first terminal use cloud account login service device after, can with check whole terminals of the server admin and
Operating system, position and the corresponding current operating conditions that each terminal uses respectively (include but is not limited to:CPU makes
With rate, internal memory occupation rate, disk utilization rate).
Fig. 3 is service list corresponding to particular terminal according to the preferred embodiment of the invention.As shown in figure 3, from service
, can be to be shown in above-mentioned first terminal corresponding to the terminal after choosing one of terminal in multiple terminals that device currently manages
Service list, wherein, the script that the subterminal partly or entirely initialization type chosen can be included in the service list is literary
Process identification (PID) corresponding to the script file mark of part mark and the partly or entirely initialization type;Furthermore it is also possible to comprising
Current operating conditions corresponding to each service and whether belong to initialization type (i.e. starting up).Further, can be with
By user according to particular demands, Scripting Edition is carried out for each service respectively, service is closed or cancels self-starting.
Under above-mentioned running environment, this application provides the method for generation service list as shown in Figure 4.Fig. 4 is basis
The flow chart of the service list generation method of the embodiment of the present invention.As shown in figure 4, this method can include following processing step:
Step S402:The request message for coming from first terminal is received, wherein, request message is current for obtaining server
The service list of one or more second terminals of management;
Step S404:It is determined that the script file mark of the part or all of initialization type of one or more second terminals;
Step S406:It is determined that partly or entirely process identification (PID) corresponding to the script file mark of initialization type;
Step S408:According to the script file mark determined and process identification (PID), service list is generated;
Step S410:Service list is sent to first terminal.
The initialization type that the various services of system are not only included in the script file identification list of all types (opens
It is dynamic/to stop) script file mark, and may also contain the executable script file mark or link script of a variety of services
File identification.Therefore, it is necessary to being included in script file identification list in addition to the script file mark of initialization type
Remaining type script file mark (such as:Executable script file mark or link script file mark) filtered, enter
And filter out the script file mark of part or all of initialization type.
After the process identification (PID) list at current time is got, the complete of running status can be at current time with determination
Portion's process identification (PID), wherein, these process identification (PID)s are by respectively to the script file of the initialization type in script file identification list
Mark matches, i.e., the script file mark of each initialization type can correspond to one or more in process identification (PID) list and enter
Journey identifies, and therefore, class will be initialized with each in the script file of one or more initialization types mark by matching operation
One or more process identification (PID)s of the script file mark matching of type are added into service list, are realized by using service pin
The completeization service list that this document compares with process provides convenient and technical support skill for the Linux automatic managements serviced
Art effect, and then solve in correlation technique because being mutually matched between service list and process list can not be realized and then can not
Realize the technical problem of the automatic management of Linux services.
Alternatively, in step s 404, it is determined that partly or entirely initialization type script file mark can include with
Lower execution step:
Step S4041:Inquire about the script file mark that there is currently and each script file identifies corresponding script
Type;
The startup and stop script file mark that init.d catalogues include the various services of system, its be responsible for controlling it is all from
(X11's acpid (acpid is linux operating system novel power supplies administrative standard) to x11-common is otherwise known as X Window systems
System, X Window systems (X11 or X) are the windows systems that a kind of bitmap is shown, its be Unix and class Unix operating systems with
And the conventional tool bag and agreement of graphic user interface are established on the basis of openVMS, and available for almost existing modern behaviour
Make system) various affairs.
When need check/etc catalogues when, it can be found that (# represents a finger to catalogue existing for many rc#.d forms here
Fixed initialization rank, scope are 0-6).Under these catalogues, many script file marks being controlled to process are contained
Know.Either these script files mark is started with " K ", or started with " S ", wherein, operation is identified with the script file of K beginnings
Before the script file mark started with S, the position that these scripts are placed will determine when these scripts bring into operation, specifically
Command format is as follows:
/ etc/init.d/command options;
Comand is the order of actual motion, and option can have following several:
(1) (start) is started;
(2) (stop) is stopped;
(3) reload (reload);
(4) (restart) is restarted;
(5) force to reload (force-reload);
In above-mentioned option, start, the frequency of use of stop and restart options is higher.For example, if necessary to close
Network is closed, can be to use the order in the form of following:/etc/init.d/networking stop.For another example, if repaiied
Correcting one's mistakes network settings and needs to restart network, then can use and such as issue orders:/etc/init.d/networking
restart
The initializtion script file identification commonly used under init.d catalogues can include but is not limited at least one of:
(1)networking;
(2)samba;
(3)apache2;
(4)ftpd;
(5)sshd;
(6)dovecot;
(7)mysql。
Ls orders are orders the most frequently used under Linux.Ls orders be list (list) abbreviation, default lower ls be used for be in
Service script lists of documents under existing current default directory, if ls is assigned to other catalogues, then specified mesh will be shown
Service script file and file inventory under record.Included in addition, can not only check that Linux files are lower by ls orders
File, and can also look at file permission (including:Catalogue, file, file permission), check directory information etc..
- l, it is ls command options, represents to list the details of script file.
- F, it is ls command options, and expression can add a character to illustrate the class of this document after each filename
Type, wherein, " * " represents executable ordinary file, and "/" represents catalogue, and "@" represents Symbolic Links, and " | " represents FIFOs, "="
Represent socket (sockets).
Perform ls/etc equivalent to one file of result (content is /etc under list of file names), and perform ls/
Etc/init.d/ result is then for listing the service list that can be started or stoped.
Step S4042:The script text of predefined type is removed from the script file mark that there is currently according to script type
Part identifies, and screening obtains the script file mark of part or all of initialization type, wherein, predefined type script file mark bag
Include:All script file marks of the script file mark of executable type and/or whole Symbolic Links types.
The whole classes included under service list can be obtained by using ls-1-F/etc/init.d/ this system command
The service script file identification of type, then, the script file mark of symbol " * " and symbol "@" ending is filtered out, so as to screen
Script file to part or all of initialization type identifies.
Alternatively, in step S406, before determining process identification (PID) corresponding to script file mark, following hold can also be included
Row step:
Step S411:Using system command (such as:Ps-ef) inquire about the process identification (PID) that there is currently;
Step S412:Using system command (such as:/proc/<pid>/ stat) obtain in the process identification (PID) that there is currently
The running state information of each process identification (PID);
Step S413:Incidence relation is established between each process identification (PID) and corresponding running state information.
In l inux process status (process status, referred to as ps) order be under linux system frequency of use compared with
High and powerful process viewing command, it can determine what which current process was currently running and run by running the order
Whether state, process, which terminate, whether process occurs ossified, which process occupies resource etc. too much.Ps orders are most common
It is the working condition for monitoring backstage process to be applicable scene.
Current all process identification (PID)s are checked by running ps-ef, wherein, many kinds of parameters corresponding to each process identification (PID) is released
Justice is as follows:
(1) USER represents user's account that the process is belonged to;
(2) PID represents the number of the process;
(3) %CPU represents the cpu resource percentage spent by the process;
(4) %MEM represents the physical memory percentage shared by the process;
(5) VSZ represents the virtual memory amount (Kbytes) spent by the process;
(6) RSS represents the amount of ram (Kbytes) of the fixation shared by the process;
(7) TTY represents that the process is operated on which terminating machine;
(8) STAT represents the current state of the process, and its state can include but is not limited to one below:
1) R represents that the process is currently operated or can be run;
2) S represents that the process is currently under among sleep, but can be waken up by specific signal (signal);
3) T represents that the process is currently detected or stopped;
4) Z represents that the process should have been terminated, but his father's program but can not normally terminate him, causes ossified
(zombie) state;
(9) START represents that the process is triggered time of startup;
(10) TIME represents the time of process actual use CPU runnings;
(11) COMMAND represents that the process is instructed corresponding to actual.
/proc/<pid>/ stat is the order that process status is checked under linux system.
Under linux system, state of a process can generally include following several:
(1) running status (be currently running or waited in operation queue);
(2) interrupt status (in dormancy, run and be obstructed, waiting the formation of specified conditions or receiving signal specific);
(3) interruptable state (does not receive signal specific not wake up and may not operate, process must wait until that interruption
Occur);
(4) (process has terminated ossified state, but process descriptors are still present, until parent process performs wait4 () system
Discharged after calling);
(5) halted state (process receives SIGSTOP, SIGSTP, SIGTIN, out of service after SIGTOU signals).
Pass through execution/proc/<pid>/ stat system commands, the specific lexical or textual analysis of the multiple parameters of output are as follows:
(1) Name represents application program or the name of order;
(2) State represents the state of task, includes but is not limited to:Operation, sleep, be ossified;
(3) SleepAVG represents the average latency of task (in units of nanosecond);
(4) Tgid represents thread group number;
(5) Pid represents task identification (ID);
(6) Ppid represents Parent process ID;
(7) TracerPid represents to receive the ID number for the process for tracking the progress information;
(8) FDSize represents the maximum number of filec descriptor;
(9) VmSize (KB) represents the size of task virtual address space, wherein, total_vm is the address space of process
Size, reserved_vm is Physical Page of the process between reserved or special internal memory;
(10) size for the physical memory that VmLck (KB) expression task has been pinned, the physical memory of pinning can not be handed over
Change to hard disk;
(11) VmRSS (KB) represents the size for the physical memory that application program is used, i.e. using the parameter of ps orders
Rss value;
(12) size size of virtual memory (i.e. shared) of VmData (KB) representation program data segment, storage be by
The data of initialization;
(13) VmStk (KB) represents size of the task in the stack of User space;
(14) size for the executable virtual memory that VmExe (KB) representation program is possessed, code segment, does not make including task
Storehouse;
(15) VmLib (KB) represents the size in the storehouse of the mapped virtual memory space to task;
(16) VmPTE represents the size of all page tables of the process, unit:kb;
(17) Threads represents the number of shared being accorded with using the signal description for task, in the multi-thread program application journeys of POSIX
In sequence, all threads in sets of threads are accorded with using same signal description.
(18) SigQ represents the number of pending signal;
(19) SigPnd represents mask bit, is stored with the pending signal of the thread;
(20) ShdPnd represents mask bit, is stored with the pending signal of the sets of threads;
(21) signal that SigBlk storages are blocked;
(22) SigIgn deposits ignored signal;
(23) signal that SigCgt storages are trapped;
(24) CapInh Inheritable represent the ability of the succession for the program that can be performed by current process;
(25) CapPrm Permitted represent the ability that process can use, and can include the energy not having in CapEff
Power, these abilities are by process itself temporary adandonment, and CapEff is CapPrm a subset, and process abandons what is be not necessarily to
Ability is advantageous to improve security;
(26) CapEff Effective represent the effective capacity of process.
In a preferred embodiment, process identification (PID) list (secondary series can be obtained using ps-ef system commands first
Pid), then, recycling/proc/ file system obtains the information of process, and it can include but is not limited to:The detailed letter of process
Breath is in/proc/<pid>The utilization rate of process number, process name, user, CPU and internal memory included by in/stat, then will be obtained
Information add into process list.
Alternatively, in step S406, it is determined that partly or entirely process corresponding to the script file mark of initialization type
Mark can include step performed below:
Step S4061:By in the script file of the process identification (PID) that there is currently and part or all of initialization type mark
The script file mark of each initialization type is compared;
Step S4062:If it is determined that one or more of process identification (PID) that there is currently process identification (PID) and part or complete
The script file mark of any of the script file mark of portion's initialization type initialization type is identical, then enters what is determined
Journey identifies establishes corresponding relation between the script file of initialization type mark.
The service script file identification of initialization type in script file identification list both can be independently of process identification (PID)
Process identification (PID) in list, can also be related to the process identification (PID) in process identification (PID) list.Moreover, in script file identification list
The service script file identification of an initialization type both can be only related to a process identification (PID) in process identification (PID) list,
Can certainly be related to multiple process identification (PID)s in process list.And the list of perform script file identification and process identification (PID) list
The purpose of matching operation is that if can determine the service pin of any one initialization type in script file identification list
There are corresponding one or more process identification (PID)s in this document mark, then need that one or more will be determined in process identification (PID) list
Process identification (PID) is added into service list, and is closed with the service script file identification of initialization type service list foundation is corresponding
System.
Specifically, can search whether to have title from script file identification list and process identification (PID) list respectively complete
The file name of the script file of identical initialization type is identical and process title, if it is present directly that title is identical
Process add into service list.Such as:Assuming that entitled autofs (automatic installation clothes in script file identification list be present
Business) initialization type script file mark, and entitled Autofs (automatic installation management in process identification (PID) list be present
Process) process identification (PID), then need to add process identification (PID) Autofs into service list, and autofs service and Autofs
Corresponding relation is established between process.For another example:Assuming that entitled bootparamd in script file identification list be present (imports clothes
Business) initialization type script file mark, and entitled Bootparamd (boot parameters in process identification (PID) list be present
Server) process identification (PID), then need to add Bootparamd process identification (PID)s into service list, and script file identify
Corresponding relation is established between bootparamd and process identification (PID) Bootparamd.
Alternatively, in step S406, it is determined that partly or entirely process corresponding to the script file mark of initialization type
Mark can include step performed below:
Step S4063:By in the script file of the process identification (PID) that there is currently and part or all of initialization type mark
The script file mark of each initialization type is compared;
Step S4064:If it is determined that one or more of process identification (PID) that there is currently process identification (PID) and part or complete
The file identification of any of the script file mark of the portion's initialization type script file of initialization type differs, then counts
The process identification (PID) that there is currently and the pin of each initialization type in the script file mark of part or all of initialization type
The similarity of this document mark;
Step S4065:It is less than the process identification (PID) of predetermined threshold value in similarity and the script file of initialization type identifies it
Between establish corresponding relation.
In actual comparison process, except determine the process title of one or more of whole processes process with one or
Outside the file name of the script file of any of the script file of multiple initialization types initialization type is identical, or,
In the process title and the script file of one or more initialization types for not finding one or more of whole processes process
Any of in the case of the file name identical of the script file of initialization type, then need by calculation procedure title and text
The similarity of part title establishes the corresponding relation between the script file of initialization type and one or more processes.
Specifically, can by Longest Common Substring algorithm come calculation document title and process name be referred to as between similarity.
Such as:File name is " acedfe ", and process is entitled " aede ", then the Longest Common Substring of file name and process title is
Character string " aede ", i.e., no matter whether character in character string is adjacent, is all included as long as it is file name and process title
And the substring that length is most long.
Alternatively, in step S4064, the pin for the process identification (PID) and part or all of initialization type that there is currently is calculated
The similarity bag of the script file mark of each initialization type can include step performed below in this document mark:
Step S40641:Obtain same word in being identified in m-th process identification (PID) with the script file of n-th initialization type
The quantity K of symbol, wherein, 1≤M≤T1,1≤N≤T2, T1 are the sum of process identification (PID), and T2 is the script file of initialization type
The sum of mark, and M, N, T1, T2 are positive integer;
Step S40642:M and K the first difference and n and K the second difference are calculated, and asks for the first difference and second
The sum of difference, m-th process identification (PID) and the difference value of the script file mark of n-th initialization type are obtained, wherein, m is M
The length for the character string that individual process identification (PID) is included, the character string that n is included by the script file mark of n-th initialization type
Length.
In a preferred embodiment, for the matching process used for difference matching algorithm, its specific operation process is as follows:
Assuming that the file name of the entitled M of m-th process [m] and the script file of n-th initialization type is N [n],
Wherein, the length for the character string that m is included by the process title of m-th process, n are the script file of n-th initialization type
The length of character string that is included of file name;In addition, it is t (being arranged to 2 under normal circumstances) to preset matching threshold.Tool
Body comparison process may comprise steps of:
The first step, the file name for comparing the entitled M of m-th process [m] and the script file of n-th initialization type are
Whether N [n] is identical, if it is not, then continuing executing with second step;
Second step, the maximum public substring algorithm of operation, obtain the entitled M of m-th process [m] and n-th initialization type
Script file maximum public substring P [k] of the file name between N [n];
3rd step, calculate the entitled M of m-th process [m] and the file name of the script file of n-th initialization type is
N [n] difference value (diff) is:Diff=m-k+p-k.
Alternatively, in step S4065, the process identification (PID) of predetermined threshold value and the script of initialization type are less than in similarity
Corresponding relation is established between file identification can include step performed below:
Step S40651:By difference value compared with predetermined threshold value;
Step S40652:If difference value is less than predetermined threshold value, in m-th process identification (PID) and n-th initialization type
Script file mark between establish corresponding relation.
After above-mentioned difference value is calculated, it is necessary to by difference value (diff) and preset matching threshold t (such as:T=
2) it is compared, if diff<T then adds m-th process to service list;If diff >=t, continue to calculate M+1
The individual entitled M of process [m] and the similarity of the file name of the script file of n-th initialization type.
Alternatively, in step S408, identified according to the script file determined after generating service list with process identification (PID),
At least one step performed below can also be included:
Step S414:Identify whether that corresponding process identification (PID) be present determines to be somebody's turn to do according to the script file of each initialization type
The running status of service corresponding to the script file mark of initialization type.
If there is corresponding one or more processes in the script file mark of the initialization type in service list
Mark (the process identification (PID) quantity matched with the script file mark of the initialization type is more than or equal to 1), then can consider
The service that the script file mark of the initialization type is corresponding is in normal operating condition.If however, in service list
The script file mark of initialization type be not present corresponding one or more process identification (PID)s (i.e. with the initialization type
The process identification (PID) quantity of script file mark matching is 0), then it is considered that corresponding to the script file mark of the initialization type
Service be in off-duty state, and then realize independent of script and the service state determination methods of service orders, raising
The order of accuarcy of judgement.
Step S415:Pass through the performance indications set of process identification (PID) corresponding to the script file mark of each initialization type
The performance cost of the script file mark corresponding with service of each initialization type is calculated respectively.
Because the one or more process identification (PID)s for matching the script file mark with an initialization type add
Into service list, therefore, can by performance indications set corresponding to said one or multiple process identification (PID)s (including but not
It is limited to:CPU occupation rates, internal memory occupation rate, network traffics) performance cost that the script file of the initialization type identifies is calculated,
So as to more accurately acquire the performance cost of service.
Specifically, it is assumed that process identification (PID) B, process identification (PID) C and process mark corresponding to the script file mark A of initialization type
Know D, by process identification (PID) B, process identification (PID) C and process identification (PID) D add to service list and with the script file of initialization type
After mark A establishes corresponding relation, it is further assumed that process identification (PID) B CPU occupation rates are 5%, process identification (PID) C CPU occupation rates
CPU occupation rates for 15% and process identification (PID) D are 5%, then the script file of initialization type identifies A in CPU occupation rates
Performance indications on occupy for process identification (PID) B CPU occupation rates, process identification (PID) C CPU occupation rates and process identification (PID) D CPU
Three's summation (i.e. 25%) of rate.
Step S416:After one or more service command is received, sequentially perform in one or more service command
Every service command, and after by preset duration, obtained from service list corresponding with the service command currently performed first
The running status of the script file of beginningization type;If running status changes, send that service command runs succeeded carries
Show information, if running status does not change, send the prompt message that service command performs failure.
The default storage region can be message (or behavior) queue, it is contemplated that obtain service command and processing service command
Process be likely to be asynchronous, therefore, it is necessary to first pass through message (or behavior) queue is sent to user one or more
Service command is stored, and then service command performs successively one by one, can be from queue for the service command of successful execution
Delete, and the service command for performing not successfully, then need to detect whether to be successfully executed.
, can be first by the behavior record of user to use when user initiates to be turned on and off special services from client front end
Family behavior queue, delay strategy, the timing acquisition service state are then set up, if the service state is also not after certain time
Change, then prompt user service to be turned on and off failure, otherwise, prompt successful information.
Such as:User sends acpi services of opening, adsl services, arpwatch services, cups services and dhcpd successively
The system command of service, it is necessary first to the open command for first servicing acpi, the open command of adsl services, arpwatch clothes
The open command of business, the open command of cups services and the open command of dhcpd services are stored to user behavior queue, so
Afterwards, perform the open command of acpi services, the open command of adsl services, the open command of arpwatch services one by one,
The open command of cups services and the open command of dhcpd services are stored to user behavior queue, while set up delay strategy,
Timing acquisition performed according to open command after service state, if finding which service state also not after certain time
Change, then prompt user service to open failure, otherwise, all services that prompts the user with are opened successfully.
Under above-mentioned running environment, this application provides service list acquisition methods as shown in Figure 5.This method is applied to
Above-mentioned first terminal.Fig. 5 is the flow chart of service list acquisition methods according to embodiments of the present invention.As shown in figure 5, this method
Following processing step can be included:
Step S502:Request message is sent to server, wherein, request message is used to obtain server currently manages one
The service list of individual or multiple second terminals;
Step S504:The service list that simultaneously display server is sent is received, wherein, server list is determined in server
The script file mark of the part or all of initialization type gone out under second terminal and the script of part or all of initialization type
After process identification (PID) corresponding to file identification, generated according to the script file mark determined and process identification (PID).
Under above-mentioned running environment, this application provides service list report method as shown in Figure 6.This method is applied to
Said one or multiple second terminals.Fig. 6 is the flow chart of service list report method according to embodiments of the present invention.Such as Fig. 6
Shown, this method can include following processing step:
Step S602:Obtain the script file mark currently run and the process identification (PID) currently run;
Step S604:The script file got mark and process identification (PID) are reported into server.
It can be established and communicated by HTTP between first terminal and DMS servers (cluster), i.e., first terminal can use
Http protocol sends request message and first terminal to DMS to use http protocol to be received from DMS servers (cluster)
Service list.By send request message to DMS servers (cluster) know that DMS servers (cluster) currently manage second
The service list of terminal (cluster).And in order to generate server list, DMS servers (cluster) and second terminal (cluster) it
Between can be communicated using the remote protocol based on linux kernel, such as:Telnet, SSH.Each second terminal both can be with
, can also according to the script file mark currently run in the predetermined period active obtaining terminal and the process identification (PID) currently run
After the query statement for coming from DMS servers (cluster) is received, obtain further according to query statement and currently run in the terminal
Script file mark and the process identification (PID) that currently runs;Similarly, each second terminal both can be according in predetermined period active
The script file mark got and process identification (PID) are reported, can also be referred to receiving the inquiry that comes from DMS servers (cluster)
After order, the script file mark got and process identification (PID) are reported further according to query statement.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because
According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know
Know, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of the renewal service list of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to lead to
Cross hardware, but the former is more preferably embodiment in many cases.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art can be embodied in the form of software product, and the computer software product is deposited
Storage is in a storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions are causing a station terminal equipment (can be with
It is mobile phone, computer, server, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, a kind of device for being used to implement above-mentioned service list generation method is additionally provided to implement
Example, Fig. 7 is the structured flowchart of service list generating means according to embodiments of the present invention.As shown in fig. 7, the device includes:Connect
Module 700 is received, the request message of first terminal is come from for receiving, wherein, request message works as front tube for obtaining server
The service list of one or more second terminals of reason;First determining module 702, for determining one or more second terminals
The script file mark of part or all of initialization type;Second determining module 704, for determining partly or entirely to initialize class
Process identification (PID) corresponding to the script file mark of type;Generation module 706, for according to the script file mark and process determined
Mark, generate service list;Sending module 708, for service list to be sent to first terminal.
Alternatively, script file mark corresponds to script file.
Alternatively, script file corresponds to the service of startup optimization association.
Alternatively, the first determining module 702 can include:Query unit (not shown), it there is currently for inquiring about
Script file mark and the corresponding script type of each script file mark;Clearing cell (not shown), is used for
The script file for removing predefined type from the script file mark that there is currently according to script type identifies, and screening obtains part
Or the script file mark of whole initialization types, wherein, predefined type script file mark includes:It all can perform type
Script file identifies and/or the script file of whole Symbolic Links types mark.
Alternatively, Fig. 8 is the structured flowchart of service list generating means according to the preferred embodiment of the invention.Such as Fig. 8 institutes
Show, said apparatus can also include:Enquiry module 710, for inquiring about the process identification (PID) that there is currently;Acquisition module 712, is used for
Obtain the running state information of each process identification (PID) in the process identification (PID) that there is currently;Module 714 is established, in each process
Mark between corresponding running state information with establishing incidence relation.
Alternatively, the second determining module 704 can include:First comparing unit (not shown), for will currently deposit
Process identification (PID) and part or all of initialization type script file mark in each initialization type script file mark
Knowledge is compared;First establishes unit (not shown), for if it is determined that one in the process identification (PID) that there is currently or
The script file of any of the script file of multiple process identification (PID)s and part or all of initialization type mark initialization type
Identify it is identical, then the process identification (PID) and initialization type determined script file mark between establish corresponding relation.
Alternatively, the second determining module 704 can include:Second comparing unit (not shown), for will currently deposit
Process identification (PID) and part or all of initialization type script file mark in each initialization type script file mark
Knowledge is compared;Computing unit (not shown), for if it is determined that one or more of process identification (PID) that there is currently
The text of any of the script file of the process identification (PID) and part or all of initialization type mark script file of initialization type
Part mark differs, then in the script file mark for calculating the process identification (PID) and part or all of initialization type that there is currently
The similarity of the script file mark of each initialization type;Second establishes unit (not shown), for small in similarity
Corresponding relation is established between the process identification (PID) of predetermined threshold value and the script file mark of initialization type.
Alternatively, computing unit can include:Subelement (not shown) is obtained, for obtaining m-th process identification (PID)
In quantity K with identical characters in the script file of n-th initialization type mark, wherein, 1≤M≤T1,1≤N≤T2, T1
For the sum of process identification (PID), T2 is the sum that the script file of initialization type identifies, and M, N, T1, T2 are positive integer;Meter
Operator unit (not shown), for calculating m and K the first difference and n and K the second difference, and ask for the first difference
With the second difference and, obtain the difference value that the script file of m-th process identification (PID) and n-th initialization type identifies, wherein,
The length for the character string that m is included by m-th process identification (PID), n are included by the script file mark of n-th initialization type
The length of character string.
Alternatively, second establish unit and can include:Comparing subunit (not shown), for by difference value with it is default
Threshold value is compared;Subelement is established, if being less than predetermined threshold value for difference value, at the beginning of m-th process identification (PID) and n-th
Corresponding relation is established between the script file mark of beginningization type.
Alternatively, as shown in figure 8, said apparatus can also include at least one of:3rd determining module 716, is used for
Identified whether to determine the script of the initialization type in the presence of corresponding process identification (PID) according to the script file of each initialization type
The running status of service corresponding to file identification;Computing module 718, for being identified by the script file of each initialization type
The performance indications set of corresponding process identification (PID) calculates the property of the script file mark corresponding with service of each initialization type respectively
Can expense;Execution module 720, for after one or more service command is received, sequentially performing one or more service life
Every service command in order, and after by preset duration, the service command pair with currently performing is obtained from service list
The running status of the script file for the initialization type answered;If running status changes, send service command perform into
The prompt message of work(, if running status does not change, send the prompt message that service command performs failure.
According to embodiments of the present invention, a kind of device for being used to implement above-mentioned service list acquisition methods is additionally provided to implement
Example, Fig. 9 is the structured flowchart of service list acquisition device according to embodiments of the present invention.As shown in figure 9, the device includes:Hair
Module 900 is sent, for sending request message to server, wherein, request message is used to obtain one that server currently manages
Or the service list of multiple second terminals;Receiving module 902, the service list sent for the reception server, wherein, server
List be server determine the part or all of initialization type of second terminal script file mark and partly or entirely
After process identification (PID) corresponding to the script file mark of initialization type, according to the script file mark determined and process identification (PID)
Generation;Display module 904, for showing service list.
According to embodiments of the present invention, a kind of device for being used to implement above-mentioned service list report method is additionally provided to implement
Example, Figure 10 is the structured flowchart of service list reporting device according to embodiments of the present invention.As shown in Figure 10, the device includes:
Acquisition module 1002, for the process identification (PID) for obtaining the script file currently run mark and currently running;Reporting module 1004,
For the script file got mark and process identification (PID) to be reported into server.
Embodiment 3
Embodiments of the invention can provide a kind of terminal, and the terminal can be in terminal group
Any one computer terminal.Alternatively, in the present embodiment, above computer terminal can also replace with mobile whole
The terminal devices such as end.
Alternatively, in the present embodiment, above computer terminal can be located in multiple network equipments of computer network
At least one network equipment.
Alternatively, Figure 11 is a kind of structured flowchart of server according to embodiments of the present invention.As shown in figure 11, the service
Device can include:One or more (one is only shown in figure) processors and memory.
Wherein, memory can be used for storage software program and module, such as the service list generation in the embodiment of the present invention
Programmed instruction/module corresponding to method and apparatus, processor are stored in software program and module in memory by operation,
So as to perform various function application and data processing, that is, realize above-mentioned service list generation method.Memory may include at a high speed
Random access memory, nonvolatile memory can also be included, as one or more magnetic storage device, flash memory or other
Non-volatile solid state memory.In some instances, memory can further comprise relative to the remotely located storage of processor
Device, these remote memories can pass through network connection to server.The example of above-mentioned network includes but is not limited to internet, enterprise
Industry in-house network, LAN, mobile radio communication and combinations thereof.
Processor can call the information and application program of memory storage by transmitting device, to perform following step:
S1:The request message for coming from first terminal is received, wherein, request message is used to obtain what server currently managed
The service list of one or more second terminals;
S2:It is determined that the script file mark of the part or all of initialization type of one or more second terminals;
S3:It is determined that partly or entirely process identification (PID) corresponding to the script file mark of initialization type;
S4:According to the script file mark determined and process identification (PID), service list is generated;
S5:Service list is sent to first terminal.
Optionally, above-mentioned processor can also carry out the program code of following steps:Inquire about the script file that there is currently
Script type corresponding to mark and each script file mark;Identified according to script type from the script file that there is currently
The middle script file mark for removing predefined type, screening obtain the script file mark of part or all of initialization type, wherein,
Predefined type script file mark includes:All the script files mark of executable types and/or whole Symbolic Links types
Script file identifies.
Optionally, above-mentioned processor can also carry out the program code of following steps:Inquire about the process identification (PID) that there is currently;
Obtain the running state information of each process identification (PID) in the process identification (PID) that there is currently;In each process identification (PID) and corresponding operation
Incidence relation is established between status information.
Optionally, above-mentioned processor can also carry out the program code of following steps:By the process identification (PID) that there is currently with
The script file mark of each initialization type is compared in the script file mark of part or all of initialization type;If
It is determined that one or more of process identification (PID) that there is currently process identification (PID) and the script file of part or all of initialization type
The script file mark of any of mark initialization type is identical, then in the process identification (PID) determined and the pin of initialization type
Corresponding relation is established between this document mark.
Optionally, above-mentioned processor can also carry out the program code of following steps:By the process identification (PID) that there is currently with
The script file mark of each initialization type is compared in the script file mark of part or all of initialization type;If
It is determined that one or more of process identification (PID) that there is currently process identification (PID) and the script file of part or all of initialization type
Any of the mark file identification of the script file of initialization type differs, then calculate the process identification (PID) that there is currently with
The similarity of the script file mark of each initialization type in the script file mark of part or all of initialization type;In phase
Like degree corresponding relation is established less than between the process identification (PID) of predetermined threshold value and the script file mark of initialization type.
Optionally, above-mentioned processor can also carry out the program code of following steps:Obtain in m-th process identification (PID) with the
The quantity K of identical characters in the script file mark of N number of initialization type, wherein, 1≤M≤T1,1≤N≤T2, T1 are process
The sum of mark, T2 is the sum that the script file of initialization type identifies, and M, N, T1, T2 are positive integer;Calculate m and K
The first difference and n and K the second difference, and ask for the first difference and the second difference and, obtain m-th process identification (PID) and
The difference value of the script file mark of n-th initialization type, wherein, the length for the character string that m is included by m-th process identification (PID)
Degree, the length for the character string that n is included by the script file mark of n-th initialization type.
Optionally, above-mentioned processor can also carry out the program code of following steps:Difference value and predetermined threshold value are carried out
Compare;If difference value is less than predetermined threshold value, identified in the script file of m-th process identification (PID) and n-th initialization type
Between establish corresponding relation.
Optionally, above-mentioned processor can also carry out the program code of following steps:According to the pin of each initialization type
This document identifies whether the fortune that corresponding process identification (PID) determines service corresponding to the script file mark of the initialization type be present
Row state;Calculated respectively often by the performance indications set of process identification (PID) corresponding to the script file mark of each initialization type
The performance cost of the script file mark corresponding with service of individual initialization type;After one or more service command is received, press
Sequence performs every service command in one or more service command, and after by preset duration, is obtained from service list
The running status of the script file of initialization type corresponding with the service command currently performed;If running status changes
Become, then send the prompt message that service command runs succeeded, if running status does not change, send service command execution
The prompt message of failure.
It will appreciated by the skilled person that the structure shown in Figure 11 is only to illustrate, it is not filled to above-mentioned electronics
The structure put causes to limit.For example, server may also include the component more or less than shown in Figure 11, (such as network connects
Mouth, display device etc.), or there is the configuration different from shown in Figure 11.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
To be completed by program come command terminal equipment or server related hardware, it is computer-readable that the program can be stored in one
In storage medium, storage medium can include:Flash disk, read-only storage (Read-Only Memory, referred to as ROM), with
Machine memory access (Random Access Memory, referred to as RAM), disk or CD etc..
Embodiment 4
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can
The program code performed by service list generation method provided for preservation above-described embodiment one.
Alternatively, in the present embodiment, above-mentioned storage medium can be located in computer network Computer terminal group
In any one terminal, or in any one mobile terminal in mobile terminal group.
Alternatively, in the present embodiment, storage medium is arranged to the program code that storage is used to perform following steps:
S1:The request message for coming from first terminal is received, wherein, request message is used to obtain what server currently managed
The service list of one or more second terminals;
S2:It is determined that the script file mark of the part or all of initialization type of one or more second terminals;
S3:It is determined that partly or entirely process identification (PID) corresponding to the script file mark of initialization type;
S4:According to the script file mark determined and process identification (PID), service list is generated;
S5:Service list is sent to first terminal.
Optionally, above-mentioned storage medium is also configured to the program code that storage is used to perform following steps:Inquiry is current
Script type corresponding to existing script file mark and each script file mark;According to script type from there is currently
Script file mark in remove predefined type script file mark, screening obtain the script of part or all of initialization type
File identification, wherein, predefined type script file mark includes:The script files mark and/or whole of the executable types of whole
The script file mark of Symbolic Links type.
Optionally, above-mentioned storage medium is also configured to the program code that storage is used to perform following steps:Inquiry is current
Existing process identification (PID);Obtain the running state information of each process identification (PID) in the process identification (PID) that there is currently;In each process
Mark between corresponding running state information with establishing incidence relation.
Optionally, above-mentioned storage medium is also configured to the program code that storage is used to perform following steps:To currently it deposit
Process identification (PID) and part or all of initialization type script file mark in each initialization type script file mark
Knowledge is compared;If it is determined that one or more of process identification (PID) that there is currently process identification (PID) and partly or entirely initialization
The script file mark of any of the script file mark of type initialization type is identical, then the process identification (PID) determined with
Corresponding relation is established between the script file mark of initialization type.
Optionally, above-mentioned storage medium is also configured to the program code that storage is used to perform following steps:To currently it deposit
Process identification (PID) and part or all of initialization type script file mark in each initialization type script file mark
Knowledge is compared;If it is determined that one or more of process identification (PID) that there is currently process identification (PID) and partly or entirely initialization
The file identification of any of the script file mark of the type script file of initialization type differs, then calculates and currently deposit
Process identification (PID) and part or all of initialization type script file mark in each initialization type script file mark
The similarity of knowledge;It is less than foundation pair between the process identification (PID) of predetermined threshold value and the script file mark of initialization type in similarity
It should be related to.
Optionally, above-mentioned storage medium is also configured to the program code that storage is used to perform following steps:Obtain m-th
The quantity K of identical characters in being identified in process identification (PID) with the script file of n-th initialization type, wherein, 1≤M≤T1,1≤N
≤ T2, T1 are the sum of process identification (PID), and T2 is the sum that the script file of initialization type identifies, and M, N, T1, T2 are just
Integer;Calculate m and K the first difference and n and K the second difference, and ask for the first difference and the second difference and, obtain the
The difference value that the script file of M process identification (PID) and n-th initialization type identifies, wherein, m is wrapped by m-th process identification (PID)
The length of the character string contained, the length for the character string that n is included by the script file mark of n-th initialization type.
Optionally, above-mentioned storage medium is also configured to the program code that storage is used to perform following steps:By difference value
Compared with predetermined threshold value;If difference value is less than predetermined threshold value, in m-th process identification (PID) and n-th initialization type
Script file mark between establish corresponding relation.
Optionally, above-mentioned storage medium is also configured to the program code that storage is used to perform following steps:According to each
The script file of initialization type identifies whether the script file mark that corresponding process identification (PID) determines the initialization type be present
The running status of corresponding service;Pass through the performance indications of process identification (PID) corresponding to the script file mark of each initialization type
Set calculates the performance cost of the script file mark corresponding with service of each initialization type respectively;Receiving one or more
After service command, every service command in one or more service command is sequentially performed, and after by preset duration, from
Service list obtains the running status of the script file of initialization type corresponding with the service command currently performed;If operation
State changes, then sends the prompt message that service command runs succeeded, if running status does not change, sends clothes
Business order performs the prompt message of failure.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment
The part of detailed description, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, others can be passed through
Mode is realized.Wherein, device embodiment described above is only schematical, such as the division of the unit, is only
A kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module
Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
Equipment (can be personal computer, server or network equipment etc.) perform each embodiment methods described of the present invention whole or
Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes
Medium.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (25)
1. a kind of service list generates system, it is characterised in that including:
First terminal, for sending request message to one or more servers, wherein, the request message is described for obtaining
The service list for one or more second terminals that one or more servers currently manage;
One or more of servers, for the request message sent by receiving the first terminal, it is determined that described
The script of the script file mark of the part or all of initialization type of second terminal and the partly or entirely initialization type
Process identification (PID) corresponding to file identification, and according to the script file mark determined and process identification (PID), generate the service row
Table, and the service list is sent to the first terminal;
One or more second terminals, for reporting the script file mark currently run to one or more of servers
The process identification (PID) known and currently run.
A kind of 2. service list generation method, it is characterised in that including:
The request message for coming from first terminal is received, wherein, the request message is used to obtain server currently manages one
The service list of individual or multiple second terminals;
It is determined that the script file mark of the part or all of initialization type of one or more second terminals;
Determine process identification (PID) corresponding to the script file mark of the partly or entirely initialization type;
According to the script file mark determined and process identification (PID), the service list is generated;
The service list is sent to the first terminal.
3. according to the method for claim 2, it is characterised in that the script file mark corresponds to script file.
4. according to the method for claim 2, it is characterised in that the script file corresponds to the clothes of startup optimization association
Business.
5. according to the method for claim 2, it is characterised in that determine the script text of the partly or entirely initialization type
Part mark includes:
Inquire about the script file mark that there is currently and each script file identifies corresponding script type;
The script file for removing predefined type from the script file mark that there is currently according to the script type identifies,
Screening obtains the script file mark of the partly or entirely initialization type, wherein, the predefined type script file mark
Including:All script file marks of the script file mark of executable type and/or whole Symbolic Links types.
6. according to the method for claim 2, it is characterised in that it is determined that process identification (PID) corresponding to script file mark
Before, in addition to:
Inquire about the process identification (PID) that there is currently;
The running state information of each process identification (PID) in the process identification (PID) that there is currently described in acquisition;
Incidence relation is established between each process identification (PID) and corresponding running state information.
7. according to the method for claim 6, it is characterised in that determine the script text of the partly or entirely initialization type
Process identification (PID) corresponding to part mark includes:
It is each first during the script file of the process identification (PID) that there is currently and the partly or entirely initialization type is identified
The script file mark of beginningization type is compared;
If it is determined that one or more of described process identification (PID) that there is currently process identification (PID) with it is described partly or entirely initial
It is identical to change the script file mark of any of the script file mark of type initialization type, then in the process identification (PID) determined
Corresponding relation is established between the script file mark of initialization type.
8. the method according to claim 6 or 7, it is characterised in that determine the pin of the partly or entirely initialization type
Process identification (PID) corresponding to this document mark includes:
It is each first during the script file of the process identification (PID) that there is currently and the partly or entirely initialization type is identified
The script file mark of beginningization type is compared;
If it is determined that one or more of described process identification (PID) that there is currently process identification (PID) with it is described partly or entirely initial
The file identification for changing any of the script file mark of the type script file of initialization type differs, then described in calculating
The process identification (PID) that there is currently and each initialization type in the script file mark of the partly or entirely initialization type
The similarity of script file mark;
It is less than in similarity between the process identification (PID) of predetermined threshold value and the script file mark of initialization type and establishes corresponding relation.
9. according to the method for claim 8, it is characterised in that the process identification (PID) that there is currently described in calculating and the part
Or the similarity of the script file mark of each initialization type includes in the script file mark of whole initialization types:
The quantity K with identical characters in the script file mark of n-th initialization type in m-th process identification (PID) is obtained, wherein,
1≤M≤T1,1≤N≤T2, T1 is the sums of process identification (PID), the sum that T2 identifies for the script file of initialization type, and M,
N, T1, T2 are positive integer;
M and K the first difference and n and K the second difference are calculated, and asks for first difference and second difference
With, the m-th process identification (PID) and the difference value of the script file mark of the n-th initialization type are obtained, wherein, m is
The length for the character string that the m-th process identification (PID) is included, n identify institute for the script file of the n-th initialization type
Comprising character string length.
10. according to the method for claim 9, it is characterised in that be less than the process identification (PID) of the predetermined threshold value in similarity
Establishing the corresponding relation between the script file mark of initialization type includes:
By the difference value compared with the predetermined threshold value;
If the difference value is less than predetermined threshold value, in the m-th process identification (PID) and the pin of the n-th initialization type
Corresponding relation is established between this document mark.
11. according to the method for claim 1, it is characterised in that according to the script file mark and process mark determined
Know after generating the service list, in addition at least one of:
Identify whether that corresponding process identification (PID) be present determines the initialization type according to the script file of each initialization type
The running status of service corresponding to script file mark;
Calculated respectively by the performance indications set of process identification (PID) corresponding to the script file mark of each initialization type each
The performance cost of the script file mark corresponding with service of initialization type;
After one or more service command is received, every service life in one or more service command is sequentially performed
Order, and after by preset duration, class is initialized from service list acquisition is corresponding with the service command currently performed
The running status of the script file of type;If the running status changes, the prompting that service command runs succeeded is sent
Information, if the running status does not change, send the prompt message that service command performs failure.
A kind of 12. service list acquisition methods, it is characterised in that including:
Send request message to server, wherein, the request message be used to obtaining one that the server currently manages or
The service list of multiple second terminals;
The service list that the server is sent is received and shows, wherein, the server list is in the server
Determine the script file mark of the part or all of initialization type of the second terminal and the partly or entirely initialization
After process identification (PID) corresponding to the script file mark of type, generated according to the script file mark determined and process identification (PID)
's.
A kind of 13. service list report method, it is characterised in that including:
Obtain the script file mark currently run and the process identification (PID) currently run;
The script file got mark and process identification (PID) are reported into server.
A kind of 14. service list generating means, it is characterised in that including:
Receiving module, the request message of first terminal is come from for receiving, wherein, the request message is used to obtain server
The service list of the one or more second terminals currently managed;
First determining module, the script text of the part or all of initialization type for determining one or more second terminals
Part identifies;
Second determining module, for determining process mark corresponding to the script file mark of the partly or entirely initialization type
Know;
Generation module, for according to the script file mark determined and process identification (PID), generating the service list;
Sending module, for the service list to be sent to the first terminal.
15. device according to claim 14, it is characterised in that the script file mark corresponds to script file.
16. device according to claim 15, it is characterised in that the script file corresponds to the clothes of startup optimization association
Business.
17. device according to claim 15, it is characterised in that first determining module includes:
Query unit, corresponding script type is identified for inquiring about the script file that there is currently mark and each script file
Type;
Clearing cell, for removing predefined type from the script file mark that there is currently according to the script type
Script file identifies, and screening obtains the script file mark of the partly or entirely initialization type, wherein, the predefined type
Script file mark includes:All the script file mark of executable type and/or the script file of whole Symbolic Links types
Mark.
18. device according to claim 15, it is characterised in that described device also includes:
Enquiry module, for inquiring about the process identification (PID) that there is currently;
Acquisition module, for obtaining the running state information of each process identification (PID) in the process identification (PID) that there is currently;
Module is established, for establishing incidence relation between each process identification (PID) and corresponding running state information.
19. device according to claim 18, it is characterised in that second determining module includes:
First comparing unit, for by the process identification (PID) that there is currently with it is described partly or entirely initialization type script
The script file mark of each initialization type is compared in file identification;
First establishes unit, for if it is determined that one or more of described process identification (PID) that there is currently process identification (PID) and institute
It is identical to state the script file mark of any of the script file mark of part or all of initialization type initialization type, then exists
Corresponding relation is established between the process identification (PID) determined and the script file mark of initialization type.
20. the device according to claim 18 or 19, it is characterised in that second determining module includes:
Second comparing unit, for by the process identification (PID) that there is currently with it is described partly or entirely initialization type script
The script file mark of each initialization type is compared in file identification;
Computing unit, for if it is determined that one or more of described process identification (PID) that there is currently process identification (PID) and the portion
Point or whole initialization types any of the script file mark script file of initialization type file identification not phase
Together, then the script file of the process identification (PID) that there is currently described in calculating and the partly or entirely initialization type is each in identifying
The similarity of the script file mark of initialization type;
Second establishes unit, is identified for being less than the process identification (PID) of predetermined threshold value and the script file of initialization type in similarity
Between establish corresponding relation.
21. device according to claim 20, it is characterised in that the computing unit includes:
Obtain subelement, for obtain in m-th process identification (PID) with same word in the script file of n-th initialization type mark
The quantity K of symbol, wherein, 1≤M≤T1,1≤N≤T2, T1 are the sum of process identification (PID), and T2 is the script file of initialization type
The sum of mark, and M, N, T1, T2 are positive integer;
Computation subunit, for calculating m and K the first difference and n and K the second difference, and ask for first difference with
The sum of second difference, obtain the m-th process identification (PID) and the difference of the script file mark of the n-th initialization type
Different value, wherein, the length for the character string that m is included by the m-th process identification (PID), n is the pin of the n-th initialization type
This document identifies the length of included character string.
22. device according to claim 21, it is characterised in that described second, which establishes unit, includes:
Comparing subunit, for by the difference value compared with the predetermined threshold value;
Subelement is established, if being less than predetermined threshold value for the difference value, in the m-th process identification (PID) and the N
Corresponding relation is established between the script file mark of individual initialization type.
23. device according to claim 14, it is characterised in that described device includes at least one of:
3rd determining module, it is true in the presence of corresponding process identification (PID) for being identified whether according to the script file of each initialization type
The running status of service corresponding to the script file mark of the fixed initialization type;
Computing module, the performance indications set for process identification (PID) corresponding to the script file mark by each initialization type
The performance cost of the script file mark corresponding with service of each initialization type is calculated respectively;
Execution module, for after one or more service command is received, sequentially performing one or more service command
In every service command, and by after preset duration, the service command with currently performing is obtained from the service list
The running status of the script file of corresponding initialization type;If the running status changes, service command is sent
The prompt message to run succeeded, if the running status does not change, send the prompting letter that service command performs failure
Breath.
A kind of 24. service list acquisition device, it is characterised in that including:
Sending module, for sending request message to server, wherein, the request message is current for obtaining the server
The service list of one or more second terminals of management;
Receiving module, the service list sent for receiving the server, wherein, the server list is described
Server determine the part or all of initialization type of the second terminal script file mark and it is described partly or entirely
After process identification (PID) corresponding to the script file mark of initialization type, according to the script file mark determined and process identification (PID)
Generation;
Display module, for showing the service list.
A kind of 25. service list reporting device, it is characterised in that including:
Acquisition module, for the process identification (PID) for obtaining the script file currently run mark and currently running;
Reporting module, for the script file got mark and process identification (PID) to be reported into server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610560803.1A CN107623581B (en) | 2016-07-15 | 2016-07-15 | Service list generation method, device and system, and acquisition and reporting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610560803.1A CN107623581B (en) | 2016-07-15 | 2016-07-15 | Service list generation method, device and system, and acquisition and reporting method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107623581A true CN107623581A (en) | 2018-01-23 |
CN107623581B CN107623581B (en) | 2020-11-24 |
Family
ID=61087721
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610560803.1A Active CN107623581B (en) | 2016-07-15 | 2016-07-15 | Service list generation method, device and system, and acquisition and reporting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107623581B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109302305A (en) * | 2018-08-08 | 2019-02-01 | 杭州安恒信息技术股份有限公司 | A kind of clustering performance test method based on industrial control system |
CN112579385A (en) * | 2019-09-29 | 2021-03-30 | 中国石油天然气集团有限公司 | Server file monitoring method and device |
CN112948098A (en) * | 2021-05-12 | 2021-06-11 | 北京世纪好未来教育科技有限公司 | Service unit offline method based on micro-service unit architecture and related device |
WO2024021494A1 (en) * | 2022-07-29 | 2024-02-01 | 天翼云科技有限公司 | Software service processing method, electronic device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050076269A1 (en) * | 2003-10-07 | 2005-04-07 | Harry Tang | Methods and computer program products that manage communication interfaces between order handling programs |
CN101630262A (en) * | 2009-07-17 | 2010-01-20 | 北京数帅科技有限公司 | Method for monitoring and controlling subprocess based on Linux system |
CN102521099A (en) * | 2011-11-24 | 2012-06-27 | 深圳市同洲视讯传媒有限公司 | Process monitoring method and process monitoring system |
WO2013000079A1 (en) * | 2011-06-28 | 2013-01-03 | International Business Machines Corporation | Systems and methods for fast detection and diagnosis of system outages |
CN103677978A (en) * | 2013-12-30 | 2014-03-26 | Tcl集团股份有限公司 | Method and electronic device for protecting processes |
CN103778006A (en) * | 2014-02-12 | 2014-05-07 | 成都卫士通信息安全技术有限公司 | Method for controlling progress of operating system |
-
2016
- 2016-07-15 CN CN201610560803.1A patent/CN107623581B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050076269A1 (en) * | 2003-10-07 | 2005-04-07 | Harry Tang | Methods and computer program products that manage communication interfaces between order handling programs |
CN101630262A (en) * | 2009-07-17 | 2010-01-20 | 北京数帅科技有限公司 | Method for monitoring and controlling subprocess based on Linux system |
WO2013000079A1 (en) * | 2011-06-28 | 2013-01-03 | International Business Machines Corporation | Systems and methods for fast detection and diagnosis of system outages |
CN102521099A (en) * | 2011-11-24 | 2012-06-27 | 深圳市同洲视讯传媒有限公司 | Process monitoring method and process monitoring system |
CN103677978A (en) * | 2013-12-30 | 2014-03-26 | Tcl集团股份有限公司 | Method and electronic device for protecting processes |
CN103778006A (en) * | 2014-02-12 | 2014-05-07 | 成都卫士通信息安全技术有限公司 | Method for controlling progress of operating system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109302305A (en) * | 2018-08-08 | 2019-02-01 | 杭州安恒信息技术股份有限公司 | A kind of clustering performance test method based on industrial control system |
CN112579385A (en) * | 2019-09-29 | 2021-03-30 | 中国石油天然气集团有限公司 | Server file monitoring method and device |
CN112948098A (en) * | 2021-05-12 | 2021-06-11 | 北京世纪好未来教育科技有限公司 | Service unit offline method based on micro-service unit architecture and related device |
CN112948098B (en) * | 2021-05-12 | 2021-07-23 | 北京世纪好未来教育科技有限公司 | Service unit offline method based on micro-service unit architecture and related device |
WO2024021494A1 (en) * | 2022-07-29 | 2024-02-01 | 天翼云科技有限公司 | Software service processing method, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107623581B (en) | 2020-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11902120B2 (en) | Synthetic data for determining health of a network security system | |
EP3030966B1 (en) | Virtual computing instance migration | |
US8910172B2 (en) | Application resource switchover systems and methods | |
CN107623581A (en) | Service list generation method, apparatus and system, acquisition, report method and device | |
CN105049502B (en) | The method and apparatus that device software updates in a kind of cloud network management system | |
CN109417496A (en) | Automation services functional verification in virtual network environment | |
CN104899116B (en) | Method, source server, destination server and the system of data backup | |
CN104915252B (en) | A kind of process port management means and method | |
CN107133530A (en) | A kind of account management method, shared device and computer-readable recording medium | |
CN106155746A (en) | Installation file processing method and device and server | |
US6708229B2 (en) | Configuring computer components | |
CN104834553B (en) | Service concurrent processing method of user terminal and user terminal | |
US11431795B2 (en) | Method, apparatus and storage medium for resource configuration | |
EP3474501A1 (en) | Network device stacking | |
CN109271268B (en) | DPDK-based intelligent fault tolerance method | |
CN105871560A (en) | Router starting method and device | |
CN114647488A (en) | Task training method, device, equipment and storage medium | |
CN108055159A (en) | A kind of clustered node operation synchronous method and device | |
CN102752365A (en) | Method and device for processing information | |
CN106789272A (en) | A kind of server set group managing means and system | |
CN117319212B (en) | Multi-tenant isolated password resource automatic scheduling system and method in cloud environment | |
EP2766815B1 (en) | Establish client-host connection | |
CN111741097B (en) | Method for tenant to monopolize node, computer equipment and storage medium | |
CN110677357B (en) | Method and device for rapidly forwarding port data of switching equipment | |
US20240111579A1 (en) | Termination of sidecar containers |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |