简体   繁体   中英

Alternate to iisreset

I have multiple sites on production server, some time one of site go down when heavy utility ended, which need iisreset, but iisreset cause all site down in resetting the iis. I want to reset the one site only, not all application pool. How i can reset my particular site of application pool.

You may use PowerShell :

Import-Module WebAdministration
Stop-WebSite 'Your Web Site'
Start-WebSite 'Your Web Site'

Here is the reference documentation for web administration cmdlets.

You can make a change to the web.config file - a non breaking change like an extra space in between attributes save and revert. This will cause just that site to recycle.

You got to have independent AppPool for each of your website. And recycle each of them anytime you need. In general putting all the websites under the same AppPool is not a good practice though, unless you have some specific goal to achieve by this.

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