简体   繁体   English

清除未使用的 iis 网站

[英]Clearing unused iis websites

I have 20 websites under my IIS webserver(with Window server 2008 R2).我的 IIS 网络服务器下有 20 个网站(使用 Window 服务器 2008 R2)。

Now I need to clear some unused websites.现在我需要清除一些未使用的网站。 How to do that?怎么做?

At least can I see the last usage of the website from any source of the server?至少我可以从服务器的任何来源看到网站的最后使用情况吗?

Thank you谢谢

As far as I know, there is no other way to identify the unused website except checking the last request datetime in IIS log.据我所知,除了检查 IIS 日志中的最后一个请求日期时间之外,没有其他方法可以识别未使用的网站。 In the IIS log path C:\inetpub\logs\LogFiles\W3SVCx(x is the ID of your website).在 IIS 日志路径中 C:\inetpub\logs\LogFiles\W3SVCx(x 是您网站的 ID)。 Once you get the site ID, you can go to C:\Windows\System32\inetsrv\config\applicationhost.config to get site name.The binding would look like:获取站点 ID 后,您可以从 go 到 C:\Windows\System32\inetsrv\config\applicationhost.config 获取站点名称。绑定如下所示:

 <site name="Default Web Site" id="1" serverAutoStart="false">

Finally, you can delete the website from IIS manager GUI or Powershell.最后,您可以从 IIS 管理器 GUI 或 Powershell 中删除该网站。

Remove-IISSite 删除-IISSite

Best regards,此致,

Sam山姆

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM