简体   繁体   English

如何检查用户是否正在访问IIS 7.5中部署的网站?

[英]How to check whether a website deployed in IIS 7.5 is being access by user or not?

We have deployed 5 websites (read only data) in IIS 7.5 on last month now we want to remove those website which are not accessed/used by users. 上个月,我们在IIS 7.5中部署了5个网站(只读数据),现在我们希望删除那些用户无法访问/使用的网站。 We have a total of 10 websites on IIS 7.5. 在IIS 7.5上,我们总共有10个网站。

We don't want to make any setting changes on deployed site, those are deployed on last year and we want to remove them is no one access in last 4 months. 我们不想在已部署的站点上进行任何设置更改,这些更改是在去年部署的,并且我们希望在最近4个月内没有人可以将其删除。 We have onlu logfolder in Inetpub so is there any reliable way to get it done. 我们在Inetpub中有onlu日志文件夹,所以有任何可靠的方法可以完成它。

在Web服务器上打开日志记录,并查看获得了多少流量

Run PowerShell Script 运行PowerShell脚本

write-host Getting performance counters ...

$perfCounterString = "\asp.net applications(__total__)\sessions active" 
$counter = get-counter -counter $perfCounterString 
$rawValue = $counter.CounterSamples[0].CookedValue 

write-host Session Count is $rawValue

See the following link for more details: Get running session count from IIS for my hosted Asp.Net web site 有关更多详细信息,请参见以下链接: 从IIS获取我托管的Asp.Net网站的运行会话数

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

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