标签:pid lte php脚本 enter code font 系统日志 fpm 状态
find / -name php-fpm.conf
vi /usr/servers/php/etc/php-fpm.conf
去掉request_slowlog_timeout 、slowlog的前缀分号‘;‘ 设置request_slowlog_timeout =1; :wq //保存退出创建慢日志目录 mkdir -p /var/logdata/php-fpm/php-fpm-slowlog.log killall php-fpm/usr/servers/php/sbin/php-fpm //重启php-fpm
tailf /var/logdata/php-fpm/php-fpm-slowlog.log
[19-Dec-2016 16:54:49] [pool www] pid 18575 script_filename = /home/web/htdocs/sandbox_canglong/test/tt.php [0x0000000003a00dc8] curl_exec() /home/web/htdocs/sandbox_canglong/test/tt.php:2 [0x0000000003a00cd0] exfilter_curl_get() /home/web/htdocs/sandbox_canglong/test/tt.php:6
[19-Dec-2016 15:55:37] WARNING: [pool www] child 18575, script ‘/home/web/htdocs/sandbox_canglong/test/tt.php‘ (request: "GET /test/tt.php") executing too slow (1.006222 sec), logging [19-Dec-2016 15:55:37] NOTICE: child 18575 stopped for tracing [19-Dec-2016 15:55:37] NOTICE: about to trace 18575 [19-Dec-2016 15:55:37] NOTICE: finished trace of 18575
标签:pid lte php脚本 enter code font 系统日志 fpm 状态
原文地址:http://blog.csdn.net/ty_hf/article/details/55504172