开发者

Script to Reload specific Web App

开发者 https://www.devze.com 2023-01-05 16:31 出处:网络
Hello internet, I have been looking for the past two hours for a script to reload my web app. I\'m using Tomcat on a windows server 2003.

Hello internet,

I have been looking for the past two hours for a script to reload my web app.

  • I'm using Tomcat on a windows server 2003.
  • I know that there is a link to reload your web app, but i'm wondering if i can automate the process to reload my web app once every 8 hours.

I would really appreciate if you could give me hint or two :)


Thank yo开发者_StackOverflow社区u in advance


You should be able to use something like a scheduled task in Windows Task Scheduler to do this.

It looks like tomcat is installed as windows service so you can create a batch (.bat) file to stop and start the service. It should look something like this:

net stop tomcat
net start tomcat

Just setup the scheduled task to run this batch file every 8 hours.


there are two original batch to start tomcat, i just plan them to execute every 8 hours. As easy as that.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号