- 积分
- 6
- 威望
-
- 金钱
-
- 注册时间
- 2016-1-29
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
问下,为何非要有php-fpm这个步骤?优化来优化去,还是那个样,真的很蛋疼,来来去去还是502错误
VPS是LINODE,1GRAM 1CPU
现在设置这样
[global]
pid = /usr/local/php/var/run/php-fpm.pid
error_log = /usr/local/php/var/log/php-fpm.log
log_level = notice
[www]
listen = /tmp/php-cgi.sock
listen.backlog = -1
listen.allowed_clients = 127.0.0.1
listen.owner = www
listen.group = www
listen.mode = 0666
user = www
group = www
pm = dynamic
pm.max_children = 16
pm.start_servers = 2
pm.min_spare_servers = 16
pm.max_spare_servers = 16
request_terminate_timeout = 300
request_slowlog_timeout = 20
slowlog = var/log/slow.log
++++++++++++++++++++++++++
PHP-FPM日志:
01-Feb-2016 12:08:25] NOTICE: fpm is running, pid 3427
[01-Feb-2016 12:08:25] NOTICE: ready to handle connections
[01-Feb-2016 12:36:01] NOTICE: Finishing ...
[01-Feb-2016 12:36:01] NOTICE: exiting, bye-bye!
[01-Feb-2016 12:36:02] NOTICE: fpm is running, pid 3499
[01-Feb-2016 12:36:02] NOTICE: ready to handle connections
[01-Feb-2016 14:27:03] NOTICE: Terminating ...
[01-Feb-2016 14:27:03] NOTICE: exiting, bye-bye!
[01-Feb-2016 14:27:33] NOTICE: fpm is running, pid 2151
[01-Feb-2016 14:27:33] NOTICE: ready to handle connections
[01-Feb-2016 14:31:26] WARNING: [pool www] child 2152, script '/home/wwwroot/default/phpmyadmin/import.php' (request: "POST /phpmyadmin/import.php") execution timed out (110.744398 sec), terminating
[01-Feb-2016 14:31:26] WARNING: [pool www] child 2152 exited on signal 15 (SIGTERM) after 233.357944 seconds from start
[01-Feb-2016 14:31:26] NOTICE: [pool www] child 2677 started
[01-Feb-2016 14:56:00] NOTICE: Terminating ...
[01-Feb-2016 14:56:00] NOTICE: exiting, bye-bye!
[01-Feb-2016 14:56:32] NOTICE: fpm is running, pid 2152
[01-Feb-2016 14:56:32] NOTICE: ready to handle connections
[02-Feb-2016 00:01:47] NOTICE: Terminating ...
[02-Feb-2016 00:01:47] NOTICE: exiting, bye-bye!
[02-Feb-2016 00:02:18] NOTICE: fpm is running, pid 2151
[02-Feb-2016 00:02:19] NOTICE: ready to handle connections
[02-Feb-2016 12:13:54] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 0 idle, and 6 total children
[02-Feb-2016 12:13:55] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or
[ 本帖最后由 Wention 于 2016-2-27 14:39 编辑 ] |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
x
|