无法在 Windows 7 中停止 IIS

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7910100/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 08:52:02  来源:igfitidea点击:

Can't stop IIS in windows 7

windowsiis

提问by Derrick

I can't seem to stop IIS (or whatever it is) running on port 80 on windows 7.

我似乎无法阻止在 Windows 7 上的端口 80 上运行的 IIS(或其他任何东西)。

I've stopped all sites on IIS, as well as all application pools.

我已经停止了 IIS 上的所有站点以及所有应用程序池。

As the Administrator, I've tried:

作为管理员,我尝试过:

net stop IIsadmin

net stop w3svc

When I telnet to localhost, on 80, I can attempt "GET index.html"

当我在 80 上 telnet 到 localhost 时,我可以尝试“GET index.html”

I get this (as expected)

我明白了(正如预期的那样)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Not Found</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Not Found</h2>
<hr><p>HTTP Error 404. The requested resource is not found.</p>
</BODY></HTML>

When I telnet, but send garbage ( "asdf" ), I get:

当我远程登录,但发送垃圾( "asdf" )时,我得到:

HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Wed, 26 Oct 2011 23:23:41 GMT
Connection: close
Content-Length: 326

How can I make whatever this is running no longer run?

我怎样才能让这个正在运行的东西不再运行?

回答by hex4def6

try

尝试

net stop msdepsvc

net stop msdepsvc

I've had that tie up port 80 before

我之前已经绑定了 80 端口

EDIT:

编辑:

Also, you can check what PID is tying up the port by using:

此外,您可以使用以下命令检查哪个 PID 占用了端口:

netstat -aon

回答by bryanmac

Try:

尝试:

iisreset /stop

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/95826e7a-bac4-4e1f-bcb6-c52d49c9d7f4.mspx?mfr=true

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/95826e7a-bac4-4e1f-bcb6-c52d49c9d7f4.mspx?mfr=true

Might not be IIS though.

虽然可能不是 IIS。

The process might be a system process. For example, see the post

该进程可能是一个系统进程。例如,请参阅帖子

http://hardforum.com/showthread.php?t=1362841

http://hardforum.com/showthread.php?t=1362841

In that case, it ended up being Windows Remote Management??

在那种情况下,它最终成为 Windows 远程管理??

回答by David Bélanger

Uninstall IIS from Windows or stop the service by going in "services.msc".

从 Windows 卸载 IIS 或通过进入“services.msc”停止服务。

回答by user3262069

In my version of Windows 7 Professional, the service is called World Wide Web Publishing Service, and I only found it because of this thread, I started scrubbing my Services and could not find "Web Deployment Agent Service" and the closest thing was this. As soon as I stopped it, I was able to start Apache.

在我的 Windows 7 Professional 版本中,该服务称为万维网发布服务,我只是因为这个线程才找到它,我开始清理我的服务并找不到“Web 部署代理服务”,最接近的就是这个。一旦我停止它,我就能够启动 Apache。

回答by Joseph Montanez

You can go to the start menu and search for "Services", it should be the first result. Look for "Web Deployment Agent Service" and double click on this and then click "Stop", this works on Windows 7. If you never want it to startup, then edit the service via the "Startup type" drop down menu and choose "Disabled"

您可以进入开始菜单并搜索“服务”,它应该是第一个结果。查找“Web 部署代理服务”并双击它然后单击“停止”,这适用于 Windows 7。如果您不想启动它,则通过“启动类型”下拉菜单编辑该服务并选择“已禁用”

回答by keiki

For the record: In my case it was an Microsoft SQL Server Service. I can't remember which one.

记录:就我而言,它是 Microsoft SQL Server 服务。我不记得是哪一个了。

回答by Willy

I went through a different procedure. I searched on google and went to http://www.iis.net/configreference.

我经历了不同的过程。我在谷歌上搜索并转到http://www.iis.net/configreference

In short do as follow:

简而言之,请执行以下操作:

  • go to %WinDir%\System32\Inetsrv\Config
  • open applicationHost.config with a good editor
  • search (ctrl+f) 80. when found, replace it with something like 8080
  • open a cli and type iisreset
  • 转到 %WinDir%\System32\Inetsrv\Config
  • 用一个好的编辑器打开 applicationHost.config
  • 搜索 (ctrl+f) 80. 找到后,将其替换为 8080 之类的内容
  • 打开一个cli并输入iisreset

you're done

你完成了