博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
php-fpm配置
阅读量:2391 次
发布时间:2019-05-10

本文共 5019 字,大约阅读时间需要 16 分钟。

vim /etc/php-fpm.d/www.conf

; Start a new pool named 'www'.[www]; The address on which to accept FastCGI requests.; Valid syntaxes are:;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific address on;                            a specific port;;   'port'                 - to listen on a TCP socket to all addresses on a;                            specific port;;   '/path/to/unix/socket' - to listen on a unix socket.; Note: This value is mandatory.listen = 127.0.0.1:9000; Set listen(2) backlog. A value of '-1' means unlimited.; Default Value: -1;listen.backlog = -1; List of ipv4 addresses of FastCGI clients which are allowed to connect.; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address; must be separated by a comma. If this value is left blank, connections will be; accepted from any ip address.; Default Value: anylisten.allowed_clients = 127.0.0.1; Set permissions for unix socket, if one is used. In Linux, read/write; permissions must be set in order to allow connections from a web server. Many; BSD-derived systems allow connections regardless of permissions.; Default Values: user and group are set as the running user;                 mode is set to 0666;listen.owner = nobody;listen.group = nobody;listen.mode = 0666; Unix user/group of processes; Note: The user is mandatory. If the group is not set, the default user's group;       will be used.; RPM: apache Choosed to be able to access some dir as httpduser = nginx; RPM: Keep a group allowed to write in log dir.group = nginx; Choose how the process manager will control the number of child processes.; Possible Values:;   static  - a fixed number (pm.max_children) of child processes;;   dynamic - the number of child processes are set dynamically based on the;             following directives:;             pm.max_children      - the maximum number of children that can;                                    be alive at the same time.;             pm.start_servers     - the number of children created on startup.;             pm.min_spare_servers - the minimum number of children in 'idle';                                    state (waiting to process). If the number;                                    of 'idle' processes is less than this;                                    number then some children will be created.;             pm.max_spare_servers - the maximum number of children in 'idle';                                    state (waiting to process). If the number;                                    of 'idle' processes is greater than this;                                    number then some children will be killed.; Note: This value is mandatory.pm = dynamic; The number of child processes to be created when pm is set to 'static' and the; maximum number of child processes to be created when pm is set to 'dynamic'.; This value sets the limit on the number of simultaneous requests that will be; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP; CGI.; Note: Used when pm is set to either 'static' or 'dynamic'; Note: This value is mandatory.pm.max_children = 120; The number of child processes created on startup.; Note: Used only when pm is set to 'dynamic'; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2pm.start_servers = 24; The desired minimum number of idle server processes.; Note: Used only when pm is set to 'dynamic'pm.min_spare_servers = 24; The desired maximum number of idle server processes.; Note: Used only when pm is set to 'dynamic'; Note: Mandatory when pm is set to 'dynamic'pm.max_spare_servers = 60; The number of requests each child process should execute before respawning.; This can be useful to work around memory leaks in 3rd party libraries. For; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.; Default Value: 0;pm.max_requests = 500; The URI to view the FPM status page. If this value is not set, no URI will be; recognized as a status page. By default, the status page shows the following; information:;   accepted conn    - the number of request accepted by the pool;;   pool             - the name of the pool;;   process manager  - static or dynamic;;   idle processes   - the number of idle processes;;   active processes - the number of active processes;;   total processes  - the number of idle + active processes.; The values of 'idle processes', 'active processes' and 'total processes' are; updated each second. The value of 'accepted conn' is updated in real time.; Example output:;   accepted conn:   12073;   pool:             www;   process manager:  static;   idle processes:   35;   active processes: 65;   total processes:  100; By default the status page output is formatted as text/plain. Passing either; 'html' or 'json' as a query string will return the corresponding output; syntax. Example: 

转载地址:http://xiqab.baihongyu.com/

你可能感兴趣的文章
spring boot 2.0 使用Hikari连接池——号称java平台最快的,替换druid
查看>>
GnuPG Java Wrapper API - Sample code
查看>>
HTTP Cache 总结及Nginx Cache配置
查看>>
基于现有 TensorFlow 模型构建 Android 应用
查看>>
Building an Ionic OCR App with Tesseract
查看>>
Spring boot with Apache Hive
查看>>
使用awr来诊断数据库性能问题
查看>>
exp-00056 exp-00000 导出终止失败的处理
查看>>
Linux中两块device的minor number相同而造成RAC不能启动的问题
查看>>
DM7修改数据库参数
查看>>
Oracle ASM Partnership and Status Table
查看>>
Oracle 12CR2 Oracle Restart - ASM Startup fails with PRCR-1079
查看>>
In-Memory Column Store
查看>>
Oracle 12C ASM asmcmd amdu_extract
查看>>
Oracle AMDU- ASM Metadata Dump Utility
查看>>
C/C++程序中的profile
查看>>
一个更好的Post process结构,三角形代替四边形。
查看>>
利用Vertex shader实现Point Sprites
查看>>
图形处理器历史简介
查看>>
System Memory,AGP Memory and Video Memory in D3D.
查看>>