502网关错误解决

A 502 Bad Gateway Error occurs when you try to visit a web page, but one web server gets an invalid response from another web server. Most of the time, the problem is on the website itself, and there’s not much you can do. But sometimes, this error can occur because of a problem on your computer or networking equipment. Here are some things you can try.

当您尝试访问网页时,发生502错误网关错误,但是一台Web服务器从另一台Web服务器收到无效响应。 大多数情况下,问题出在网站本身上,您无能为力。 但是有时,由于计算机或网络设备上的问题,可能会发生此错误。 您可以尝试以下方法。

什么是502错误网关错误? (What is a 502 Bad Gateway Error?)

A 502 Bad Gateway Error means that the web server you’ve connected to is acting as a proxy for relaying information from another server, but it has gotten a bad response from that other server. It’s called a 502 error because that’s the HTTP status code that the web server uses to describe that kind of error. These bad responses could be due to a number of different causes. It’s possible the server is overloaded or there are network issues between the two servers, and it’s just a temporary problem. It’s also possible there’s an improperly configured firewall or even a coding error, and that the problem won’t get fixed until those issues are addressed.

502错误的网关错误表示您连接到的Web服务器正在充当从另一台服务器中继信息的代理,但已从该另一台服务器获得错误的响应。 之所以称为502错误,是因为Web服务器用来描述这种错误的HTTP状态代码。 这些不良React可能是由于多种原因引起的。 服务器可能过载,或者两台服务器之间存在网络问题,这只是暂时的问题。 也有可能是防火墙配置不正确,甚至是编码错误,而且只有解决了这些问题,问题才能得到解决。

Just like with 404 errors, website designers can customize how a 502 error looks. So, you might see different looking 502 pages on different websites. Websites might also use slightly different names for this error. For example, you might see things like:

就像出现404错误一样,网站设计者可以自定义502错误的外观。 因此,您可能会在不同的网站上看到外观不同的502页。 网站可能还会对此错误使用稍微不同的名称。 例如,您可能会看到以下内容:

  • HTTP Error 502 Bad GatewayHTTP错误502错误的网关
  • HTTP 502HTTP 502
  • 502 Service Temporarily Overloaded502服务暂时超载
  • Temporary Error (502)暂时错误(502)
  • 502 Server Error: The server encountered a temporary error and could not complete your request502服务器错误:服务器遇到临时错误,无法完成您的请求
  • 502 Bad Gateway Nginx502错误的网关Nginx

The vast majority of the time, this is just an error on the server side of things that you won’t be able to do anything about. Sometimes, it’s a temporary error; sometimes it isn’t. Still, there are some things you can try on your end of things.

在绝大多数情况下,这只是服务器端的错误,您将无能为力。 有时,这是暂时的错误; 有时候不是。 尽管如此,您还是可以尝试一些方法。

刷新页面 (Refresh the Page)

Refreshing the page is always worth a shot. Many times the 502 error is temporary, and a simple refresh might do the trick. Most browsers use the F5 key to refresh, and also provide a Refresh button somewhere on the address bar. It doesn’t fix the problem very often, but it takes just a second to try.

刷新页面始终值得一试。 很多时候502错误是暂时的,简单的刷新就可以解决问题。 大多数浏览器使用F5键刷新,并在地址栏上的某个位置提供“刷新”按钮。 它不会经常解决问题,但是只需一秒钟即可尝试。

检查该站点是否为其他人关闭 (Check If the Site Is Down For Other People)

Whenever you fail to reach a site (for whatever reason), you can also check if it’s just you that’s having a problem connecting, or if other people are having the same trouble. There are lots of tools out there for this, but our favorites are isitdownrightnow.com and downforeveryoneorjustme.com. Both work pretty much the same. Plug in the URL you want to check, and you’ll get a result like this.

每当您无法访问某个站点时(无论出于何种原因),您都可以检查是只有您自己遇到了问题,还是其他人遇到了同样的麻烦。 有很多工具可用于此目的,但我们的最爱是isitdownrightnow.com和downforeveryoneorjustme.com 。 两者的工作原理几乎相同。 插入您要检查的URL,您将得到如下结果。

If you get a report saying the site is down for everyone, there’s not much you can do but try again later. If the report shows that the site is up, then the problem might be on your end. It’s very rare this is the case with a 502 error, but it is possible, and you can try some of the things we describe in the next few sections.

如果您收到报告说该站点对每个人都关闭了,那么您无能为力,请稍后再试。 如果报告显示该站点已启动,则问题可能出在您身上。 出现502错误的情况很少见,但是有可能,您可以尝试在接下来的几节中介绍的一些内容。

尝试其他浏览器 (Try Another Browser)

It’s possible that an issue with your browser might be causing the 502 Bad Gateway error. One easy way to check this out is to use a different browser and see if it works. You can use Google Chrome, Mozilla Firefox, Apple Safari, or Microsoft Edge. If you can see the error in the new browser as well, then you know it’s not a browser issue, and you should try another solution.

您的浏览器出现问题可能会导致502 Bad Gateway错误。 一种简单的检查方法是使用其他浏览器,看看它是否有效。 您可以使用Google Chrome , Mozilla Firefox , Apple Safari或Microsoft Edge 。 如果您也可以在新浏览器中看到该错误,则说明这不是浏览器问题,应尝试其他解决方案。

清除浏览器的缓存和Cookie (Clear Your Browser’s Cache and Cookies)

If trying a different browser works, it’s possible that your main browser has cached outdated or corrupt files that might be causing the 502 error. Removing these cached files and trying to open the website could solve the problem.

如果尝试使用其他浏览器,则可能是您的主浏览器已缓存过时或损坏的文件,这些文件可能会导致502错误。 删除这些缓存的文件并尝试打开网站可以解决此问题。

It’s certainly worth trying, and we’ve got a handy guide for you on how to clear your history in any browser.

当然值得尝试,并且我们为您提供了有关如何在任何浏览器中清除历史记录的便捷指南。

检查您的插件和扩展 (Check Your Plugins and extensions)

If you use extensions on your browser, then it’s possible that one or more of the extensions are causing the problem. Try disabling all your extensions and then accessing the website. If the error disappears after that, then its likely that a plugin is causing the issue. Enable your plugins one by one to find the culprit.

如果您在浏览器上使用扩展名,则可能是一个或多个扩展名导致了该问题。 尝试禁用所有扩展,然后访问网站。 如果此后错误消失,则很可能是由插件引起的。 逐个启用您的插件以找到罪魁祸首。

重新启动设备 (Restart Your Devices)

So, you’ve used a site checking tool and determined that the site is just down for you. And, you’ve tested another browser and are having the same problem. So you know the problem is likely something on your end, but it’s not your browser.

因此,您已经使用了站点检查工具,并确定该站点对您而言不可用。 而且,您已经测试了另一个浏览器,并且遇到了同样的问题。 因此,您知道问题可能出在您的头上,但不是您的浏览器。

It is possible that there are some strange, temporary issues with your computer or your networking equipment (Wi-Fi, router, modem, etc.). A simple restart of your computer and your networking devices might help fix the problem.

您的计算机或网络设备(Wi-Fi,路由器,调制解调器等)可能会出现一些奇怪的临时问题。 重新启动计算机和网络设备可能会帮助解决此问题。

更改您的DNS服务器 (Change your DNS Servers)

Sometimes, DNS problems can cause 502 errors. Changing your DNS servers is not a likely fix, but it is a possible one. And it’s not too hard to do. Unless you’ve changed them yourself, your DNS servers are probably be set by your ISP. You can change them to a third-party DNS server like OpenDNS or Google DNS, and that might to solve the problem. And there are other reasons you might want to change DNS servers, too—like better speed and reliability.

有时,DNS问题可能会导致502错误。 更改DNS服务器不是一个可能的解决方法,但它可能是一个解决方法。 而且做起来也不难。 除非您自己更改了它们,否则DNS服务器可能是由ISP设置的。 您可以将它们更改为第三方DNS服务器,例如OpenDNS或Google DNS,这可能可以解决问题。 另外,您可能还需要更改DNS服务器的其他原因,例如更快的速度和可靠性。

Follow our guide for step by step instructions.

请按照我们的指南进行逐步说明。

Image Credit: Micha/Shutterstock

图片来源: Micha / Shutterstock

翻译自: https://www.howtogeek.com/356389/what-is-a-502-bad-gateway-error-and-how-can-i-fix-it/

502网关错误解决

502网关错误解决_什么是502错误网关错误(以及如何解决)?相关推荐

  1. python读取日志错误信息_使用Python将Exception异常错误堆栈信息写入日志文件

    假设需要把发生异常错误的信息写入到log.txt日志文件中去: import traceback import logging logging.basicConfig(filename='log.tx ...

  2. mysql怎么定位错误信息_如何快速定位MySQL 的错误日志(Error Log)?

    日志文件是MySQL数据库的重要组成部分,包括有6种不同的日志文件: 错误日志: -log-err 查询日志: -log 慢查询日志: -log-slow-queries 更新日志: -log-upd ...

  3. python开发应用程序错误怎么办_编程中遇到的Python错误和解决方法汇总整理

    开个贴,用于记录平时经常碰到的Python的错误同时对导致错误的原因进行分析,并持续更新,方便以后查询,学习. 知识在于积累嘛!微笑 +++++++++++++++++++++++++++++++++ ...

  4. python类型错误如何解决_在Python中 出现的错误类型以及解决办法

    #IndentationError:expected an indented #block 缩进错误 #解决办法 tab 缩进 for index in range(10): if name == ' ...

  5. mysql错误代码1怎样解决_打开网页提示mysql发生错误,错误号1194,请问下该怎么解决? 爱问知识人...

    今天上服务器一看,发现网页错误,无法连接数据库服务器.mysql服务自己down掉了,然后重新启动服务器,发现网页无法打开,提示: [mysql]Table tblName is marked as ...

  6. mysql2003错误如何解决_如何安装最新版redis6错误解决以及配置开机启动等

    1.正常安装步骤如下: [root@localhost ~]# yum install gcc[root@localhost ~]# cd /usr/local[root@localhost loca ...

  7. icloud安装错误怎么办_怎么办?iCloud云备份失败该如何解决?

    iCloud云备份是很多果粉在备份手机里的数据时,常用到的一项操作.但是很多用户发现,自己在使用iCloud备份数据时,经常会遇到:iCloud云备份失败.造成iCloud云备份失败的原因是什么呢,又 ...

  8. ora00936缺失表达式怎么解决_初学者学习AE经常会遇到问题及解决方法,快进来看看吧!~~...

    关于软件常见问题 请一定要收藏 对初学者的你绝对有用 首先解决的第一个问题是: 软件安装失败提示及解决方案 说起原因 安装失败是由AE的某些文件没有删除干净 (绿化版本极易造成,不建议安装) 解决方案 ...

  9. 安卓手机卡顿怎么解决_手机卡顿怎么办? 几招教你轻松解决!

    看点:iPhone X原装屏与国产屏有哪些区别? 看点:换7P.8P屏幕:C11和DTP和DKH的区别 狮淘:不锈钢拆机片5个只需9.9元!包邮!每天10名 如今手机厂商发布新品的次数越来越多,手机各 ...

最新文章

  1. 关于REID的mAP指标
  2. nyoj-915—— +-字符串
  3. opencv打开摄像头采集和保存
  4. 详解java集合之ArrayList——底层实现是一个Object数组。分析ArrayList的自动扩容,原来不一定是1.5倍
  5. C++最全输入方式总结(cin、get、getchar、getline)
  6. 计算机中减法英语,计算机中的减法运算
  7. python 将图片旋转多个角度_【技术】把你的朋友变成表情包?Python:So easy
  8. ICCV2021 2D和3D通用!新医疗影像自监督SOTA(代码已开源)
  9. Linux学习总结(4)——Centos6.5使用yum安装mysql——快速上手必备
  10. 大数取余运算(详解)
  11. 网站api自己怎么写_网站建设及推广网站关键词优化自己怎么做网站推广
  12. c语言小车程序,循迹小车程序C语言
  13. 武汉大学计算机学院朱晓薇,基于SDN的TDMA体制星间网络架构设计
  14. 雅可比行列式_二重积分换元法、雅可比行列式
  15. 1698 字符串的不同子字符串个数
  16. UMLChina建模知识竞赛第3赛季第13轮:SysML和系统工程知识
  17. python+appium判断元素存在_python+appium 查找某个元素find_element()并click()点击,正向判断与反判断的方法封装...
  18. python应用领域介绍 -- (python 真的很强大)
  19. 扇形展开的悬浮菜单按钮CircularFloatingActionMenu
  20. 微信小程序 - 跨域问题

热门文章

  1. java侧边栏_DrawerLayoutDemo【侧边栏(侧滑菜单)简单实现】
  2. 2023健身俱乐部会员管理系统的 设计与实现(论文+开题报告+运行)
  3. u-modal不能控制显示隐藏 icon图标不显示引入问题
  4. 排序算法10——图解基数排序(次位优先法LSD和主位优先法MSD)
  5. 【JavaScript+自然语言处理+HTML+CSS】实现Web端的智能聊天问答客服实战(附源码 超详细必看)
  6. ci框架中引入css,php ci框架中加载css和js文件失败的原因和解决方法
  7. 校园安防智能视频行为分析预警系统解决方案
  8. VB脚本:BAT脚本调用VB脚本的方法
  9. 蓝桥杯取球博弈c语言算法,1298: [蓝桥杯2016初赛]取球博弈 (博弈)
  10. 助理执业医师考试全程通(临床) v6.8 官方