[英]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.