From ae1e2cd97269e4b19e90ce0b84b618aa78abfae7 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 15 Nov 2023 16:44:20 +0800 Subject: [PATCH] =?UTF-8?q?php-fpm=E7=8A=B6=E6=80=81=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/php-apt/js/php.js | 11 ++++++++++- plugins/php-yum/js/php.js | 11 ++++++++++- plugins/php/js/php.js | 11 ++++++++++- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/plugins/php-apt/js/php.js b/plugins/php-apt/js/php.js index 871dc8783..531338bfc 100755 --- a/plugins/php-apt/js/php.js +++ b/plugins/php-apt/js/php.js @@ -320,10 +320,19 @@ function getFpmStatus(version){ return; } + var php_fpm_status = '动态'; + if (rdata['process manager'] == 'dynamic'){ + php_fpm_status = '动态'; + } else if(rdata['process manager'] == 'static'){ + php_fpm_status = '静态'; + } else if(rdata['process manager'] == 'ondemand'){ + php_fpm_status = '按需'; + } + var rdata = tmp_data.data; var con = "
\ \ - \ + \ \ \ \ diff --git a/plugins/php-yum/js/php.js b/plugins/php-yum/js/php.js index b44615cbb..4673ac5e9 100755 --- a/plugins/php-yum/js/php.js +++ b/plugins/php-yum/js/php.js @@ -326,10 +326,19 @@ function getFpmStatus(version){ return; } + var php_fpm_status = '动态'; + if (rdata['process manager'] == 'dynamic'){ + php_fpm_status = '动态'; + } else if(rdata['process manager'] == 'static'){ + php_fpm_status = '静态'; + } else if(rdata['process manager'] == 'ondemand'){ + php_fpm_status = '按需'; + } + var rdata = tmp_data.data; var con = "
应用池(pool)" + rdata.pool + "
进程管理方式(process manager)" + ((rdata['process manager'] == 'dynamic') ? '动态' : '静态') + "
进程管理方式(process manager)" + php_fpm_status + "
启动日期(start time)" + rdata['start time'] + "
请求数(accepted conn)" + rdata['accepted conn'] + "
请求队列(listen queue)" + rdata['listen queue'] + "
\ \ - \ + \ \ \ \ diff --git a/plugins/php/js/php.js b/plugins/php/js/php.js index b97d08c72..2606220ce 100755 --- a/plugins/php/js/php.js +++ b/plugins/php/js/php.js @@ -319,10 +319,19 @@ function getFpmStatus(version){ return; } + var php_fpm_status = '动态'; + if (rdata['process manager'] == 'dynamic'){ + php_fpm_status = '动态'; + } else if(rdata['process manager'] == 'static'){ + php_fpm_status = '静态'; + } else if(rdata['process manager'] == 'ondemand'){ + php_fpm_status = '按需'; + } + var rdata = tmp_data.data; var con = "
应用池(pool)" + rdata.pool + "
进程管理方式(process manager)" + ((rdata['process manager'] == 'dynamic') ? '动态' : '静态') + "
进程管理方式(process manager)" + php_fpm_status + "
启动日期(start time)" + rdata['start time'] + "
请求数(accepted conn)" + rdata['accepted conn'] + "
请求队列(listen queue)" + rdata['listen queue'] + "
\ \ - \ + \ \ \ \
应用池(pool)" + rdata.pool + "
进程管理方式(process manager)" + ((rdata['process manager'] == 'dynamic') ? '动态' : '静态') + "
进程管理方式(process manager)" + php_fpm_status + "
启动日期(start time)" + rdata['start time'] + "
请求数(accepted conn)" + rdata['accepted conn'] + "
请求队列(listen queue)" + rdata['listen queue'] + "