2018年12月5日 星期三

delete locked w3svc1 x_extend1.log when IIS is in use

https://serverfault.com/questions/484499/delete-iis-log-files

  1. Stop the IIS Admin and World Wide Web Publishing services either via the command line or the services.msc console to unlock the file (obviously this will stop IIS, so if you are hosting production sites do this in a maintenance window).
  2. Delete the file.
  3. Configure logging options as documented by Microsoft.
If for some reason you still show it as in use, use Process Explorerto find the process using it. Select Find->File Handle or DLL and enter the file name.

沒有留言:

張貼留言

注意:只有此網誌的成員可以留言。