入门客AI创业平台(我带你入门,你带我飞行)
博文笔记

www.conf

创建时间:2017-07-25 投稿人: 浏览次数:474

; Start a new pool named "www".
  ; the variable $pool can we used in any directive and will be replaced by the
  ; pool name ("www" here)
  [www]
   
  ; Per pool prefix
  ; It only applies on the following directives:
  ; - "access.log"
  ; - "slowlog"
  ; - "listen" (unixsocket)
  ; - "chroot"
  ; - "chdir"
  ; - "php_values"
  ; - "php_admin_values"
  ; When not set, the global prefix (or /usr/local/php7) applies instead.
  ; Note: This directive can also be relative to the global prefix.
  ; Default Value: none
  ;prefix = /path/to/pools/$pool
   
  ; Unix user/group of processes
  ; Note: The user is mandatory. If the group is not set, the default user"s group
  ; will be used.
  user = nginx
  group = nginx
   
  ; 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 IPv4 address on
  ; a specific port;
  ; "[ip:6:addr:ess]:port" - to listen on a TCP socket to a specific IPv6 address on
  ; a specific port;
  ; "port" - to listen on a TCP socket to all addresses
  ; (IPv6 and IPv4-mapped) 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
  listen = /var/run/php-fpm/php-fpm.sock
   
  ; Set listen(2) backlog.
  ; Default Value: 511 (-1 on FreeBSD and OpenBSD)
  listen.backlog = 511
   
  ; 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 0660
  listen.owner = nginx
  listen.group = nginx
  listen.mode = 0660
  ; When POSIX Access Control Lists are supported you can set them using
  ; these options, value is a comma separated list of user/group names.
  ; When set, listen.owner and listen.group are ignored
  ;listen.acl_users =
  ;listen.acl_groups =
   
  ; List of addresses (IPv4/IPv6) 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: any
  ;listen.allowed_clients = 127.0.0.1
  listen.allowed_clients = /var/run/php-fpm/php-fpm.sock
   
  ; Specify the nice(2) priority to apply to the pool processes (only if set)
  ; The value can vary from -19 (highest priority) to 20 (lower priority)
  ; Note: - It will only work if the FPM master process is launched as root
  ; - The pool processes will inherit the master process priority
  ; unless it specified otherwise
  ; Default Value: no set
  ; process.priority = -19
   
  ; 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. With this process management, there will be
  ; always at least 1 children.
  ; 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.
  ; ondemand - no children are created at startup. Children will be forked when
  ; new requests will connect. The following parameter are used:
  ; pm.max_children - the maximum number of children that
  ; can be alive at the same time.
  ; pm.process_idle_timeout - The number of seconds after which
  ; an idle process 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 when pm is set to "dynamic" or "ondemand".
  ; This value sets the limit on the number of simultaneous requests that will be
  ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
声明:该文观点仅代表作者本人,入门客AI创业平台信息发布平台仅提供信息存储空间服务,如有疑问请联系rumenke@qq.com。