linux服务器设置定时任务

By | 11月 19, 2017

因为项目需要,所以利用服务器实现对某个网页进行定时访问,当然能够访问网页的前提是你的服务器上安装了命令

行浏览器,这里我就不多说了,可以出门左转到这查看:linux下安装elinks命令行浏览器

Linux定时执行某项任务的命令为CronTab。

首先在命令行中输入 crontab -e;

然后增加一个定时任务。比如说每天8点定时重启服务器:

图片4

 

再比如每分钟访问一次某个网站:

图片5

 

 

图片6

One thought on “linux服务器设置定时任务

  1. Hmm іs anyone else encountеring ⲣroblems with the images on this Ƅlog
    ⅼoaԁing? I’m trying to fiɡure out if its a problem on my end or if
    it’s the blog. Any responseѕ would be greatly
    appreciated.

    Reply

发表评论

您的电子邮箱地址不会被公开。