504网关超时怎么解决

504网关超时怎么解决

what-is-a-504-error-header

A 504 Gateway Timeout Error happens when a server that was attempting to load a web page did not get a response in time from another server. Almost always, the error is on the website itself, and there’s nothing you can do about it but try again later. Still, there are a few quick things you can try on your end.

当试图加载网页的服务器未及时从另一台服务器获得响应时,将发生“ 504网关超时错误”。 该错误几乎总是在网站本身上,您无能为力,只能稍后再试。 不过,您可以尝试一些快速操作。

什么是504网关超时错误? (What Is a 504 Gateway Timeout Error?)

A 504 Gateway Timeout Error indicates that a web server attempting to load a page for you did not get a timely response from another server from which it requested information. It’s called a 504 error because that’s the HTTP status code that the web server uses to define that kind of error. The error can occur for a number of reasons, but the two most common reasons are that the server is overwhelmed with requests or is having maintenance performed on it.

504网关超时错误表示尝试为您加载页面的Web服务器没有从其请求信息的其他服务器得到及时的响应。 之所以称为504错误,是因为这是Web服务器用来定义此类错误的HTTP状态代码。 发生此错误的原因有很多,但最常见的两个原因是服务器不堪重负或对其进行了维护。

Website designers can customize how a 504 error page looks. So, you might see different looking 504 pages on different websites. Websites might also use slightly different names for this error. For example, you might see things like:

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

  • Gateway Timeout Error

    网关超时错误
  • HTTP 504

    HTTP 504
  • Gateway Timeout (504)

    网关超时(504)
  • 504 Gateway Timeout

    504网关超时
  • 504 Error

    504错误
  • HTTP Error 504 – Gateway Timeout

    HTTP错误504 –网关超时

An important thing to remember is that the 504 error is a server-side error. That means the problem exists with the website you’re trying to access, and not with your computer. That’s both good and bad news. It’s good news because there’s nothing wrong with your computer, and it’s bad news because there’s usually nothing you can do to solve the problem from your end.

要记住的重要一点是504错误是服务器端错误。 这意味着您尝试访问的网站存在问题,而不是您的计算机存在问题。 这既是好消息,也是坏消息。 这是个好消息,因为您的计算机没有任何问题,这是个坏消息,因为您通常无所事事可以从头解决问题。

Nonetheless, here are few quick things you can try.

不过,您可以尝试以下几种快速尝试。

刷新页面 (Refresh the Page)

As we mentioned, a 505 error indicates a temporary problem, and sometimes that problem is very temporary. A site might be getting overwhelmed with traffic, for example. So, refreshing the page is always worth a shot. 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.

正如我们提到的,505错误表示一个临时性问题,有时该问题是非常临时性的。 例如,网站可能会变得不堪重负。 因此,刷新页面始终值得一试。 大多数浏览器使用F5键刷新,并在地址栏上的某个位置提供“刷新”按钮。 它不会经常解决问题,但是只需一秒钟即可尝试。

refresh-the-page

Warning: Be sure to pay extra attention if the error occurs while you’re making a payment. Refreshing the page might get you charged twice, so keep an eye out for that.

警告 :如果在付款时发生错误,请务必格外注意。 刷新页面可能会使您收费两次,因此请注意这一点。

检查该站点是否为其他人关闭 (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.comdownforeveryoneorjustme.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 504 error, but it is possible, and you can try some of the things we describe in the next couple of sections.

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

重新启动设备 (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. This tells you 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,路由器,调制解调器等)可能会出现一些奇怪的临时问题。 重新启动计算机网络设备可能会帮助解决此问题。

Another possibility is that the error is caused by a DNS issue but on a DNS server rather than your computer. In that case, you can try switching DNS servers and seeing whether the problem gets resolved.

另一种可能性是该错误是由DNS问题引起的,但是在DNS 服务器而不是您的计算机上引起的。 在这种情况下,您可以尝试切换DNS服务器并查看问题是否得到解决。

联系网站 (Contact the Website)

Another option is to contact the website owner directly. Look up their contact information on the website and contact them about the page in question. If there is no contact form, you can try and reach the website on their social media.

另一种选择是直接与网站所有者联系。 在网站上查找他们的联系信息,并就有关页面与他们联系。 如果没有联系表,您可以尝试在其社交媒体上访问该网站。

稍后再试 (Try Again Later)

If you’ve tried all the solutions outlined above but are still getting a 504 error, then the only solution left is to wait and try later. Since the problem is not with your computer, there are only a limited number of solutions that you can try. Chances are, the people responsible are already on it and will have it fixed soon.

如果您尝试了上面列出的所有解决方案,但仍收到504错误,则剩下的唯一解决方案是等待稍后再试。 由于问题不在于您的计算机,因此只能尝试有限数量的解决方案。 很有可能,负责人员已经在此文件上,并将很快对其进行修复。

Check back with the website in some time. There is a good chance that the error will be resolved by then.

请过一段时间再返回网站。 届时很有可能会解决错误。

翻译自: https://www.howtogeek.com/367129/what-is-a-504-gateway-timeout-error-and-how-can-i-fix-it/

504网关超时怎么解决

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐