crontab -e

crontab -e可以配置定时任务

0 */3 * * * cd /root/find && nohup qbittorrent-nox --webui-port=7070 &

上面那个命令是:每三小时执行一次。

  • 第1列分钟0~59
  • 第2列小时0~23(0表示子夜)
  • 第3列日1~31
  • 第4列月1~12
  • 第5列星期0~7(0和7表示星期天)
  • 第6列要运行的命令
原文地址:https://www.cnblogs.com/liuweimingcprogram/p/10223158.html