IIS 이트 및 넝/nantcontrib?
-
06-09-2019 - |
문제
관리가 가능합니다 IIS 웹 응용 프로그램 넝?예를 들어지거나 시작합니까?
해결책
어쩌면 당신은 사용할 수 있습니다 exec 작업 실행
iisreset -stop
iisreset -start
편집: 고 이 VBS 도움이 될 수 있습에 대한 정지/시작 WebApplications 에서 IIS
여기에 accespted 를 중지 솔루션으로 웹사이트 넝 작업에서 IIS:
<target name="stopSite">
<exec program="cscript.exe">
<arg value="C:\windows\system32\iisweb.vbs" />
<arg value="/stop" />
<arg value="test" />
</exec>
</target>
다른 팁
넝가 전달과 함께 작업할 수 있는 하나 시작/중지만 웹 서버 또는 전체 IIS,나는 그것을 사용하는 일반적으로 단지 시작/중지 웹 서버에 있습니다.
<servicecontroller action="Stop" service="w3svc"
timeout="10000" verbose="true" />
문서를 사용할 수 있에 http://nant.sourceforge.net/release/latest/help/tasks/servicecontroller.html
는 경우 다음과 같 Powershell 을 사용하여 자체 또는 전화 powershell 스크립트를 통해 넝이는 바람이다.
IIS:\>Stop-WebAppPool -Name "DefaultAppPool"
IIS:\>Start-WebAppPool -Name "DefaultAppPool"
다운로드할 수 있습니다 snap-in 기 http://www.iis.net/download/PowerShell
몇 가지 메모리에 사용:http://technet.microsoft.com/en-us/library/ee790599.aspx
당신은 또한 시작/정지셔서 감사합니다.
제휴하지 않습니다 StackOverflow