什么是503服务不可用错误(以及如何解决)?

A 503 Service Unavailable Error happens when a web server is temporarily unable to handle a request that’s been made of it. 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.

当Web服务器暂时无法处理对其发出的请求时,会发生503服务不可用错误。 该错误几乎总是在网站本身上,您无能为力,但是请稍后再试。 不过,您可以尝试一些快速操作。

什么是503服务不可用错误? (What is a 503 Service Unavailable Error?)

A 503 Service Unavailable Error indicates that a web server is temporarily unable to handle a request. That could be the web server you’re trying to access directly, or another server that web server is in turn trying to access. It’s called a 503 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.

503服务不可用错误表示网络服务器暂时无法处理请求。 可能是您尝试直接访问的Web服务器,或者是该Web服务器又尝试访问的另一台服务器。 之所以称为503错误,是因为Web服务器用来定义这种错误的HTTP状态代码。 发生此错误的原因有很多,但最常见的两个原因是服务器不堪重负或对其进行了维护。

The 503 error is different from a 500 Internal Server Error. The 500 error occurs when something is preventing the server from handling your request, while the 503 Error actually means that the server is fine—it’s able to process your request and is returning the 503 error by design.

503错误与500 Internal Server Error不同 。 500错误是由于某种原因阻止服务器处理您的请求而发生的,而503错误实际上意味着服务器正常-它能够处理您的请求,并设计返回了503错误。

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

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

  • Http/1.1 Service Unavailable

    Http / 1.1服务不可用
  • 503 Error

    503错误
  • 503 Service Temporarily Available

    503服务暂时可用
  • 503 Service Unavailable

    503服务不可用
  • Service Unavailable – DNS Failure

    服务不可用– DNS失败
  • HTTP Error 503

    HTTP错误503
  • HTTP 503

    HTTP 503
  • Error 503 Service Unavailable

    错误503服务不可用

An important thing to remember is that the 503 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.

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

Nonetheless, here are few quick things you can try.

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

刷新页面 (Refresh the page)

As we mentioned, a 503 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.

正如我们提到的,503错误表示一个临时性问题,有时该问题是非常临时性的。 例如,网站可能会变得不堪重负。 因此,刷新页面始终值得一试。 大多数浏览器使用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 503 error, but it is possible, and you can try some of the things we describe in the next couple of sections.

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

重新启动设备 (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.

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

Image Credit: Micha/Shutterstock

图片来源: Micha / Shutterstock

翻译自: https://www.howtogeek.com/360903/what-is-a-503-service-unavailable-error-and-how-can-i-fix-it/

  • 3
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
如果您的服务可用,但是 Feign 客户端无法访问,可能有以下几种原因: 1. Feign 版本不兼容:请确保您使用的 Feign 版本与 Spring Cloud 版本兼容。您可以在 Spring Cloud 官方文档中查看 Feign 和 Spring Cloud 之间的兼容关系。 2. 服务注册中心配置错误:请检查您的服务注册中心是否正确配置,包括注册中心的地址、端口、协议、用户名、密码等。特别是,需要确保您的服务注册中心中已经注册了要访问的服务。 3. Feign 配置错误:请检查您的 Feign 配置是否正确,包括 Feign 的配置文件和代码中的配置。特别是,需要确保您的 Feign 客户端的 `@FeignClient` 注解中的 `name` 或 `value` 属性与注册中心中的服务名称保持一致。 4. 网络隔离:如果您的服务运行在容器中,可能存在容器间网络隔离的问题,导致 Feign 无法访问服务。您可以尝试在容器中运行一个简单的 HTTP 服务,并尝试从 Feign 客户端中访问该服务,以确定网络隔离是否是问题的原因。 5. 安全限制:如果您的服务需要进行安全认证,可能存在安全限制导致 Feign 无法访问服务。请确保您的 Feign 客户端具有足够的安全权限,可以访问要访问的服务。 如果您无法解决问题,可以考虑使用其他方式来访问服务,比如使用 RestTemplate 或直接使用 HTTP 客户端。如果其他方式可以访问服务,那么问题可能是 Feign 客户端的问题,需要进一步排查。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值