VPS侦探论坛

 找回密码
 注册
查看: 3218|回复: 1

谁给个php-fpm.conf的文件参数给我啊,无限502了

[复制链接]
发表于 2016-11-15 21:38:58 | 显示全部楼层 |阅读模式

/usr/local/php/etc/php-fpm.conf    手贱我更改了php-fpm.conf里面的各种参数,结果无限网页502,vps重启还是502,lnmp重启,nginx重启,php重启,都是502,谁帮帮忙贴个php-fpm.conf的默认参数给我吧,我的vps是2G内存的,不知道怎么修改,呜呜
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-11-16 09:05:05 | 显示全部楼层


5.3及以上版本的话一般都是
  1. [global]
  2. pid = /usr/local/php/var/run/php-fpm.pid
  3. error_log = /usr/local/php/var/log/php-fpm.log
  4. log_level = notice

  5. [www]
  6. listen = /tmp/php-cgi.sock
  7. listen.backlog = -1
  8. listen.allowed_clients = 127.0.0.1
  9. listen.owner = www
  10. listen.group = www
  11. listen.mode = 0666
  12. user = www
  13. group = www
  14. pm = dynamic
  15. pm.max_children = 10
  16. pm.start_servers = 2
  17. pm.min_spare_servers = 1
  18. pm.max_spare_servers = 6
  19. request_terminate_timeout = 100
  20. request_slowlog_timeout = 0
  21. slowlog = var/log/slow.log
复制代码
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-16 13:25 , Processed in 0.025141 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表