真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

【CentOS7LNMP架構(gòu)38】,php-fpm慢執(zhí)行日志#180110

hellopasswd

創(chuàng)新互聯(lián)建站專業(yè)為企業(yè)提供玉門網(wǎng)站建設(shè)、玉門做網(wǎng)站、玉門網(wǎng)站設(shè)計(jì)、玉門網(wǎng)站制作等企業(yè)網(wǎng)站建設(shè)、網(wǎng)頁(yè)設(shè)計(jì)與制作、玉門企業(yè)網(wǎng)站模板建站服務(wù),十余年玉門做網(wǎng)站經(jīng)驗(yàn),不只是建網(wǎng)站,更提供有價(jià)值的思路和整體網(wǎng)絡(luò)服務(wù)。
php -fpm慢執(zhí)行日志

vi /usr/local/php-fpm/etc/php-fpm.d/www.conf request_slowlog_timeout=1 slowlog=/usr/local/php-fpm/var/log/www-slow.log

配置nginx的虛擬主機(jī)test.com.conf,把unix:/tmp/php-fcgi.sock改為unx:/tmp/www.sock

重新加載nginx服務(wù)

vi /data/wwwroot/test.com/sleep.php

curl -x 127.0.0.1:80 test.com/sleep.php

cat /usr/local/php-fpm/var/log/www-slow.log

[root@localhost php-fpm.d]# vi www.conf 1 [www] 2 listen = /tmp/php-fcgi.sock 3 listen.mode = 666 4 user = php-fpm 5 group = php-fpm 6 pm = dynamic 7 pm.max_children = 50 8 pm.start_servers = 20 9 pm.min_spare_servers = 5 10 pm.max_spare_servers = 35 11 pm.max_requests = 500 12 rlimit_files = 1024 13 request_slowlog_timeout = 1 14 slowlog = /usr/local/php-fpm/var/log/www-slow.log [root@localhost php-fpm.d]# /usr/local/php-fpm/sbin/php-fpm -t [10-Jan-2018 08:13:55] NOTICE: configuration file /usr/local/php-fpm/etc/php-fpm.conf test is successful [root@localhost php-fpm.d]# /etc/init.d/php-fpm reload Reload service php-fpm done

[root@localhost php-fpm.d]# ls /usr/local/php-fpm/var/log/ php-fpm.log www-slow.log [root@localhost php-fpm.d]# vi /data/wwwroot/test.com/sleep.php 1

[root@localhost php-fpm.d]# curl -x 127.0.0.1:80 test.com/sleep.php

[root@localhost php-fpm.d]# vi /usr/local/php-fpm/etc/php.ini /display_errors 462 ; Default Value: On 463 ; Development Value: On 464 ; Production Value: Off 465 ; http://php.net/display-errors 466 display_errors = Off 467 468 ; The display of errors which occur during PHP\'s startup sequence are handled 469 ; separately from display_errors. PHP\'s default behavior is to suppress those 470 ; errors from clients. Turning the display of startup errors on can be useful in 471 ; debugging configuration problems. We strongly recommend you 472 ; set this to \'off\' for production servers. 473 ; Default Value: Off

將display_errors = Off改為On

[root@localhost php-fpm.d]# vi /usr/local/php-fpm/etc/php.ini /display_errors 462 ; Default Value: On 463 ; Development Value: On 464 ; Production Value: Off 465 ; http://php.net/display-errors 466 display_errors = On 467 468 ; The display of errors which occur during PHP\'s startup sequence are handled 469 ; separately from display_errors. PHP\'s default behavior is to suppress those 470 ; errors from clients. Turning the display of startup errors on can be useful in 471 ; debugging configuration problems. We strongly recommend you 472 ; set this to \'off\' for production servers. 473 ; Default Value: Off [root@localhost php-fpm.d]# /etc/init.d/php-fpm reload Reload service php-fpm done

[root@localhost php-fpm.d]# curl -x 127.0.0.1:80 test.com/sleep.php [root@localhost php-fpm.d]# cat /usr/local/php-fpm/var/log/www-slow.log



分享文章:【CentOS7LNMP架構(gòu)38】,php-fpm慢執(zhí)行日志#180110
瀏覽路徑:http://weahome.cn/article/cpjidp.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部