无标题文档
wdCP系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdCDN系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
wdOS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdDNS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
注册 发贴 提问 回复-必看必看 wddns免费智能 DNS 开通 本地或虚拟机使 用wdcp 一键包在mysql编 译时"卡住"
【300G高防】双线 无视攻击 wdcp官方技术支持/服务 阿里云8折优惠券 无敌云 腾讯云优惠中,现注册更有260代金额券赠送
返回列表 发帖
提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等

温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的

[求助] 为什么我的/www/wdlinux/etc/php-fpm.conf内容不一样

我有2个服务器按照了wdcp

A服务器的/www/wdlinux/etc/php-fpm.conf配件文件内容这样:
  1. ;;;;;;;;;;;;;;;;;;;;;
  2. ; FPM Configuration ;
  3. ;;;;;;;;;;;;;;;;;;;;;

  4. ; All relative paths in this configuration file are relative to PHP's install
  5. ; prefix (/www/wdlinux/nginx_php-5.3.29). This prefix can be dynamicaly changed by using the
  6. ; '-p' argument from the command line.

  7. ; Include one or more files. If glob(3) exists, it is used to include a bunch of
  8. ; files from a glob(3) pattern. This directive can be used everywhere in the
  9. ; file.
  10. ; Relative path can also be used. They will be prefixed by:
  11. ;  - the global prefix if it's been set (-p arguement)
  12. ;  - /www/wdlinux/nginx_php-5.3.29 otherwise
  13. ;include=etc/fpm.d/*.conf

  14. ;;;;;;;;;;;;;;;;;;
  15. ; Global Options ;
  16. ;;;;;;;;;;;;;;;;;;

  17. [global]
  18. ; Pid file
  19. ; Note: the default prefix is /www/wdlinux/nginx_php-5.3.29/var
  20. ; Default Value: none
  21. ;pid = run/php-fpm.pid

  22. ; Error log file
  23. ; If it's set to "syslog", log is sent to syslogd instead of being written
  24. ; in a local file.
  25. ; Note: the default prefix is /www/wdlinux/nginx_php-5.3.29/var
  26. ; Default Value: log/php-fpm.log
  27. ;error_log = log/php-fpm.log

  28. ; syslog_facility is used to specify what type of program is logging the
  29. ; message. This lets syslogd specify that messages from different facilities
  30. ; will be handled differently.
  31. ; See syslog(3) for possible values (ex daemon equiv LOG_DAEMON)
  32. ; Default Value: daemon
  33. ;syslog.facility = daemon

  34. ; syslog_ident is prepended to every message. If you have multiple FPM
  35. ; instances running on the same server, you can change the default value
  36. ; which must suit common needs.
  37. ; Default Value: php-fpm
  38. ;syslog.ident = php-fpm

  39. ; Log level
  40. ; Possible Values: alert, error, warning, notice, debug
  41. ; Default Value: notice
  42. ;log_level = notice

  43. ; If this number of child processes exit with SIGSEGV or SIGBUS within the time
  44. ; interval set by emergency_restart_interval then FPM will restart. A value
  45. ; of '0' means 'Off'.
  46. ; Default Value: 0
  47. ;emergency_restart_threshold = 0

  48. ; Interval of time used by emergency_restart_interval to determine when
  49. ; a graceful restart will be initiated.  This can be useful to work around
  50. ; accidental corruptions in an accelerator's shared memory.
  51. ; Available Units: s(econds), m(inutes), h(ours), or d(ays)
  52. ; Default Unit: seconds
  53. ; Default Value: 0
  54. ;emergency_restart_interval = 0

  55. ; Time limit for child processes to wait for a reaction on signals from master.
  56. ; Available units: s(econds), m(inutes), h(ours), or d(ays)
  57. ; Default Unit: seconds
  58. ; Default Value: 0
  59. ;process_control_timeout = 0

  60. ; The maximum number of processes FPM will fork. This has been design to control
  61. ; the global number of processes when using dynamic PM within a lot of pools.
  62. ; Use it with caution.
  63. ; Note: A value of 0 indicates no limit
  64. ; Default Value: 0
  65. ; process.max = 128

  66. ; Specify the nice(2) priority to apply to the master process (only if set)
  67. ; The value can vary from -19 (highest priority) to 20 (lower priority)
  68. ; Note: - It will only work if the FPM master process is launched as root
  69. ;       - The pool process will inherit the master process priority
  70. ;         unless it specified otherwise
  71. ; Default Value: no set
  72. ; process.priority = -19

  73. ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging.
  74. ; Default Value: yes
  75. ;daemonize = yes

  76. ; Set open file descriptor rlimit for the master process.
  77. ; Default Value: system defined value
  78. ;rlimit_files = 1024

  79. ; Set max core size rlimit for the master process.
  80. ; Possible Values: 'unlimited' or an integer greater or equal to 0
  81. ; Default Value: system defined value
  82. ;rlimit_core = 0

  83. ; Specify the event mechanism FPM will use. The following is available:
  84. ; - select     (any POSIX os)
  85. ; - poll       (any POSIX os)
  86. ; - epoll      (linux >= 2.5.44)
  87. ; - kqueue     (FreeBSD >= 4.1, OpenBSD >= 2.9, NetBSD >= 2.0)
  88. ; - /dev/poll  (Solaris >= 7)
  89. ; - port       (Solaris >= 10)
  90. ; Default Value: not set (auto detection)
  91. ; events.mechanism = epoll

  92. ;;;;;;;;;;;;;;;;;;;;
  93. ; Pool Definitions ;
  94. ;;;;;;;;;;;;;;;;;;;;

  95. ; Multiple pools of child processes may be started with different listening
  96. ; ports and different management options.  The name of the pool will be
  97. ; used in logs and stats. There is no limitation on the number of pools which
  98. ; FPM can handle. Your system will tell you anyway :)

  99. ; Start a new pool named 'www'.
  100. ; the variable $pool can we used in any directive and will be replaced by the
  101. ; pool name ('www' here)
  102. [www]

  103. ; Per pool prefix
  104. ; It only applies on the following directives:
  105. ; - 'slowlog'
  106. ; - 'listen' (unixsocket)
  107. ; - 'chroot'
  108. ; - 'chdir'
  109. ; - 'php_values'
  110. ; - 'php_admin_values'
  111. ; When not set, the global prefix (or /www/wdlinux/nginx_php-5.3.29) applies instead.
  112. ; Note: This directive can also be relative to the global prefix.
  113. ; Default Value: none
  114. ;prefix = /path/to/pools/$pool



  115. ; The address on which to accept FastCGI requests.
  116. ; Valid syntaxes are:
  117. ;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific address on
  118. ;                            a specific port;
  119. ;   'port'                 - to listen on a TCP socket to all addresses on a
  120. ;                            specific port;
  121. ;   '/path/to/unix/socket' - to listen on a unix socket.
  122. ; Note: This value is mandatory.
  123. listen = 127.0.0.1:9000

  124. ; Set listen(2) backlog. A value of '-1' means unlimited.
  125. ; Default Value: 128 (-1 on FreeBSD and OpenBSD)
  126. ;listen.backlog = -1


  127. (字数限制,删除部分)
  128. ;php_admin_value[error_log] = /var/log/fpm-php.www.log
  129. ;php_admin_flag[log_errors] = on
  130. ;php_admin_value[memory_limit] = 32M
  131.         
复制代码
B服务器的/www/wdlinux/etc/php-fpm.conf的配置文件内容:
  1. <?xml version="1.0" ?>
  2. <configuration>
  3.         All relative paths in this config are relative to php's install prefix
  4.         <section name="global_options">
  5.                

  6.                                 Sets the limit on the number of simultaneous requests that will be served.
  7.                                 Equivalent to Apache MaxClients directive.
  8.                                 Equivalent to PHP_FCGI_CHILDREN environment in original php.fcgi
  9.                                 Used with any pm_style.
  10.                                 <value name="max_children">80</value>

  11.                                 (字数限制,删除部分)

  12.                                 </value>

  13.                         </value>

  14.                
  15.                         <value name="request_terminate_timeout">180s</value>


  16. </configuration>        
复制代码
两个服务器引擎都是 nginx+apache。
请问这个是什么原因?

还有一个问题,上传表格老是504错误,按照网站教程,好多参数都设置了大于100秒了,可是上传表格执行到30秒 就504.

返回列表