开发者

Script to Reload specific Web App

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜