简体   繁体   中英

How do I set the application pool disk space limit in IIS Manager in Compression using PowerShell or appcmd?

I我可以使用“appcmd”禁用动态和静态内容,但不能设置“每个应用程序池磁盘空间限制”!

I'm able to disable dynamic and static content using "appcmd", but cannot set "Per application pool disk space limit"!

I found that setting the value of Per application pool disk space limit in the iis server level corresponds to maxDiskSpaceUsage in the applicationHost file, so you can try to modify maxDiskSpaceUsage by below appcmd:

<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files" maxDiskSpaceUsage="999">


c:\windows\system32\inetsrv\appcmd set config /section:httpCompression /maxDiskSpaceUsage:999

More information you can refer to this link: Use Appcmd to set IIS compression level .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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