查看LOG与网站对应关系

本文介绍如何在cmd.exe中使用appcmd命令列出IIS中的所有网站配置信息,包括网站ID、绑定信息及运行状态。并解析了如何通过网站ID找到对应的日志文件目录。

在cmd.exe 中输入

cd c:\Windows\System32\inetsrv\

输入appcmd list site

如下:

c:\Windows\System32\inetsrv>appcmd list site
SITE "Default Web Site" (id:1,bindings:http/*:80:,net.tcp/808:*,net.pipe/*,net.m
smq/localhost,msmq.formatname/localhost,state:Started)
SITE "360osquery" (id:2,bindings:http/*:8005:360os.topwisesz.com,http/*:8005:,st
ate:Started)
SITE "360yunying" (id:3,bindings:http/*:80:360os.topwisesz.com,http/*:8010:127.0
.0.1,state:Started)
SITE "360download" (id:4,bindings:http/*:8004:360download.topwisesz.com,state:St
arted)
 

如360yunying  这个网站 id:3  ,则对应LOG目录为W3SVC3

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值