curl定时任务及crontab启动关闭重启

crontab -e

*/1 * * * * /usr/bin/curl 访问地址

wq

/sbin/service crond start //启动服务

/sbin/service crond stop //关闭服务

/sbin/service crond restart //重启服务

/sbin/service crond reload //重新载入配置

猜你喜欢

转载自www.cnblogs.com/Bhi9712/p/10409929.html