2019独角兽企业重金招聘Python工程师标准>>>

打开网站一直报错,查看了一下nginx错误日志,发现很多的报错:

2018/12/24 11:02:51 [alert] 20026#20026: *33113943 socket() failed (24: Too many open files) while connecting to upstream, client:

查看nginx设置的可打开文件大小

1.查看nginx的进程号

ps -elf | grep nginx

2.根据查出来的进程号查看进程详情

cat /proc/进程号/limits

其中Max open files是1024,修改配置值,在nginx中修改
worker_rlimit_nofile 65535;

events { 
        worker_connections 65535; 
}

在nginx配置文件中加上这几行

重启nginx,问题解决

转载于:https://my.oschina.net/u/2984758/blog/2992597

502 Bad Gateway The proxy server received an invalid response from an upstream server相关推荐

  1. 502 Proxy Error The proxy server received an invalid response from an upstream server

    Proxy Error The proxy server received an invalid response from an upstream server. The proxy server ...

  2. Apache 502 Bad Gateway

    测试网站发现,不停点击保存大信息数据,一段时间之后,页面出现 502 Bad Gateway The proxy server received an invalid response from an ...

  3. html 调试502谷歌浏览器,谷歌浏览器网页提示Server Error 502 Bad Gateway

    今天在使用谷歌浏览器的时候遇到以下这种问题:Server Error 502 - Web server received an invalid response while acting as a g ...

  4. nginx正向代理访问微信接口502错误, Unable to tunnel through proxy. Proxy returns \“HTTP/1.1 502 Bad Gateway\

    问题: nginx正向代理访问微信接口报错502, Unable to tunnel through proxy. Proxy returns "HTTP/1.1 502 Bad Gatew ...

  5. 各种HTTP返回错误代码大全 HTTP 403 Forbidden / 404 Not Found / 500 Internal Server Error / 502 Bad Gateway / 50

    转载自:http://targetcn.com/?p=52#comment-90 现在上网经常发现各种不能访问的页面,搜索引擎里看的到点开链接却404了,聪明的你当然知道看搜索引擎缓存页面啦,但是你是 ...

  6. Nginx 502错误: Failed to load resource: the server responded with a status of 502 (Bad Gateway)

    通用管理后台推荐 (兮家 plus) [兮家 plus], 主要应用于中小型项目的快速开发,已经历历时3年的优化改进,具备完善的基础功能以及代码生成,并且拥有完善的分布式解决方案:如分布式缓存,分布式 ...

  7. Nginx 502 Bad Gateway 错误的原因及解决方法

    2019独角兽企业重金招聘Python工程师标准>>> 刚才在调试程序的时候,居然服务器502错误,昨天晚上也发生了,好像我没有做非常规的操作. 然后网上寻找了下答案, 把一些原因及 ...

  8. NGINX 502 Bad Gateway 用upstream解决方法

    一般nginx搭配php都采用这样的方式: location ~ \.php$ {     proxy_pass http://localhost:9000;     fastcgi_param SC ...

  9. 解决nginx 502 bad gateway

    nginx 502 bad gateway 可以采取客户端强制刷新的方法,但是真正的解决要么改配置或者放CDN上.      遇到这个问题,首先是有人发现可以加index.html访问,因为我们是线上 ...

  10. php 502 bad gatway,Nginx php如何解决502 Bad Gateway错误

    在Web服务器中有很多先进的技术,Nginx php就是其中的一个,接下来我们就看看在Nginx 中的相关问题解决,希望大家有所收获.Nginx php中配置php fastcgi组解决莫名其妙的50 ...

最新文章

  1. 读去excel文件内容写入数据库
  2. javascript运动系列第二篇——变速运动
  3. bat射击游戏代码_这张图打开就是3D射击游戏,我是服气的
  4. sql 语言中 when case 用法
  5. python---统计列表中数字出现的次数
  6. vs窗体 oracle,VS2010连接oracle数据库的简单例子
  7. 我们应该这样理解鸿蒙
  8. 最全的“大数据”学习资源
  9. 嵌入式大神:教你如何从零开始学习路线解析
  10. 神舟IV号开发板STM32F107VCT6资料包(已购买)\STM32神舟IV号视频教程\第9集 串口实验 电脑超级终端连接串口1
  11. ITween操作API
  12. 【vue】微信sdk中接口和标签本地调试
  13. 临沂一中高考2021成绩查询,2021年临沂高考状元名单公布,临沂高考状元学校资料及最高分...
  14. ElementUI Collapse 折叠面板
  15. 博客图片html代码,【html博客代码】图片羽化代码
  16. 基于Open3D的Lidar-Segment
  17. 【时间序列预测】股价预测零售预测
  18. html 自动点击回车事件,1秒自动按回车键的脚本
  19. gpu-z怎么用,显卡怎么看体质
  20. imx6ull项目也是封装成脚本安装 Poky 交叉编译工具链类似ATK-STM32MP157交叉编译

热门文章

  1. JSON七彩影视双端二开修复源码
  2. 关于idea注释等颜色设置
  3. 研发管理和项目管理有哪些痛点?
  4. Python爬虫利器 ——代码转换
  5. android开发rn插件,RN native module 插件开发
  6. Web组态—低代码物联网组态平台
  7. 走进JavaWeb技术世界1:Web后端与J2EE的由来
  8. 【CAD】DWF文件格式详细说明,清晰易懂
  9. 微星小飞机怎么超频?
  10. 进击系列2.0:进击的骑士-----用funcode与C语言实现射击游戏制作