当前位置首页 > IIS知识

IIS回收后首次访问慢问题

阅读次数:249 次  来源:admin  发布时间:

禁用时间间隔回收 设置为0

然后设置指定时间回收 0:00:00

然后设置脚本

@echo off
 
@echo  正在关掉所有的IE进程(需要设置默认浏览器是IE)
taskkill   /im iexplore.exe /f /t
 
@echo 正在访问 http://localhost
start "C:\Program Files\Internet Explorer\iexplore.exe"  http://localhost
 
@echo 正在通过ping来延迟80秒钟,以方便IE打开页面
ping 127.0.0.1 -n 80
 
@echo  正在关掉所有的IE进程(需要设置默认浏览器是IE)
taskkill /im iexplore.exe /f /t
 
@echo 正在访问 http://localhost
start "C:\Program Files\Internet Explorer\iexplore.exe"  http://localhost
 
@echo 正在通过ping来延迟80秒钟,以方便IE打开页面
ping 127.0.0.1 -n 80
 
@echo  正在关掉所有的IE进程(需要设置默认浏览器是IE)
taskkill /im iexplore.exe /f /t 

设置计划任务 定期运行

上一篇:IIS静态文件如doc附件的安全控制
下一篇:[C++]Linux之头文件sys/types.h[/usr/include/sys]