PHPCMS 网站迁移后,管理栏目功能总是 502,怎么处理?

PHPCMS 网站迁移后,管理栏目功能总是 502,怎么处理?

栏目的修改,新增都有问题
其他都是好的

nginx日志:

2019/03/22 20:17:17 [error] 16436#0: *573 recv() failed (104: Connection reset by peer) while reading response header from upstream,

client: xxxxx, server: xxxxx, request: “GET /article HTTP/1.1”, upstream: “fastcgi://unix:/dev/shm/php-fpm.sock:”, host: “xxxxx”, referrer: “xxxxx”

php-fpm日志:

[23-Mar-2019 17:36:25] WARNING: [pool www] child 1843 exited on signal 9 (SIGKILL) after 248.595491 seconds from start

conf/proxy.conf:1:proxy_connect_timeout 300s;

conf/proxy.conf:2:proxy_send_timeout 900;

conf/proxy.conf:3:proxy_read_timeout 900;

conf/vhost/xxxx:9: ssl_session_timeout 10m;

conf/vhost/xxxxx:9: ssl_session_timeout 10m;

conf/vhost/xxxxx:9: ssl_session_timeout 10m;

conf/vhost/xxxxxx:9: ssl_session_timeout 10m;

conf/nginx.conf:32: keepalive_timeout 120;

conf/nginx.conf:36: # fastcgi_connect_timeout 300;

conf/nginx.conf:37: # fastcgi_send_timeout 300;

conf/nginx.conf:38: # fastcgi_read_timeout 300;

conf/nginx.conf:43: fastcgi_connect_timeout 600;

conf/nginx.conf:44: fastcgi_send_timeout 600;

conf/nginx.conf:45: fastcgi_read_timeout 600;

conf/nginx.conf.default:30: #keepalive_timeout 0;

conf/nginx.conf.default:31: keepalive_timeout 65;

conf/nginx.conf.default:106: # ssl_session_timeout 5m;

conf/nginx.conf_bk:30: #keepalive_timeout 0;

conf/nginx.conf_bk:31: keepalive_timeout 65;

conf/nginx.conf_bk:106: # ssl_session_timeout 5m;

conf/proxy.conf:4:#proxy_buffer_size 32k;

conf/proxy.conf:5:#proxy_buffers 4 64k;

conf/proxy.conf:6:#proxy_busy_buffers_size 128k;

conf/proxy.conf:8:proxy_buffer_size 64k;

conf/proxy.conf:9:proxy_buffers 4 128k;

conf/proxy.conf:10:proxy_busy_buffers_size 256k;

conf/vhost/xxxxx:11: ssl_buffer_size 1400;

conf/vhost/xxxxxx:11: ssl_buffer_size 1400;

conf/vhost/xxxxx:11: ssl_buffer_size 2800;

conf/vhost/xxxx:14: client_body_buffer_size 500M;

conf/vhost/xxxx:11: ssl_buffer_size 1400;

conf/nginx.conf:19: # client_header_buffer_size 32k;

conf/nginx.conf:20: client_header_buffer_size 64k;

conf/nginx.conf:22: # large_client_header_buffers 4 32k;

conf/nginx.conf:23: large_client_header_buffers 4 64k;

conf/nginx.conf:26: # client_body_buffer_size 10m;

conf/nginx.conf:27: client_body_buffer_size 20m;

conf/nginx.conf:39: # fastcgi_buffer_size 64k;

conf/nginx.conf:40: # fastcgi_buffers 4 64k;

conf/nginx.conf:41: # fastcgi_busy_buffers_size 128k;

conf/nginx.conf:46: fastcgi_buffer_size 128k;

conf/nginx.conf:47: fastcgi_buffers 4 128k;

conf/nginx.conf:48: fastcgi_busy_buffers_size 256k;

conf/nginx.conf:55: # gzip_buffers 16 8k;

conf/nginx.conf:56: gzip_buffers 16 16k;

php报错了. 但是你没把具体的错误贴 出来.

清理缓存 排除由缓存出现的报错
在排查一下项目配置 是否跟原服务器配置相同
着重检查一下nginx配置看下差异
cms报错大概率是配置产生的问题,仔细排查一下噻
可以在新增和修改的位置添加记录日志 看看日志里提示啥问题

给的日志是2019年的,不太好判断
建议你调试一下
如果你有兴趣可以参考一下我的文章,学习一下调试方法,再用来解决你的问题
【仅供参考,掌握了调试方法和套路用在所有后端技术上都可以】
https://segmentfault.com/a/11...

回答

以上是 PHPCMS 网站迁移后,管理栏目功能总是 502,怎么处理? 的全部内容, 来源链接: utcz.com/a/111017.html

回到顶部