我正在使用Windows虚拟机和安装的IIS媒体服务。我正在这个虚拟机发布点上使用表达式编码器进行编码。
这在C:\Windows\System32\LogFiles\HTTPERR.下创建了太多的错误日志文件这增加了驱动器的尺寸。我得手动删除这些文件。
我想停止创建这些日志文件。
以下是我尝试过的:
我在命令提示符中运行以下命令:
CD C:\Windows\System32\inetsrv
appcmd.exe set config "Default Web Site" -section:system.webServer/httpLogging /dontLog:"True" /commit:apphost结果:
C:\Windows\System32\inetsrv>appcmd.exe set config "Default Web Site" -section:sy
stem.webServer/httpLogging /dontLog:"True" /commit:apphost
Applied configuration changes to section "system.webServer/httpLogging" for "MAC
HINE/WEBROOT/APPHOST/Default Web Site" at configuration commit path "MACHINE/WEB
ROOT/APPHOST"来自http错误文件大小的示例文本为1 MB。
#Software: Microsoft HTTP API 2.0
#Version: 1.0
#Date: 2013-07-09 11:35:50
#Fields: date time c-ip c-port s-ip s-port cs-version cs-method cs-uri sc-status s-siteid s-reason s-queuename
2013-07-09 11:35:50 168.62.194.141 57005 10.146.242.42 80 HTTP/1.1 POST /PP/TEST.isml/Streams(Encoder1) - 1 Request_Cancelled ASP.NET+v4.0
2013-07-09 11:35:50 168.62.194.141 57007 10.146.242.42 80 HTTP/1.1 POST /PP/TEST.isml/Streams(Encoder1) - 1 Request_Cancelled ASP.NET+v4.0
2013-07-09 11:35:50 168.62.194.141 56033 10.146.242.42 80 HTTP/1.1 POST /PP/TEST.isml/Streams(Encoder1) - 1 Request_Cancelled ASP.NET+v4.0发布于 2013-07-09 14:18:26
我还没看到那个命令..。所以我不知道这是否有效..。但这应该管用..。
https://stackoverflow.com/questions/17548346
复制相似问题