Skip to content

Commit

Permalink
更新使用文档
Browse files Browse the repository at this point in the history
  • Loading branch information
0xsongsu committed Jan 15, 2024
1 parent ef1dc5e commit d3649cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ autoRunner.js :定时执行程序,不需要系统定时任务,但不能程
设置定时任务:
添加一行来设定任务的执行时间和要运行的脚本。例如,要每天下午3点运行您的 Node.js 脚本,您可以添加以下行:

‘’‘
```
0 15 * * * /usr/local/bin/node /path/to/your/script.js
’‘’

```
其中
/usr/local/bin/node 是 Node.js 的路径(您可以通过在终端运行 which node 来找到它),
/path/to/your/script.js 是您的 Node.js 脚本的完整路径。

Expand Down

0 comments on commit d3649cd

Please sign in to comment.