博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
PHP-FPM config 文件生产环境
阅读量:5310 次
发布时间:2019-06-14

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

;;;;;;;;;;;;;;;;;;; Global Options ;;;;;;;;;;;;;;;;;;;[global]pid = run/php-fpm.piderror_log = log/error.logdaemonize = yeslog_level = warning;syslog.facility = daemon;syslog.ident = php-fpm; golbal max fork processprocess.max = 64;child reuse timeoutprocess_control_timeout = 10s;emergency_restart_threshold = 3;emergency_restart_interval = 60s;process.priority = -19;rlimit_files = 10240;rlimit_core = 0;systemd_interval = 10; Specify the event mechanism FPM will use. The following is available:; - select     (any POSIX os); - poll       (any POSIX os); - epoll      (linux >= 2.5.44); - kqueue     (FreeBSD >= 4.1, OpenBSD >= 2.9, NetBSD >= 2.0); - /dev/poll  (Solaris >= 7); - port       (Solaris >= 10); Default Value: not set (auto detection)events.mechanism = epoll;;;;;;;;;;;;;;;;;;;;; Pool Definitions ; ;;;;;;;;;;;;;;;;;;;;[oracle]prefix = /home/phpuser   = oraclegroup  = oracle;listen.owner = oracle;listen.group = dba;listen.backlog = 128;listen = 127.0.0.1:9000listen = /tmp/php-cgi.socklisten.backlog = 2048; Default Value: anylisten.allowed_clients = 127.0.0.1; 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;  ondemand - no children are created at startup. Children will be forked whenpm = dynamic;pm is `static` onlypm.max_children = 100pm.start_servers = 20pm.min_spare_servers = 10pm.max_spare_servers = 20;pm.status_path = /statuspm.max_requests = 2000pm.process_idle_timeout = 300s;php max_block timeoutrequest_terminate_timeout = 120srlimit_files = 10240catch_workers_output = yes;access.log = var/log/access.log;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"slowlog = var/log/slow.logrequest_slowlog_timeout = 75s  ;chroot = ;chdir = /var/www;ping.path = /ping;ping.response = pong ;Default Value: .php;security.limit_extensions = .php .php3 .php4 .php5 ;Default Value: clean envenv[HOSTNAME] = $HOSTNAMEenv[PATH] = /usr/local/bin:/usr/bin:/bin:/home/php/binenv[TMP] = /tmpenv[TMPDIR] = /tmpenv[TEMP] = /tmpphp_admin_value[memory_limit] = 256M;php_flag[display_errors] = off;php_admin_flag[log_errors] = on;php_admin_value[error_log] = /var/log/fpm-php.www.log;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com

 

转载于:https://www.cnblogs.com/wanglijun/p/9448825.html

你可能感兴趣的文章
Android ViewPager 动画效果
查看>>
pip和easy_install使用方式
查看>>
博弈论
查看>>
Redis sentinel & cluster 原理分析
查看>>
我的工作习惯小结
查看>>
把word文档中的所有图片导出
查看>>
浏览器的判断;
查看>>
ubuntu 18.04取消自动锁屏以及设置键盘快捷锁屏
查看>>
Leetcode 589. N-ary Tree Preorder Traversal
查看>>
机器学习/深度学习/其他开发环境搭建记录
查看>>
xml.exist() 实例演示
查看>>
判断是否为空然后赋值
查看>>
zabbix监控日志文件
查看>>
正则表达式
查看>>
pip install torch on windows, and the 'from torch._C import * ImportError: DLL load failed:' s...
查看>>
java基础(一):我对java的三个环境变量的简单理解和配置
查看>>
arcgis api 4.x for js 结合 Echarts4 实现散点图效果(附源码下载)
查看>>
YTU 2625: B 构造函数和析构函数
查看>>
apache自带压力测试工具ab的使用及解析
查看>>
C#使用Xamarin开发可移植移动应用(2.Xamarin.Forms布局,本篇很长,注意)附源码
查看>>