CN105204870A - Access method, device and system of script program - Google Patents
Access method, device and system of script program Download PDFInfo
- Publication number
- CN105204870A CN105204870A CN201510714030.3A CN201510714030A CN105204870A CN 105204870 A CN105204870 A CN 105204870A CN 201510714030 A CN201510714030 A CN 201510714030A CN 105204870 A CN105204870 A CN 105204870A
- Authority
- CN
- China
- Prior art keywords
- shell script
- process manager
- shell
- script
- configuration
- 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 an access method, device and system of a script program. The method comprises the steps of configuring corresponding process managers for each script program according to realized functions of each script program in an external program, writing configuration cases in a configuration file of a web server, wherein, the configured process managers of at least two script programs among all the script programs are different; when a client end request is received, inquiring the configuration file, and determining the process manager corresponding to a target script program accessed by the client end request, and accessing the target script program through the determined process manager. Through such configuration of the access method, device and system, when one process manager corresponding to one script program is furbished to failure due to the fact that the concurrent access volume of the certain script program is over large, another process manager can provide an access interface service to another script program corresponding to the another process manger, so as not to influence the access of all the script programs, and the stability of a system is improved to a certain degree.
Description
Technical field
The present invention relates to technical field of the computer network, be specifically related to a kind of access method of shell script, Apparatus and system.
Background technology
Nginx (enginex) is a high performance Web server, well-known because of the consumption of its stability, abundant function collection, sample profile and low system resource.Nginx does not support directly calling or resolving external program, and all external programs (comprising PHP) must pass through FastCGI interface (FastCommonGatewayInterface, quick CGI (Common Gateway Interface)) and call.The FastCGI interface program become on Web server and other machine carries out the instrument of " talk ".
Be loaded into FastCGI process manager when Nginx starts, FastCGI process manager initializes itself, start multiple CGI interpreter process and wait for the connection from Nginx.When client-requested arrives Nginx, FastCGI process manager is selected and is connected to a CGI interpreter, and CGI environmental variance and standard input are sent to FastCGI subprocess php-cgi by Nginx.After FastCGI subprocess completes process, standard output and error message are returned Nginx from same connection.When FastCGI subprocess closes connection, request is just accused process and is completed.FastCGI subprocess is then waited for and the next one processed from FastCGI process manager connects.
In prior art, a Nginx only configures a FastCGI process manager, when different client-requested arrives, all will by PHP (HypertextPreprocessor, the HyperText Preprocessor) script of this FastCGI process manager access correspondence.But the Concurrency Access amount of the client-requested of many important PHP scripts is very large in practice, once the Concurrency Access amount of certain PHP script is excessive, easily causes FastCGI process manager brush to be hung, and then affects the access of other all PHP script.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of access method, the Apparatus and system of shell script that overcome the problems referred to above or solve the problem at least in part.
According to an aspect of the present invention, provide a kind of access method of shell script, comprising:
According to the function that each shell script in external program realizes, for the process manager that the configuration of each shell script is corresponding, configuring condition is write in the configuration file of web server, wherein, the process manager difference that in all shell scripts, at least two shell scripts configure;
When receiving client-requested, inquiring about described configuration file, determining the process manager that target shell script that described client-requested is accessed is corresponding, accessing described target shell script by determined process manager.
According to a further aspect in the invention, provide a kind of access means of shell script, comprising:
Configuration module, be suitable for the function realized according to each shell script in external program, for the process manager that the configuration of each shell script is corresponding, configuring condition is write in the configuration file of web server, wherein, the process manager difference that in all shell scripts, at least two shell scripts configure;
Enquiry module, is suitable for when receiving client-requested, inquires about described configuration file, determines the process manager that target shell script that described client-requested is accessed is corresponding;
Access modules, is suitable for accessing described target shell script by determined process manager.
According to another aspect of the invention, provide a kind of access system of shell script, comprising: the access means of shell script recited above, and external program server, process manager.
The access method of shell script provided by the invention, Apparatus and system, according to the function that each shell script in external program realizes, for the process manager that the configuration of each shell script is corresponding, wherein, the process manager difference that in all shell scripts, at least two shell scripts configure, by such configuration, when the excessive process manager brush causing this shell script corresponding of Concurrency Access amount of certain shell script is hung, other process manager can also provide access interface service for other corresponding with it shell script, be unlikely to the access affecting all shell scripts, improve the stability of system to a certain extent.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows the schematic diagram of the access method of shell script according to an embodiment of the invention;
Fig. 2 shows the schematic diagram of the access method of shell script in accordance with another embodiment of the present invention;
Fig. 3 shows the schematic diagram of the access method of the shell script according to another embodiment of the present invention;
Fig. 4 shows the functional block diagram of the access means of shell script according to an embodiment of the invention;
Fig. 5 shows the functional block diagram of the access system of shell script according to an embodiment of the invention.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Fig. 1 shows the schematic diagram of the access method of shell script according to an embodiment of the invention.As shown in Figure 1, the method comprises the steps:
Step S101, according to the function that each shell script in external program realizes, be the process manager that the configuration of each shell script is corresponding, configuring condition write in the configuration file of web server, wherein, the process manager difference that in all shell scripts, at least two shell scripts configure.
The method that the present embodiment provides is applicable to web server and does not support directly to call external program or resolve, and situation about must be called by process manager, typically if Nginx is by FastCGI interface interchange external program.Unlike the prior art, this method not only only configures a process manager and manages calling of external program, but according to the actual conditions of shell script in external program, is process manager corresponding to each shell script configuration.Here, the process manager difference that in multiple shell script, at least two shell scripts configure.Also namely, for the ease of calling external program, the process manager configured in a web server is at least two.
After configuration is complete, configuring condition is write in the configuration file of web server, preserve for web server.Concrete, in configuration file, write the corresponding relation of shell script and process manager, the corresponding relation of shell script and process manager is one to one or many-one.
Step S102, when receiving client-requested, query configuration file, determines the process manager that target script that client-requested is accessed is corresponding, accesses described target shell script by determined process manager.
When receiving client-requested, first query configuration file, the process manager that the target shell script of accessing according to the corresponding relation determination client-requested of configuration file record is corresponding, by determined process manager access destination shell script.
The access method of the shell script that the present embodiment provides, according to the function that each shell script in external program realizes, for the process manager that the configuration of each shell script is corresponding, wherein, the process manager difference that in all shell scripts, at least two shell scripts configure, by such configuration, when the excessive process manager brush causing this shell script corresponding of Concurrency Access amount of certain shell script is hung, other process manager can also provide access interface service for other corresponding with it shell script, be unlikely to the access affecting all shell scripts, improve the stability of system to a certain extent.
Fig. 2 shows the schematic diagram of the access method of shell script in accordance with another embodiment of the present invention.As shown in Figure 2, the method comprises the steps:
Step S201, the function realized according to each shell script in external program, is divided into first kind shell script and Equations of The Second Kind shell script by all shell scripts.
In the present embodiment, take web server as Nginx server, process manager is FastCGI, and shell script is PHP script is that example is described, but the present invention is not limited only to this, the system of other similar Nginx+php operating mode is also suitable for the method that the present embodiment provides.
After Nginx+php system framework has been built, the function that Nginx realizes according to each PHP shell script in external program, has been divided into two classes by PHP shell script, is respectively first kind shell script and Equations of The Second Kind shell script.Here, be the importance of the function that foundation PHP shell script realizes to the criteria for classification of PHP shell script, if the function that PHP shell script realizes is very important, is the Core Feature of web services, is just divided into first kind shell script; If the function that PHP shell script realizes is subsidiary function, be just divided into Equations of The Second Kind shell script.
Step S202, for each shell script in first kind shell script configures different process managers, for all shell scripts in Equations of The Second Kind shell script configure identical process manager.
Because first kind shell script is the PHP shell script realizing Core Feature, thus for each PHP shell script in first kind shell script configures different process managers.If first kind shell script has n, so configure independent process manager respectively for this n PHP shell script, need to configure the individual different process manager of n.
Because Equations of The Second Kind shell script is the PHP shell script realizing subsidiary function, thus for all PHP shell scripts in Equations of The Second Kind shell script configure identical process manager.If Equations of The Second Kind shell script has m, so this m PHP shell script configures a process manager.
Step S203, writes configuring condition in the configuration file of web server.
After configuration is complete, configuring condition is write in the configuration file of Nginx server, preserve for Nginx server.Concrete, in configuration file, write the corresponding relation of PHP shell script and process manager, for first kind shell script, the corresponding relation of shell script and process manager is one to one; For Equations of The Second Kind shell script, the corresponding relation of shell script and process manager is many-one.
Step S204, when receiving client-requested, query configuration file, determines the process manager that target script that client-requested is accessed is corresponding, accesses described target shell script by determined process manager.
When receiving client-requested, first query configuration file, the process manager that the target shell script of accessing according to the corresponding relation determination client-requested of configuration file record is corresponding, by determined process manager access destination shell script.
The access method of the shell script that the present embodiment provides, according to the importance of the function that each shell script in external program realizes, shell script is classified, for shell script each in first kind shell script configures independent process manager, for shell scripts all in Equations of The Second Kind shell script configure a process manager.In general, the Concurrency Access amount realizing the shell script of Core Feature is far longer than the Concurrency Access amount of the shell script realizing subsidiary function, when certain realize the excessive process manager brush causing this shell script corresponding of the Concurrency Access amount of the shell script of Core Feature hang time, it can not affect the access that other realizes the shell script of Core Feature on the one hand, it also can not affect the access that other realizes the shell script of subsidiary function on the other hand, improves the stability of system to a certain extent.
Fig. 3 shows the schematic diagram of the access method of the shell script according to another embodiment of the present invention.As shown in Figure 3, the method comprises the steps:
Step S301, the function realized according to each shell script in external program, for each shell script pre-estimates visit capacity.
In the present embodiment, take web server as Nginx server, process manager is FastCGI, and shell script is PHP script is that example is described, but the present invention is not limited only to this, the system of other similar Nginx+php operating mode is also suitable for the method that the present embodiment provides.
After Nginx+php system framework has been built, the function that Nginx realizes according to each PHP shell script in external program, for each PHP shell script pre-estimates visit capacity.The function that the visit capacity of PHP shell script and PHP shell script realize is closely-related, in general, if what PHP shell script realized is the Core Feature of web services, so its visit capacity can be larger, if what PHP shell script realized is the subsidiary function of web services, so its visit capacity can be less.Therefore, can consider when estimating visit capacity the function that PHP shell script realizes, in addition, also can estimate according to the priori data of other similar system.
It should be noted that, the visit capacity that this step is pre-estimated can be a numerical range, might not be concrete numerical value, can reflect visit capacity height to a certain extent.
Step S302, sorts to m shell script according to the order that the visit capacity pre-estimated is descending.
M is the total quantity of shell script in external program, sorts to m shell script according to the order that the visit capacity pre-estimated is descending.
Alternatively, above-mentioned steps S301 and step S302 also can replace with: the function realized according to each shell script in external program, estimates sequence to m shell script.Here, the significance level of the function that order standard can realize according to shell script, more important sequence is more forward; Order standard also can compare according to the height estimating visit capacity of shell script, and higher sequence is more forward.
Step S303, for the shell script of front n position of sorting configures different process managers respectively, n is the preset value being less than m; For other m-n shell script configures at least one process manager.
For the shell script of front n position of sorting configures different process managers respectively, be this n PHP shell script and configure independent process manager respectively, need to configure the individual different process manager of n.
For other m-n shell script configures at least one process manager.Alternatively, identical process manager can be configured for other m-n shell script.Can certainly configure multiple process manager, this can configure relevant according to system resource, it is more that system resource enriches configurable process manager.
Step S304, writes configuring condition in the configuration file of web server.
After configuration is complete, configuring condition is write in the configuration file of Nginx server, preserve for Nginx server.Concrete, in configuration file, write the corresponding relation of PHP shell script and process manager, for the shell script of n position before sequence, the corresponding relation of shell script and process manager is one to one; For other m-n shell script, the corresponding relation of shell script and process manager is many-one.
Step S305, when receiving client-requested, query configuration file, determines the process manager that target script that client-requested is accessed is corresponding, accesses described target shell script by determined process manager.
When receiving client-requested, first query configuration file, the process manager that the target shell script of accessing according to the corresponding relation determination client-requested of configuration file record is corresponding, by determined process manager access destination shell script.
The access method of the shell script that the present embodiment provides, visit capacity of pre-estimating according to each shell script in external program sorts to shell script, for the shell script of front n position of sorting configures independent process manager, for other m-n shell script configures one or more process manager.When the excessive process manager brush causing this shell script corresponding of Concurrency Access amount of certain shell script is hung, it can not affect the access of the larger shell script of other visit capacity on the one hand, it also can not affect the access of the less shell script of other visit capacity on the other hand, improves the stability of system to a certain extent.
Fig. 4 shows the functional block diagram of the access means of shell script according to an embodiment of the invention.As shown in Figure 4, this device comprises: configuration module 401, enquiry module 402 and access modules 403.
Configuration module 401, be suitable for the function realized according to each shell script in external program, for the process manager that the configuration of each shell script is corresponding, configuring condition is write in the configuration file of web server, wherein, the process manager difference that in all shell scripts, at least two shell scripts configure;
Enquiry module 402, is suitable for when receiving client-requested, inquires about described configuration file, determines the process manager that target shell script that described client-requested is accessed is corresponding;
Access modules 403, is suitable for accessing described target shell script by determined process manager.
Alternatively, configuration module 401 is further adapted for: the function realized according to each shell script in external program, all shell scripts is divided into first kind shell script and Equations of The Second Kind shell script; For each shell script in described first kind shell script configures different process managers; For all shell scripts in described Equations of The Second Kind shell script configure identical process manager.
Alternatively, configuration module 401 is further adapted for: the function realized according to each shell script in external program, for each shell script pre-estimates visit capacity, is the process manager of each shell script configuration correspondence according to the visit capacity pre-estimated.Further, configuration module 401 sorts to m shell script according to the order that the visit capacity pre-estimated is descending; For the shell script of front n position of sorting configures different process managers respectively, n is the preset value being less than m; For other m-n shell script configures at least one process manager.
Fig. 5 shows the functional block diagram of the access system of shell script according to an embodiment of the invention.As shown in Figure 5, this system comprises: the access means 501 of shell script, external program server 502 and process manager 503.Wherein the concrete function description of the access means 501 of shell script can see above-described embodiment.
Under Nginx+PHP system framework, the access means 501 of shell script can be Nginx server, and process manager is FastCGI process manager, and external program server can be PHP server.
The access means of the shell script that the present embodiment provides and system, according to the function that each shell script in external program realizes, for the process manager that the configuration of each shell script is corresponding, wherein, the process manager difference that in all shell scripts, at least two shell scripts configure, by such configuration, when the excessive process manager brush causing this shell script corresponding of Concurrency Access amount of certain shell script is hung, other process manager can also provide access interface service for other corresponding with it shell script, be unlikely to the access affecting all shell scripts, improve the stability of system to a certain extent.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the access means of the shell script of the embodiment of the present invention and system.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
The invention discloses:
The access method of A1, a kind of shell script, comprising:
According to the function that each shell script in external program realizes, for the process manager that the configuration of each shell script is corresponding, configuring condition is write in the configuration file of web server, wherein, the process manager difference that in all shell scripts, at least two shell scripts configure;
When receiving client-requested, inquiring about described configuration file, determining the process manager that target shell script that described client-requested is accessed is corresponding, accessing described target shell script by determined process manager.
A2, method according to A1, the described function realized according to each shell script in external program, the process manager corresponding for the configuration of each shell script comprises further:
According to the function that each shell script in external program realizes, all shell scripts are divided into first kind shell script and Equations of The Second Kind shell script;
For each shell script in described first kind shell script configures different process managers;
For all shell scripts in described Equations of The Second Kind shell script configure identical process manager.
A3, method according to A1, the described function realized according to each shell script in external program, the process manager corresponding for the configuration of each shell script comprises further: the function realized according to each shell script in external program, for each shell script pre-estimates visit capacity, be the process manager of each shell script configuration correspondence according to the visit capacity pre-estimated.
A4, method according to A3, in described external program, the quantity of shell script is m, and the visit capacity that described basis is pre-estimated is that process manager corresponding to each shell script configuration comprises further:
According to the order that the visit capacity pre-estimated is descending, m shell script is sorted;
For the shell script of front n position of sorting configures different process managers respectively, n is the preset value being less than m;
For other m-n shell script configures at least one process manager.
A5, method according to any one of A1-A4, described shell script is HyperText Preprocessor shell script, and described process manager is quick CGI (Common Gateway Interface) process manager, and described web server is Nginx server.
The access means of B6, a kind of shell script, comprising:
Configuration module, be suitable for the function realized according to each shell script in external program, for the process manager that the configuration of each shell script is corresponding, configuring condition is write in the configuration file of web server, wherein, the process manager difference that in all shell scripts, at least two shell scripts configure;
Enquiry module, is suitable for when receiving client-requested, inquires about described configuration file, determines the process manager that target shell script that described client-requested is accessed is corresponding;
Access modules, is suitable for accessing described target shell script by determined process manager.
B7, device according to B6, described configuration module is further adapted for:
According to the function that each shell script in external program realizes, all shell scripts are divided into first kind shell script and Equations of The Second Kind shell script;
For each shell script in described first kind shell script configures different process managers;
For all shell scripts in described Equations of The Second Kind shell script configure identical process manager.
B8, device according to B6, described configuration module is further adapted for: the function realized according to each shell script in external program, for each shell script pre-estimates visit capacity, be the process manager of each shell script configuration correspondence according to the visit capacity pre-estimated.
B9, device according to B8, described configuration module is further adapted for:
According to the order that the visit capacity pre-estimated is descending, m shell script is sorted;
For the shell script of front n position of sorting configures different process managers respectively, n is the preset value being less than m;
For other m-n shell script configures at least one process manager.
The access system of C10, a kind of shell script, comprises the access means of the shell script described in any one of B6-B9, and external program server, process manager.
C11, system according to C10, described external program server is HyperText Preprocessor server, and described process manager is quick CGI (Common Gateway Interface) process manager, and described device is Nginx server.
Claims (10)
1. an access method for shell script, comprising:
According to the function that each shell script in external program realizes, for the process manager that the configuration of each shell script is corresponding, configuring condition is write in the configuration file of web server, wherein, the process manager difference that in all shell scripts, at least two shell scripts configure;
When receiving client-requested, inquiring about described configuration file, determining the process manager that target shell script that described client-requested is accessed is corresponding, accessing described target shell script by determined process manager.
2. method according to claim 1, the described function realized according to each shell script in external program, the process manager corresponding for the configuration of each shell script comprises further:
According to the function that each shell script in external program realizes, all shell scripts are divided into first kind shell script and Equations of The Second Kind shell script;
For each shell script in described first kind shell script configures different process managers;
For all shell scripts in described Equations of The Second Kind shell script configure identical process manager.
3. method according to claim 1, the described function realized according to each shell script in external program, the process manager corresponding for the configuration of each shell script comprises further: the function realized according to each shell script in external program, for each shell script pre-estimates visit capacity, be the process manager of each shell script configuration correspondence according to the visit capacity pre-estimated.
4. method according to claim 3, in described external program, the quantity of shell script is m, and the visit capacity that described basis is pre-estimated is that the process manager of each shell script configuration correspondence comprises further:
According to the order that the visit capacity pre-estimated is descending, m shell script is sorted;
For the shell script of front n position of sorting configures different process managers respectively, n is the preset value being less than m;
For other m-n shell script configures at least one process manager.
5. the method according to any one of claim 1-4, described shell script is HyperText Preprocessor shell script, and described process manager is quick CGI (Common Gateway Interface) process manager, and described web server is Nginx server.
6. an access means for shell script, comprising:
Configuration module, be suitable for the function realized according to each shell script in external program, for the process manager that the configuration of each shell script is corresponding, configuring condition is write in the configuration file of web server, wherein, the process manager difference that in all shell scripts, at least two shell scripts configure;
Enquiry module, is suitable for when receiving client-requested, inquires about described configuration file, determines the process manager that target shell script that described client-requested is accessed is corresponding;
Access modules, is suitable for accessing described target shell script by determined process manager.
7. device according to claim 6, described configuration module is further adapted for:
According to the function that each shell script in external program realizes, all shell scripts are divided into first kind shell script and Equations of The Second Kind shell script;
For each shell script in described first kind shell script configures different process managers;
For all shell scripts in described Equations of The Second Kind shell script configure identical process manager.
8. device according to claim 6, described configuration module is further adapted for: the function realized according to each shell script in external program, for each shell script pre-estimates visit capacity, be the process manager of each shell script configuration correspondence according to the visit capacity pre-estimated.
9. device according to claim 8, described configuration module is further adapted for:
According to the order that the visit capacity pre-estimated is descending, m shell script is sorted;
For the shell script of front n position of sorting configures different process managers respectively, n is the preset value being less than m;
For other m-n shell script configures at least one process manager.
10. an access system for shell script, comprises the access means of the shell script described in any one of claim 6-9, and external program server, process manager.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510714030.3A CN105204870B (en) | 2015-10-28 | 2015-10-28 | The access method of shell script, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510714030.3A CN105204870B (en) | 2015-10-28 | 2015-10-28 | The access method of shell script, apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105204870A true CN105204870A (en) | 2015-12-30 |
CN105204870B CN105204870B (en) | 2019-03-01 |
Family
ID=54952576
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510714030.3A Active CN105204870B (en) | 2015-10-28 | 2015-10-28 | The access method of shell script, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105204870B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108023966A (en) * | 2017-12-19 | 2018-05-11 | 北京小度信息科技有限公司 | CGI(Common gateway interface) request processing method, equipment and storage medium |
CN109347894A (en) * | 2018-08-10 | 2019-02-15 | 锐捷网络股份有限公司 | Manage method, manager, equipment and the medium of FastCGI process |
CN109814911A (en) * | 2018-12-14 | 2019-05-28 | 深圳壹账通智能科技有限公司 | Method, apparatus, computer equipment and storage medium for Manage Scripts program |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100017009A1 (en) * | 2008-06-30 | 2010-01-21 | International Business Machines Corporation | System for monitoring multi-orderable measurement data |
CN102902537A (en) * | 2012-09-19 | 2013-01-30 | 厦门亿联网络技术股份有限公司 | Embedded WEB model view controller (MVC) development framework based on Fast common gateway interface (CGI) and hypertext markup language (HTML) template |
-
2015
- 2015-10-28 CN CN201510714030.3A patent/CN105204870B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100017009A1 (en) * | 2008-06-30 | 2010-01-21 | International Business Machines Corporation | System for monitoring multi-orderable measurement data |
CN102902537A (en) * | 2012-09-19 | 2013-01-30 | 厦门亿联网络技术股份有限公司 | Embedded WEB model view controller (MVC) development framework based on Fast common gateway interface (CGI) and hypertext markup language (HTML) template |
Non-Patent Citations (2)
Title |
---|
GENSTONE: "nginx+php-fpm性能参数优化原则", 《HTTP://BLOG.SINA.COM.CN/S/BLOG_5459F60D01012SJF.HTML》 * |
陈远均: "区县级区域卫生信息平台的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108023966A (en) * | 2017-12-19 | 2018-05-11 | 北京小度信息科技有限公司 | CGI(Common gateway interface) request processing method, equipment and storage medium |
CN108023966B (en) * | 2017-12-19 | 2020-12-04 | 北京星选科技有限公司 | Method, device and storage medium for processing universal gateway interface request |
CN109347894A (en) * | 2018-08-10 | 2019-02-15 | 锐捷网络股份有限公司 | Manage method, manager, equipment and the medium of FastCGI process |
CN109814911A (en) * | 2018-12-14 | 2019-05-28 | 深圳壹账通智能科技有限公司 | Method, apparatus, computer equipment and storage medium for Manage Scripts program |
Also Published As
Publication number | Publication date |
---|---|
CN105204870B (en) | 2019-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10936659B2 (en) | Parallel graph events processing | |
CN110019080B (en) | Data access method and device | |
US10409658B2 (en) | Batch processing of messages | |
CN105117289A (en) | Task allocation method, device and system based on cloud testing platform | |
US11100233B2 (en) | Optimizing operating system vulnerability analysis | |
US20160274868A1 (en) | Sharing of classes for modular programs in a multi-tenant environment | |
CN104111847A (en) | Method and device for improving running speed of games | |
CN113141405B (en) | Service access method, middleware system, electronic device, and storage medium | |
CN109739700B (en) | Interface testing method and device | |
CN105204870A (en) | Access method, device and system of script program | |
US10762088B2 (en) | Automated database manager | |
CN105468776A (en) | Method, device and system for operating database | |
CN105389394A (en) | Data request processing method and device based on a plurality of database clusters | |
US11023156B2 (en) | Dynamic API allocation based on data-tagging | |
CN116467315A (en) | Analysis method, device, equipment and storage medium of behavior data | |
CN115809193A (en) | Front-end reverse abnormal data robustness detection method, device and storage medium | |
CN115048060A (en) | Storage management method and device, electronic equipment and storage medium | |
CN107453950A (en) | A kind of information processing method and monitoring system | |
US11061743B2 (en) | Event loop optimization through event ordering | |
CN108846141B (en) | Offline cache loading method and device | |
US9438269B1 (en) | Accelerating codeset conversion in a computing environment | |
CN112379939B (en) | Method, system and storage medium for realizing dynamic loading of embedded operating system data | |
CN114826994B (en) | User environment playback method, system, electronic device and readable storage medium | |
CN111132121B (en) | Information processing method and network warehouse function NRF network element | |
CN118337434A (en) | Method, device and equipment for reinforcing open port |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220725 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right |