简体   繁体   English

HTTP错误503。当端口80已空闲时,该服务不可用

[英]HTTP Error 503. The service is unavailable when port 80 is already free

Before you go and suggest it as a duplicate of other IIS HTTP Error 503 questions, I have already tried many solutions available on SO and also on Google but the problem is not resolved. 在您将其建议为与其他IIS HTTP Error 503问题重复的方式之前,我已经尝试过许多在SO和Google上可用的解决方案,但问题尚未解决。 Below are the most popular solutions that I have found: 以下是我找到的最受欢迎的解决方案:

IIS - HTTP Error 503. The service is unavailable IIS-HTTP错误503。服务不可用

Solve HTTP Error 503. The service is unavailable in IIS 解决HTTP错误503。该服务在IIS中不可用

In my case: 就我而言:

IIS is not working while the port 80 is open and free to use. 打开端口80并免费使用时, IIS无法正常工作。

在此处输入图片说明

As far as I know the error is caused if the application pool is not enabled (started) for the website in IIS . 据我所知,如果未为IIS的网站启用(启动)应用程序池,则会导致该错误。

I have already closed all other applications like Skype, Google Disk etc who can possibly use port 80 and checks if the port is in use or not. 我已经关闭了所有其他应用程序,例如Skype,Google Disk等,它们可能会使用端口80,并检查该端口是否正在使用中。

在此处输入图片说明

Then I looked into the Application Pools of IIS and found DefaultAppPool status stopped . 然后,我查看了IIS的应用程序池,发现DefaultAppPool状态已stopped

在此处输入图片说明

After starting the DefaultAppPool I recheck my web and gets the same error. 启动DefaultAppPool我重新检查我的网站并得到相同的错误。

And now the situation is like, DefaultAppPool status shows started until I don't hit any URL. 现在情况就像, DefaultAppPool状态started显示,直到我未点击任何URL。 Whenever I request any URL for my local websites or localhost, the browsers returns me the Service Unavailable error message and the DefaultAppPool status change to stopped automatically. 每当我为本地网站或本地主机请求任何URL时,浏览器就会向我返回“ 服务不可用”错误消息,并且DefaultAppPool状态更改为自动停止。

I have already tried the iisreset command but after resetting IIS the problem is still there. 我已经尝试过iisreset命令,但是在重置IIS之后问题仍然存在。

Most probably identity under which you are running your app pool ie administrator has wrong password or disabled. 您运行应用程序池时最可能使用的身份,即管理员密码错误或已被禁用。 Try changing this identity to something like network service or local service or any other valid identity. 尝试将此身份更改为网络服务或本地服务之类的名称,或任何其他有效身份。

There is an uncommon cause for 503 error. 出现503错误的常见原因。 To fix this, follow these easy steps: 要解决此问题,请按照以下简单步骤操作:

Run this command 运行此命令

netsh http show urlacl

It will list all reserved urls, find the url with relevant port. 它将列出所有保留的URL,找到具有相关端口的URL。

 Reserved URL            : http://+:80/
    User: NT SERVICE\Machine
        Listen: Yes
        Delegate: No
        SDDL: D:(A;;GX;;;S-1-5-21-2127521184-1604012920-1887927527-67210)

Then delete the entry with this command (replace the url part with yours): 然后使用此命令删除条目(将url部分替换为您的部分):

netsh http delete urlacl http://+:80/

https://blogs.msdn.microsoft.com/webtopics/2010/02/17/a-not-so-common-root-cause-for-503-service-unavailable/ https://blogs.msdn.microsoft.com/webtopics/2010/02/17/a-not-so-common-root-cause-for-503-service-unavailable/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 HTTP 错误 503。该服务在 IIS 中不可用? - HTTP Error 503. The service is unavailable in IIS? IIS 停止并出现错误消息“HTTP 错误 503。服务不可用” - IIS stopped and error message "HTTP Error 503. The service is unavailable" 仅当使用NetworkService时,站点才不会使用ApplicationPoolIdentity在本地启动:“ HTTP错误503。该服务不可用。” - Site wont start on local using ApplicationPoolIdentity, only when using NetworkService: “HTTP Error 503. The service is unavailable.” HTTP 错误 503。服务不可用。 应用程序池在访问网站时停止 - HTTP Error 503. The service is unavailable. App pool stops on accessing website HTTP 503:服务不可用 - HTTP 503 : Service Unavailable 使用 ApplicationPoolIdentity 或自定义帐户时,IIS8“HTTP 错误 503 - 服务不可用”,但在使用 NetworkService 时则不然 - IIS8 'HTTP Error 503 - Service unavailable' when using ApplicationPoolIdentity or a custom account, but not when using NetworkService 尝试浏览信号器/集线器时,HTTP 503服务不可用 - HTTP 503 Service is unavailable when trying to browse signalr/hubs Visual Studio IIS HTTP 503 服务不可用 - Visual Studio IIS HTTP 503 Service Unavailable HttpListener服务器返回错误:(503)服务不可用 - HttpListener server returns an error: (503) Service Unavailable 数据库关闭时如何防止“503服务不可用” - How to prevent "503 Service Unavailable" when database is down
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM