当前位置:SEO自学网 > Nginx

linux nginx 网站访问提示502 Bad Gateway

admin2022年05月04日 12:47:53服务器/VPS310
从日志报错分析,是php线程打开文件句柄受限导致的,解决办法:1、提升服务器的文件句柄打开打开vi /etc/security/limits.conf 底部加上* soft nofile 51200* hard nofile 51200vi /etc/sysctl.conf  底部添加fs.file-max=512002、提升nginx的进程文件打开数vi /www/wdlinux/nginx/conf/nginx.confworker_rlimit_nofile 5120; 改成wo