您现在的位置是:网站首页> 编程资料编程资料
windows下Tomcat6定时重启服务实现步骤_windows_Windows系列_操作系统_
2023-03-07
792人已围观
简介 windows下Tomcat6定时重启服务实现步骤_windows_Windows系列_操作系统_
首先,创建 tomcat6 服务:
service install tomcat6
(1) 新建 重启服务的脚本,tomcat_restart.bat
@echo restart tomcat6 service, log to C:\tomcat_restart.log
@echo 1. stop tomcat6 service
@echo 2. sleep 10 seconds
@echo 3. start tomcat6 service
echo -------------------------------------------------------- 》 C:\tomcat_restart.log
echo [%date%%time%] 准备重新启动tomcat 》 C:\tomcat_restart.log
echo [%date%%time%] 停止服务 》 C:\tomcat_restart.log
net stop tomcat6 》 C:\tomcat_restart.log
@echo 等待 10 seconds
ping -n 10 127.0.0.1
echo [%date%%time%] 重新启动 》 C:\tomcat_restart.log
net start tomcat6 》 C:\tomcat_restart.log
echo -------------------------------------------------------- 》 C:\tomcat_restart.log
echo
(2) 添加到系统任务计划中
控制面板-任务计划-添加任务计划,
选取 tomcat_restart.bat即可
相关内容
- windows系统打开网页被阻止通过windws防火墙可以轻松解决_windows_Windows系列_操作系统_
- windows系统我最近的文档始终显示为空(使用组策略/注册表)解决_windows_Windows系列_操作系统_
- windows系统同时按下CTRL+ALT+DEL键没有弹出任务管理器的解决方法_windows_Windows系列_操作系统_
- 重装新的windows系统ubuntu系统启动菜单不见的修复方法_windows_Windows系列_操作系统_
- windows系统下笔记本如何删除HPA隐含保护分区_windows_Windows系列_操作系统_
- windows命令行复制与粘贴技巧_windows_Windows系列_操作系统_
- 制作集成SATA驱动的WindowsXP/2003安装盘的教程_windows_Windows系列_操作系统_
- windows文件夹共享及文件权限管理说明_windows_Windows系列_操作系统_
- windows系统Ctrl+S简单却不可忽视的组合键为你工作带来方便_windows_Windows系列_操作系统_
- windows运行不了.bat文件(环境变量设置问题导致)_windows_Windows系列_操作系统_
