[英]Virtual Dedicated Server Question
I have a Virtual Dedicated Server, how can I run an application periodically (ie: every Monday - 19:00). 我有一台虚拟专用服务器,如何定期运行应用程序(即:每个星期一-19:00)。 I mean, the application starts automatically at a given time. 我的意思是,该应用程序在给定的时间自动启动。
Is there any way to do it with Java, Ajax, PHP? 使用Java,Ajax,PHP有什么办法吗? (sorry, I'm noob) (对不起,我是菜鸟)
You can create scheduled tasks in windows and cron jobs in linux/*nix like systems. 您可以在Windows和类似Linux / * nix的系统中的cron作业中创建计划任务。 If you can run programs on the server and want to use java you can use timers to schedule your task - here is a simple example . 如果您可以在服务器上运行程序并希望使用Java,则可以使用计时器安排任务的时间-这是一个简单的示例 。
I'm assuming your server is linux. 我假设您的服务器是linux。 You may be able to do this with webmin. 您可以使用webmin来做到这一点。 You will need to use command line to install webmin and setting up a crontab from command line is really not that hard to do. 您将需要使用命令行来安装webmin,并且从命令行设置crontab确实不那么难。
Here is a tutorial for crontab. 这是crontab的教程。 http://www.linuxweblog.com/crotab-tutorial http://www.linuxweblog.com/crotab-tutorial
What OS does the server run? 服务器运行什么操作系统?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.