1、建立txt檔案
2、編寫文檔,如下:
e:
cd 工具包\apache-tomcat-5.5.26\bin
call shutdown.bat
call startup.bat
第一行 e: 代表E盤
第二行 cd 工具包\apache-tomcat-7\bin 代表進入到tomcat/bin目錄下
第三行 call shutdown.bat 代表停止tomcat
第四行 call startup.bat 代表啟動tomcat
3、把紅色文字拷貝到txt檔案中之後儲存,修改txt字尾名為.bat
4、輕按兩下該檔案即可實作重新開機
5、在window任務中配置定時任務管理,将該文檔路徑配置上去,即可實作定時重新開機