🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
检测php运行时或用户自记录错误日志:http://blog.csdn.net/ty_hf/article/details/55505262 ## 查找 ``` find / -name php-fpm.conf vim /usr/local/php/etc/php-fpm.conf ``` ## 更改路径 step2:去掉分号,更改路径 将 `;error_log = log/php-fpm.log` 更改为: `error_log = /var/log/php-fpm/php-fpm.log` ## 重新启动 ``` /etc/init.d/php-fpm stop /etc/init.d/php-fpm start ``` ## 查看 ``` vim /var/log/php-fpm/php-fpm.log ``` ## 分析 ``` [21-Dec-2018 16:18:12] WARNING: [pool www] child 5545 exited on signal 15 (SIGTERM) after 136.663606 seconds from start [21-Dec-2018 16:18:12] NOTICE: [pool www] child 6490 started [21-Dec-2018 16:18:32] WARNING: [pool www] child 5059, script '/var/www/health.sxctkj.cc/public/index.php' (request: "POST /index.php") execution timed out (30.375807 sec), terminating [21-Dec-2018 16:18:32] WARNING: [pool www] child 5059 exited on signal 15 (SIGTERM) after 231.997570 seconds from start [21-Dec-2018 16:18:32] NOTICE: [pool www] child 6608 started [21-Dec-2018 16:18:33] WARNING: [pool www] child 5068, script '/var/www/health.sxctkj.cc/public/index.php' (request: "POST /index.php") execution timed out (30.127709 sec), terminating [21-Dec-2018 16:18:33] WARNING: [pool www] child 5068 exited on signal 15 (SIGTERM) after 231.663502 seconds from start [21-Dec-2018 16:18:33] NOTICE: [pool www] child 6619 started [21-Dec-2018 16:18:54] WARNING: [pool www] child 6619, script '/var/www/health.sxctkj.cc/public/index.php' (request: "POST /index.php") executing too slow (2.476524 sec), logging [21-Dec-2018 16:18:54] NOTICE: child 6619 stopped for tracing [21-Dec-2018 16:18:54] NOTICE: about to trace 6619 [21-Dec-2018 16:18:54] NOTICE: finished trace of 6619 ``` 问:能不能分析控制器等等呢?